lost_in_translation 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f71ece6162f872d6a1042cb0a4cdd55bfc6faa21
|
4
|
+
data.tar.gz: d087d8f61022872924e7da0a4aa7133c1ae2dfdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a931ccbc8bb740cc5fff512567fc959d7297f82f36f296b3cff554b542a5c90723ad323642460994fd872b0a8124810a6d4e05eee3bd56e2986142fb1cd9375
|
7
|
+
data.tar.gz: a30a5fc6437018254ef46b2b99b0df7567fe075bddba5784aff17d173d3543ad577a19e2ce610d090343e1fcb2ae6a2cae69572ab6733a09b5865a1119563fb7
|
@@ -16,7 +16,7 @@ module LostInTranslation
|
|
16
16
|
if @mode == 'replace' && value_missing(@slave_file, new_structure)
|
17
17
|
new_val = ask_for_translation(value, new_structure, lang1, lang2, @diff_count, @diff_counter)
|
18
18
|
return new_array if new_val.present? && new_val.end_with?('exit')
|
19
|
-
new_array << new_val unless new_val.
|
19
|
+
new_array << new_val unless new_val.blank?
|
20
20
|
elsif @mode == 'clean'
|
21
21
|
new_array << "#{new_structure.join('---')}---#{value}"
|
22
22
|
end
|
@@ -50,8 +50,9 @@ module LostInTranslation
|
|
50
50
|
end
|
51
51
|
|
52
52
|
puts "# In #{lang1.upcase}: #{value}"
|
53
|
-
new_val = [(print
|
54
|
-
new_val
|
53
|
+
new_val = [(print "# In #{lang2.upcase}: "), Readline.readline()][1]
|
54
|
+
new_val = (new_s + '---' + new_val) unless new_val.blank?
|
55
|
+
new_val
|
55
56
|
end
|
56
57
|
|
57
58
|
def self.log(text = '')
|