translations 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/translations/cli.rb +8 -6
- data/lib/translations/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb02852ee1ebc19e137e685f9954d8ce729f1d3c
|
4
|
+
data.tar.gz: 86e8c2ad5c00fa62abd2cecbc4bc4d96579c332c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d4043e84cb50bd94dacbe58bc436f584959b87420672b7f0dd88f18aa740e14112e3ab295ab2bca82870c07a2feb9dbc47c730ed9d0c4969ac1dac27e102cb3
|
7
|
+
data.tar.gz: 69c82003c73fabb6d5274d37b3cd8b5b1c9dd1770a7a45e9e1598a8e071d46c6ae652cde8d9551d91fd761b8a6696bf561f9d8e05d24fcf6d129948281b68783
|
data/Gemfile.lock
CHANGED
data/lib/translations/cli.rb
CHANGED
@@ -127,13 +127,15 @@ module Translations
|
|
127
127
|
end
|
128
128
|
|
129
129
|
translations.slaves.each do |translation|
|
130
|
-
|
131
|
-
|
130
|
+
if translation.has_key?(key)
|
131
|
+
say "#{translation.locale}: #{translation[key]}"
|
132
|
+
answer = ask "#{translation.locale}?"
|
132
133
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
134
|
+
if answer.length > 0
|
135
|
+
translation[key] = answer
|
136
|
+
else
|
137
|
+
translation.remove key
|
138
|
+
end
|
137
139
|
end
|
138
140
|
end
|
139
141
|
|
data/lib/translations/version.rb
CHANGED