vizi_translator 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +56 -56
- data/build_gem.sh +9 -0
- data/lib/vizi/vizi_translator-new.rb +84 -0
- data/lib/vizi/vizi_translator-old.rb +66 -0
- data/lib/vizi/vizi_translator.rb +69 -53
- data/lib/vizi_translator.rb +3 -4
- data/log/system.log +660 -14
- data/log/system.log.20120721 +58 -0
- data/testit.rb +31 -31
- data/vizi_translator-0.3.0.gem +0 -0
- data/vizi_translator.gemspec +1 -1
- metadata +28 -29
- data/build_gem1.bat +0 -1
- data/build_gem2.bat +0 -1
- data/build_gem3.bat +0 -1
- data/build_gem4.bat +0 -1
@@ -0,0 +1,58 @@
|
|
1
|
+
I, [2012-06-02T22:56:14.084941 #12523] INFO -- : Starting ... >>> Sat Jun 02 22:56:14 -0400 2012
|
2
|
+
I, [2012-06-02T22:56:50.601909 #12571] INFO -- : Starting ... >>> Sat Jun 02 22:56:50 -0400 2012
|
3
|
+
I, [2012-06-02T22:56:50.602119 #12571] INFO -- : ![Visitor tracking](/images/visitors.jpg)
|
4
|
+
# Welcome to our new website
|
5
|
+
If you are a returning visit to our site, you will see many changes.
|
6
|
+
|
7
|
+
The first change you will see is a new layout that is a result of the move to Ramaze language.
|
8
|
+
|
9
|
+
If you are not familiar with Ramaze, you can find more information at [Ramaze web site](http://ramaze.net).
|
10
|
+
|
11
|
+
Another change that you will discover is the use of Google docs spreadsheets to store the results of the weekly production analysis.
|
12
|
+
|
13
|
+
The Google spreadsheets provide more capabilities including visitor mapping and additional pivot analysis.
|
14
|
+
|
15
|
+
Here is a sample map that is available with the Google tool.
|
16
|
+
|
17
|
+
![Sample world map](/images/world_map.jpg)
|
18
|
+
|
19
|
+
...
|
20
|
+
|
21
|
+
I, [2012-06-02T23:09:01.223644 #12737] INFO -- : Starting ... >>> Sat Jun 02 23:09:01 -0400 2012
|
22
|
+
I, [2012-06-02T23:09:01.223875 #12737] INFO -- : ![Visitor tracking](/images/visitors.jpg)
|
23
|
+
# Welcome to our new website
|
24
|
+
If you are a returning visit to our site, you will see many changes.
|
25
|
+
|
26
|
+
The first change you will see is a new layout that is a result of the move to Ramaze language.
|
27
|
+
|
28
|
+
If you are not familiar with Ramaze, you can find more information at [Ramaze web site](http://ramaze.net).
|
29
|
+
|
30
|
+
Another change that you will discover is the use of Google docs spreadsheets to store the results of the weekly production analysis.
|
31
|
+
|
32
|
+
The Google spreadsheets provide more capabilities including visitor mapping and additional pivot analysis.
|
33
|
+
|
34
|
+
Here is a sample map that is available with the Google tool.
|
35
|
+
|
36
|
+
![Sample world map](/images/world_map.jpg)
|
37
|
+
|
38
|
+
...
|
39
|
+
|
40
|
+
I, [2012-06-02T23:09:08.162443 #12737] INFO -- : ![Visitor tracking](/images/visitors.jpg)
|
41
|
+
# L'accueil à notre nouveau site
|
42
|
+
Si vous vous êtes un regagnais visitez à notre site, vous voulez voir de nombreux altérais.
|
43
|
+
|
44
|
+
Premiere changement vous voulez voir c'est une nouveau mise en page que c'est une suite du déménager à Ramaze la langue.
|
45
|
+
|
46
|
+
Si vous vous êtes pas familier avec Ramaze, tu peux trouver davantage renseignements sur [Ramaze web site](http://ramaze.net).
|
47
|
+
|
48
|
+
Un autre changement que vous voulez de découvrir faut la utilisez de Google docs spreadsheets à magasin la résultats du chaque semaine production l'analyse.
|
49
|
+
|
50
|
+
La Google spreadsheets fournir des davantage capacités compris visiteur mapping et d'autres pivot l'analyse.
|
51
|
+
|
52
|
+
Voici c'est une l'échantillon la carte que faut disponibles avec la Google outil.
|
53
|
+
|
54
|
+
![Sample monde map](/images/world_map.jpg)
|
55
|
+
|
56
|
+
...
|
57
|
+
|
58
|
+
I, [2012-06-02T23:09:08.162606 #12737] INFO -- : Ending ... >>> Sat Jun 02 23:09:08 -0400 2012
|
data/testit.rb
CHANGED
@@ -7,46 +7,46 @@
|
|
7
7
|
#
|
8
8
|
# Author:: Al Kivi <al.kivi@vizitrax.com>
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
require 'rubygems'
|
11
|
+
## require '~/appgems/vizi_translator/lib/vizi_translator.rb' # use this line for testing
|
12
|
+
require 'vizi_translator' # test using installed gem
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
require 'logger'
|
15
|
+
syslog = Logger.new('./log/system.log',shift_age = 'weekly')
|
16
16
|
|
17
17
|
p 'starting'
|
18
18
|
syslog.info "Starting ... >>> "+Time.now.to_s
|
19
19
|
|
20
20
|
# Set username and password. Username must be registered at Frengly
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
username = "your_username"
|
22
|
+
password = "your_password"
|
23
|
+
|
24
24
|
# Set target language for translation
|
25
|
-
|
25
|
+
targetlanguage = "fr"
|
26
26
|
|
27
|
-
|
28
|
-
#
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
begin
|
28
|
+
# Open test file for translation
|
29
|
+
@test = File.read(Dir.pwd+'/data/index.md')
|
30
|
+
p 'input file ...'
|
31
|
+
p @test
|
32
|
+
syslog.info @test
|
33
33
|
|
34
|
-
#
|
35
|
-
|
36
|
-
#
|
37
|
-
|
38
|
-
|
39
|
-
#
|
40
|
-
|
41
|
-
|
34
|
+
# Initiate Translator class
|
35
|
+
translator = Vizi::Translator.new
|
36
|
+
# Get array with available language codes
|
37
|
+
@langcodes = translator.getcodes
|
38
|
+
p @langcodes
|
39
|
+
# Get hashed list of languages and language codes
|
40
|
+
@langlist = translator.getlist
|
41
|
+
p @langlist
|
42
42
|
|
43
|
-
#
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
# Call method to do the translation
|
44
|
+
@testnew = translator.gettext(username, password, @test, targetlanguage)
|
45
|
+
p 'output file ...'
|
46
|
+
p @testnew
|
47
|
+
syslog.info @testnew
|
48
48
|
|
49
|
-
|
50
|
-
|
51
|
-
|
49
|
+
p 'ending'
|
50
|
+
syslog.info "Ending ... >>> "+Time.now.to_s
|
51
|
+
end
|
52
52
|
|
Binary file
|
data/vizi_translator.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
spec = Gem::Specification.new do |s|
|
4
4
|
s.name = 'vizi_translator'
|
5
|
-
s.version = '0.
|
5
|
+
s.version = '0.4.0'
|
6
6
|
s.summary = "Language translator that provides a wrapper to the Frengly on-line service"
|
7
7
|
s.description = "This gem module provides a classes to support the language translation of text files or text strings.
|
8
8
|
The Frengly on-line service requires registration and prvoides access with a username and password.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vizi_translator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 4
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Al Kivi
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
19
|
-
default_executable:
|
18
|
+
date: 2012-07-27 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description: |-
|
@@ -31,40 +30,40 @@ extensions: []
|
|
31
30
|
extra_rdoc_files: []
|
32
31
|
|
33
32
|
files:
|
34
|
-
- vizi_translator-0.
|
33
|
+
- vizi_translator-0.3.0.gem
|
34
|
+
- log/system.log.20120721
|
35
|
+
- log/system.log
|
35
36
|
- vizi_translator-0.1.0.gem
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
40
|
-
-
|
41
|
-
-
|
42
|
-
- doc/classes/Vizi.html
|
37
|
+
- testit.rb
|
38
|
+
- build_gem.sh
|
39
|
+
- Rakefile
|
40
|
+
- geany_run_script.bat
|
41
|
+
- data/index.md
|
42
|
+
- data/testfile.txt
|
43
43
|
- doc/rdoc-style.css
|
44
44
|
- doc/fr_file_index.html
|
45
|
+
- doc/fr_class_index.html
|
45
46
|
- doc/files/testit_rb.html
|
46
47
|
- doc/files/lib/vizi/vizi_translator_rb.html
|
47
48
|
- doc/files/lib/vizi_translator_rb.html
|
48
|
-
- doc/created.rid
|
49
49
|
- doc/fr_method_index.html
|
50
|
+
- doc/created.rid
|
50
51
|
- doc/index.html
|
51
|
-
- doc/
|
52
|
-
-
|
53
|
-
-
|
54
|
-
-
|
55
|
-
-
|
52
|
+
- doc/classes/Vizi.html
|
53
|
+
- doc/classes/Vizi/UnSupportedLanguage.src/M000001.html
|
54
|
+
- doc/classes/Vizi/Translator.src/M000002.html
|
55
|
+
- doc/classes/Vizi/Translator.src/M000003.html
|
56
|
+
- doc/classes/Vizi/Translator.src/M000004.html
|
57
|
+
- doc/classes/Vizi/Translator.html
|
58
|
+
- doc/classes/Vizi/UnSupportedLanguage.html
|
59
|
+
- vizi_translator-0.2.0.gem
|
60
|
+
- vizi_translator.gemspec
|
61
|
+
- README.rdoc.old
|
56
62
|
- lib/vizi/vizi_translator.rb
|
63
|
+
- lib/vizi/vizi_translator-old.rb
|
64
|
+
- lib/vizi/vizi_translator-new.rb
|
57
65
|
- lib/vizi_translator.rb
|
58
|
-
- build_gem1.bat
|
59
|
-
- build_gem3.bat
|
60
66
|
- README.rdoc
|
61
|
-
- Rakefile
|
62
|
-
- README.rdoc.old
|
63
|
-
- log/system.log
|
64
|
-
- vizi_translator.gemspec
|
65
|
-
- testit.rb
|
66
|
-
- build_gem2.bat
|
67
|
-
has_rdoc: true
|
68
67
|
homepage: http://www.vizitrax.com
|
69
68
|
licenses: []
|
70
69
|
|
@@ -96,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
95
|
requirements: []
|
97
96
|
|
98
97
|
rubyforge_project:
|
99
|
-
rubygems_version: 1.
|
98
|
+
rubygems_version: 1.8.24
|
100
99
|
signing_key:
|
101
100
|
specification_version: 3
|
102
101
|
summary: Language translator that provides a wrapper to the Frengly on-line service
|
data/build_gem1.bat
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gem uninstall vizi_translator
|
data/build_gem2.bat
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gem build vizi_translator.gemspec
|
data/build_gem3.bat
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gem install -l vizi_translator-0.1.0.gem
|
data/build_gem4.bat
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rake rdoc
|