web_translate_it 1.10.1 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/en.yml +43 -0
- data/history.md +4 -0
- data/lib/web_translate_it/command_line.rb +2 -2
- data/version.yml +1 -1
- metadata +74 -43
data/examples/en.yml
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
fr:
|
2
|
+
activerecord:
|
3
|
+
errors:
|
4
|
+
templates:
|
5
|
+
header:
|
6
|
+
one: "1 error prohibited this {{model}} from being saved"
|
7
|
+
other: "{{count}} errors prohibited this {{model}} from being saved"
|
8
|
+
body: "there were problems with the following fields:"
|
9
|
+
messages:
|
10
|
+
accepted: "must be accepted"
|
11
|
+
blank: "can't be blank"
|
12
|
+
confirmation: "doesn't match confirmation"
|
13
|
+
empty: "can't be empty"
|
14
|
+
equal_to: "must be equal to {{count}}"
|
15
|
+
even: "must be even"
|
16
|
+
exclusion: "is reserved"
|
17
|
+
greater_than: "must be greater than {{count}}"
|
18
|
+
greater_than_or_equal_to: "must be greater than or equal to {{count}}"
|
19
|
+
inclusion: "is not included in the list"
|
20
|
+
invalid: "is invalid"
|
21
|
+
less_than: "must be less than {{count}}"
|
22
|
+
less_than_or_equal_to: "must be less than or equal to {{count}}"
|
23
|
+
not_a_number: "is not a number"
|
24
|
+
odd: "must be odd"
|
25
|
+
taken: "is already taken"
|
26
|
+
too_long: "is too long (maximum is {{count}} characters)"
|
27
|
+
too_short: "is too short (minimum is {{count}} characters)"
|
28
|
+
wrong_length: "is the wrong length (should be {{count}} characters)"
|
29
|
+
models:
|
30
|
+
invitation:
|
31
|
+
attributes:
|
32
|
+
email:
|
33
|
+
user_already_invited: "This user has already been invited"
|
34
|
+
user_already_member: "This user is already a member"
|
35
|
+
project_file:
|
36
|
+
attributes:
|
37
|
+
file:
|
38
|
+
file_format_not_supported: "Sorry, we currenly support only Gettext .pot/.po, .yml/.yaml and .strings"
|
39
|
+
another_one: dskjdks
|
40
|
+
another_string: "this is another string"
|
41
|
+
hello: "Hello world!!"
|
42
|
+
new_string: hehe
|
43
|
+
test: " & & "
|
data/history.md
CHANGED
@@ -72,8 +72,8 @@ module WebTranslateIt
|
|
72
72
|
exit
|
73
73
|
end
|
74
74
|
WebTranslateIt::Util.http_connection do |http|
|
75
|
-
added = configuration.files.find_all{ |file| file.locale == configuration.source_locale}.collect {|file| File.
|
76
|
-
parameters.reject{ |param| added.include?(File.
|
75
|
+
added = configuration.files.find_all{ |file| file.locale == configuration.source_locale}.collect {|file| File.expand_path(file.file_path) }.to_set
|
76
|
+
parameters.reject{ |param| added.include?(File.expand_path(param))}.each do |param|
|
77
77
|
file = TranslationFile.new(nil, param, nil, configuration.api_key)
|
78
78
|
file.create(http, command_options.low_priority)
|
79
79
|
end
|
data/version.yml
CHANGED
metadata
CHANGED
@@ -1,62 +1,85 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: web_translate_it
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 59
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 10
|
9
|
+
- 2
|
10
|
+
version: 1.10.2
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
-
|
12
|
+
authors:
|
13
|
+
- "\xC3\x89douard Bri\xC3\xA8re"
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-04-17 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: multipart-post
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
25
|
+
requirements:
|
19
26
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 21
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 1
|
32
|
+
- 3
|
21
33
|
version: 1.1.3
|
22
34
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
26
37
|
name: trollop
|
27
|
-
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
40
|
none: false
|
29
|
-
requirements:
|
41
|
+
requirements:
|
30
42
|
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 83
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 16
|
48
|
+
- 2
|
32
49
|
version: 1.16.2
|
33
50
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
37
53
|
name: rspec
|
38
|
-
|
54
|
+
prerelease: false
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
56
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 23
|
61
|
+
segments:
|
62
|
+
- 2
|
63
|
+
- 6
|
64
|
+
- 0
|
43
65
|
version: 2.6.0
|
44
66
|
type: :development
|
45
|
-
|
46
|
-
version_requirements: *70323206902480
|
67
|
+
version_requirements: *id003
|
47
68
|
description:
|
48
69
|
email: edouard@atelierconvivialite.com
|
49
|
-
executables:
|
70
|
+
executables:
|
50
71
|
- wti
|
51
72
|
extensions: []
|
52
|
-
|
73
|
+
|
74
|
+
extra_rdoc_files:
|
53
75
|
- history.md
|
54
76
|
- readme.md
|
55
|
-
files:
|
77
|
+
files:
|
56
78
|
- history.md
|
57
79
|
- license
|
58
80
|
- readme.md
|
59
81
|
- version.yml
|
82
|
+
- examples/en.yml
|
60
83
|
- examples/locale.rb
|
61
84
|
- lib/web_translate_it/auto_fetch.rb
|
62
85
|
- lib/web_translate_it/cacert.pem
|
@@ -88,31 +111,39 @@ files:
|
|
88
111
|
- spec/web_translate_it_spec.rb
|
89
112
|
homepage: https://webtranslateit.com
|
90
113
|
licenses: []
|
114
|
+
|
91
115
|
post_install_message:
|
92
|
-
rdoc_options:
|
116
|
+
rdoc_options:
|
93
117
|
- --main
|
94
118
|
- readme.md
|
95
|
-
require_paths:
|
119
|
+
require_paths:
|
96
120
|
- lib
|
97
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
98
122
|
none: false
|
99
|
-
requirements:
|
100
|
-
- -
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
|
103
|
-
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
hash: 3
|
127
|
+
segments:
|
128
|
+
- 0
|
129
|
+
version: "0"
|
130
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
131
|
none: false
|
105
|
-
requirements:
|
106
|
-
- -
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
hash: 3
|
136
|
+
segments:
|
137
|
+
- 0
|
138
|
+
version: "0"
|
109
139
|
requirements: []
|
140
|
+
|
110
141
|
rubyforge_project:
|
111
|
-
rubygems_version: 1.8.
|
142
|
+
rubygems_version: 1.8.21
|
112
143
|
signing_key:
|
113
144
|
specification_version: 3
|
114
145
|
summary: A CLI to sync locale files with webtranslateit.com.
|
115
|
-
test_files:
|
146
|
+
test_files:
|
116
147
|
- spec/examples/config/translation.yml
|
117
148
|
- spec/examples/en.yml
|
118
149
|
- spec/spec_helper.rb
|