globalize3_translator 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +42 -0
- data/README.rdoc +1 -1
- data/lib/globalize/translator/adapter.rb +7 -1
- data/lib/globalize/translator/version.rb +1 -1
- metadata +31 -15
data/Gemfile.lock
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (3.0.0)
|
5
|
+
activesupport (= 3.0.0)
|
6
|
+
builder (~> 2.1.2)
|
7
|
+
i18n (~> 0.4.1)
|
8
|
+
activerecord (3.0.0)
|
9
|
+
activemodel (= 3.0.0)
|
10
|
+
activesupport (= 3.0.0)
|
11
|
+
arel (~> 1.0.0)
|
12
|
+
tzinfo (~> 0.3.23)
|
13
|
+
activesupport (3.0.0)
|
14
|
+
arel (1.0.1)
|
15
|
+
activesupport (~> 3.0.0)
|
16
|
+
builder (2.1.2)
|
17
|
+
columnize (0.3.1)
|
18
|
+
globalize3 (0.0.7)
|
19
|
+
activerecord (>= 3.0.0.rc)
|
20
|
+
i18n (0.4.1)
|
21
|
+
json (1.4.6)
|
22
|
+
linecache (0.43)
|
23
|
+
ruby-debug (0.10.3)
|
24
|
+
columnize (>= 0.1)
|
25
|
+
ruby-debug-base (~> 0.10.3.0)
|
26
|
+
ruby-debug-base (0.10.3)
|
27
|
+
linecache (>= 0.3)
|
28
|
+
sishen-rtranslate (1.4)
|
29
|
+
activesupport (>= 2.2.0)
|
30
|
+
json (>= 1.1.3)
|
31
|
+
sqlite3-ruby (1.3.1)
|
32
|
+
tzinfo (0.3.23)
|
33
|
+
|
34
|
+
PLATFORMS
|
35
|
+
ruby
|
36
|
+
|
37
|
+
DEPENDENCIES
|
38
|
+
activerecord (>= 3.0.0.rc)
|
39
|
+
globalize3 (>= 0.0.7)
|
40
|
+
ruby-debug
|
41
|
+
sishen-rtranslate (>= 1.3)
|
42
|
+
sqlite3-ruby
|
data/README.rdoc
CHANGED
@@ -41,7 +41,13 @@ module Globalize
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def translate?(locale, name)
|
44
|
-
|
44
|
+
if manual_in_stash?(locale, name)
|
45
|
+
false
|
46
|
+
else
|
47
|
+
# do not overwrite manually translated data
|
48
|
+
val = globalize.fetch(locale, name)
|
49
|
+
val.nil? ? true : val.auto_translated?
|
50
|
+
end
|
45
51
|
end
|
46
52
|
|
47
53
|
def get_source_locale(name)
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: globalize3_translator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 21
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Laurynas Butkus
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-13 00:00:00 +03:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: activerecord
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 7712042
|
27
30
|
segments:
|
28
31
|
- 3
|
29
32
|
- 0
|
@@ -36,9 +39,11 @@ dependencies:
|
|
36
39
|
name: globalize3
|
37
40
|
prerelease: false
|
38
41
|
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
39
43
|
requirements:
|
40
44
|
- - ">="
|
41
45
|
- !ruby/object:Gem::Version
|
46
|
+
hash: 17
|
42
47
|
segments:
|
43
48
|
- 0
|
44
49
|
- 0
|
@@ -50,9 +55,11 @@ dependencies:
|
|
50
55
|
name: sishen-rtranslate
|
51
56
|
prerelease: false
|
52
57
|
requirement: &id003 !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
53
59
|
requirements:
|
54
60
|
- - ">="
|
55
61
|
- !ruby/object:Gem::Version
|
62
|
+
hash: 9
|
56
63
|
segments:
|
57
64
|
- 1
|
58
65
|
- 3
|
@@ -63,9 +70,11 @@ dependencies:
|
|
63
70
|
name: ruby-debug
|
64
71
|
prerelease: false
|
65
72
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
66
74
|
requirements:
|
67
75
|
- - ">="
|
68
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
69
78
|
segments:
|
70
79
|
- 0
|
71
80
|
version: "0"
|
@@ -75,9 +84,11 @@ dependencies:
|
|
75
84
|
name: sqlite3-ruby
|
76
85
|
prerelease: false
|
77
86
|
requirement: &id005 !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
78
88
|
requirements:
|
79
89
|
- - ">="
|
80
90
|
- !ruby/object:Gem::Version
|
91
|
+
hash: 3
|
81
92
|
segments:
|
82
93
|
- 0
|
83
94
|
version: "0"
|
@@ -92,22 +103,23 @@ extensions: []
|
|
92
103
|
extra_rdoc_files: []
|
93
104
|
|
94
105
|
files:
|
95
|
-
- lib/
|
96
|
-
- lib/globalize/translator/configuration.rb
|
97
|
-
- lib/globalize/translator/version.rb
|
98
|
-
- lib/globalize/translator/adapter.rb
|
99
|
-
- lib/globalize/translator/backends/abstract.rb
|
100
|
-
- lib/globalize/translator/backends/rtranslate.rb
|
106
|
+
- lib/globalize3_translator.rb
|
101
107
|
- lib/globalize/patches/core_ext/string.rb
|
102
|
-
- lib/globalize/patches/active_record/translation.rb
|
103
|
-
- lib/globalize/patches/active_record/instance_methods.rb
|
104
108
|
- lib/globalize/patches/active_record/adapter.rb
|
105
|
-
- lib/globalize/patches/active_record/class_methods.rb
|
106
109
|
- lib/globalize/patches/active_record/migration.rb
|
107
|
-
- lib/
|
108
|
-
-
|
110
|
+
- lib/globalize/patches/active_record/class_methods.rb
|
111
|
+
- lib/globalize/patches/active_record/instance_methods.rb
|
112
|
+
- lib/globalize/patches/active_record/translation.rb
|
113
|
+
- lib/globalize/translator.rb
|
114
|
+
- lib/globalize/translator/adapter.rb
|
115
|
+
- lib/globalize/translator/version.rb
|
116
|
+
- lib/globalize/translator/configuration.rb
|
117
|
+
- lib/globalize/translator/backends/rtranslate.rb
|
118
|
+
- lib/globalize/translator/backends/abstract.rb
|
109
119
|
- README.rdoc
|
110
120
|
- Rakefile
|
121
|
+
- MIT-LICENSE
|
122
|
+
- Gemfile.lock
|
111
123
|
- Gemfile
|
112
124
|
has_rdoc: true
|
113
125
|
homepage: http://github.com/laurynas/globalize3_translator
|
@@ -119,23 +131,27 @@ rdoc_options: []
|
|
119
131
|
require_paths:
|
120
132
|
- lib
|
121
133
|
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
none: false
|
122
135
|
requirements:
|
123
136
|
- - ">="
|
124
137
|
- !ruby/object:Gem::Version
|
138
|
+
hash: 3
|
125
139
|
segments:
|
126
140
|
- 0
|
127
141
|
version: "0"
|
128
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
129
144
|
requirements:
|
130
145
|
- - ">="
|
131
146
|
- !ruby/object:Gem::Version
|
147
|
+
hash: 3
|
132
148
|
segments:
|
133
149
|
- 0
|
134
150
|
version: "0"
|
135
151
|
requirements: []
|
136
152
|
|
137
153
|
rubyforge_project: "[none]"
|
138
|
-
rubygems_version: 1.3.
|
154
|
+
rubygems_version: 1.3.7
|
139
155
|
signing_key:
|
140
156
|
specification_version: 3
|
141
157
|
summary: Globalize3 auto-translator using Google Translate (or any other backend)
|