web_translate_it 1.8.1.4 → 1.8.1.5
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 +5 -0
- data/lib/web_translate_it/util.rb +4 -2
- data/version.yml +1 -1
- metadata +15 -16
data/examples/en.yml
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
fr:
|
2
|
+
activerecord:
|
3
|
+
errors:
|
4
|
+
models:
|
5
|
+
invitation:
|
6
|
+
attributes:
|
7
|
+
email:
|
8
|
+
user_already_invited: "This user has already been invited"
|
9
|
+
user_already_member: "This user is already a member"
|
10
|
+
project_file:
|
11
|
+
attributes:
|
12
|
+
file:
|
13
|
+
file_format_not_supported: "Sorry, we currenly support only Gettext .pot/.po, .yml/.yaml and .strings"
|
14
|
+
templates:
|
15
|
+
header:
|
16
|
+
body: "there were problems with the following fields:"
|
17
|
+
messages:
|
18
|
+
accepted: "must be accepted"
|
19
|
+
blank: "can't be blank"
|
20
|
+
confirmation: "doesn't match confirmation"
|
21
|
+
empty: "can't be empty"
|
22
|
+
equal_to: "must be equal to {{count}}"
|
23
|
+
even: "must be even"
|
24
|
+
exclusion: "is reserved"
|
25
|
+
greater_than: "must be greater than {{count}}"
|
26
|
+
greater_than_or_equal_to: "must be greater than or equal to {{count}}"
|
27
|
+
inclusion: "is not included in the list"
|
28
|
+
invalid: "is invalid"
|
29
|
+
less_than: "must be less than {{count}}"
|
30
|
+
less_than_or_equal_to: "must be less than or equal to {{count}}"
|
31
|
+
not_a_number: "is not a number"
|
32
|
+
odd: "must be odd"
|
33
|
+
taken: "is already taken"
|
34
|
+
too_long: "is too long (maximum is {{count}} characters)"
|
35
|
+
too_short: "is too short (minimum is {{count}} characters)"
|
36
|
+
wrong_length: "is the wrong length (should be {{count}} characters)"
|
37
|
+
one: "1 error prohibited this {{model}} from being saved"
|
38
|
+
other: "{{count}} errors prohibited this {{model}} from being saved"
|
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
@@ -1,3 +1,8 @@
|
|
1
|
+
## Version 1.8.1.5 / 2011-07-19
|
2
|
+
|
3
|
+
* Update ansi dependancy.
|
4
|
+
* Bug fix: re-recreate http connection from scratch after SSL certificate verification failure.
|
5
|
+
|
1
6
|
## Version 1.8.1.4 / 2011-06-29
|
2
7
|
|
3
8
|
* Bug fix: don’t try to modify a frozen object during fall back to non-verified SSL. #60
|
@@ -41,8 +41,10 @@ module WebTranslateIt
|
|
41
41
|
yield http.start
|
42
42
|
rescue OpenSSL::SSL::SSLError
|
43
43
|
puts "Unable to verify SSL certificate."
|
44
|
-
http =
|
45
|
-
http.
|
44
|
+
http = Net::HTTP::Proxy(proxy.host, proxy.port, proxy.user, proxy.password).new('webtranslateit.com', 443)
|
45
|
+
http.use_ssl = true
|
46
|
+
http.open_timeout = http.read_timeout = 30
|
47
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
46
48
|
yield http.start
|
47
49
|
end
|
48
50
|
end
|
data/version.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web_translate_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.1.
|
4
|
+
version: 1.8.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
13
|
-
default_executable: wti
|
12
|
+
date: 2011-07-19 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: multipart-post
|
17
|
-
requirement: &
|
16
|
+
requirement: &2153480280 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ~>
|
@@ -22,10 +21,10 @@ dependencies:
|
|
22
21
|
version: 1.1.2
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *2153480280
|
26
25
|
- !ruby/object:Gem::Dependency
|
27
26
|
name: trollop
|
28
|
-
requirement: &
|
27
|
+
requirement: &2153479580 !ruby/object:Gem::Requirement
|
29
28
|
none: false
|
30
29
|
requirements:
|
31
30
|
- - ~>
|
@@ -33,10 +32,10 @@ dependencies:
|
|
33
32
|
version: 1.16.2
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
|
-
version_requirements: *
|
35
|
+
version_requirements: *2153479580
|
37
36
|
- !ruby/object:Gem::Dependency
|
38
37
|
name: sinatra
|
39
|
-
requirement: &
|
38
|
+
requirement: &2153478900 !ruby/object:Gem::Requirement
|
40
39
|
none: false
|
41
40
|
requirements:
|
42
41
|
- - ~>
|
@@ -44,21 +43,21 @@ dependencies:
|
|
44
43
|
version: 1.2.6
|
45
44
|
type: :runtime
|
46
45
|
prerelease: false
|
47
|
-
version_requirements: *
|
46
|
+
version_requirements: *2153478900
|
48
47
|
- !ruby/object:Gem::Dependency
|
49
48
|
name: ansi
|
50
|
-
requirement: &
|
49
|
+
requirement: &2153478280 !ruby/object:Gem::Requirement
|
51
50
|
none: false
|
52
51
|
requirements:
|
53
52
|
- - ~>
|
54
53
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.
|
54
|
+
version: '1.3'
|
56
55
|
type: :runtime
|
57
56
|
prerelease: false
|
58
|
-
version_requirements: *
|
57
|
+
version_requirements: *2153478280
|
59
58
|
- !ruby/object:Gem::Dependency
|
60
59
|
name: rspec
|
61
|
-
requirement: &
|
60
|
+
requirement: &2153477520 !ruby/object:Gem::Requirement
|
62
61
|
none: false
|
63
62
|
requirements:
|
64
63
|
- - ! '>='
|
@@ -66,7 +65,7 @@ dependencies:
|
|
66
65
|
version: 2.6.0
|
67
66
|
type: :development
|
68
67
|
prerelease: false
|
69
|
-
version_requirements: *
|
68
|
+
version_requirements: *2153477520
|
70
69
|
description: An ruby executable and a handful of tools to sync your translations between
|
71
70
|
your app and webtranslateit.com.
|
72
71
|
email: edouard@atelierconvivialite.com
|
@@ -81,6 +80,7 @@ files:
|
|
81
80
|
- licence
|
82
81
|
- readme.md
|
83
82
|
- version.yml
|
83
|
+
- examples/en.yml
|
84
84
|
- examples/locale.rb
|
85
85
|
- examples/translation.yml
|
86
86
|
- lib/web_translate_it/auto_fetch.rb
|
@@ -108,7 +108,6 @@ files:
|
|
108
108
|
- spec/web_translate_it/translation_file_spec.rb
|
109
109
|
- spec/web_translate_it/util_spec.rb
|
110
110
|
- spec/web_translate_it_spec.rb
|
111
|
-
has_rdoc: true
|
112
111
|
homepage: https://webtranslateit.com
|
113
112
|
licenses: []
|
114
113
|
post_install_message:
|
@@ -131,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
130
|
version: '0'
|
132
131
|
requirements: []
|
133
132
|
rubyforge_project:
|
134
|
-
rubygems_version: 1.
|
133
|
+
rubygems_version: 1.8.5
|
135
134
|
signing_key:
|
136
135
|
specification_version: 3
|
137
136
|
summary: Sync your translations between your app and Web Translate It
|