lost_in_translation 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8400bb4007bbe3b64842be7db2b060671ff5785b
|
4
|
+
data.tar.gz: df902891617cad5ce52a0b54676177a83bd914e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76d057594c8963e6396a805e13fdfb3ba33de48aca14ad7008749cc2bae1ef235fcf68d5b8c18aa209604adb62ce301741f41f22f1f3bce439d71379ff14a638
|
7
|
+
data.tar.gz: 245a56d1c664e247f448bfd5ebcc8a76afce1fd2065de1008e1e8484b241bbce19b7d5b5412b9d3f917b3e6f306bb37ee0f156adc51d044dc4872fc17a6e4513
|
@@ -30,8 +30,11 @@ module LostInTranslation
|
|
30
30
|
|
31
31
|
def self.value_missing(slave_file, structure)
|
32
32
|
return true if slave_file.blank?
|
33
|
-
puts structure
|
34
|
-
|
33
|
+
# puts structure
|
34
|
+
# en
|
35
|
+
# storage_backlog
|
36
|
+
# backlog_qstl
|
37
|
+
true
|
35
38
|
end
|
36
39
|
|
37
40
|
def self.get_locale(path)
|
@@ -6,7 +6,6 @@ module LostInTranslation
|
|
6
6
|
paths = tmp_paths
|
7
7
|
FileUtils.cp(options[:master], paths[:master]) if options[:master]
|
8
8
|
FileUtils.cp(options[:slave], paths[:slave]) if options[:slave]
|
9
|
-
FileUtils.cp(options[:copy], paths[:copy]) if options[:copy]
|
10
9
|
end
|
11
10
|
|
12
11
|
def self.prepare_paths(paths = [])
|
@@ -28,8 +28,8 @@ module LostInTranslation
|
|
28
28
|
|
29
29
|
abort('Well, in that case, forget it!') unless ask_for_permission(@master[:lang], @slave[:lang], @master[:app_name], count)
|
30
30
|
|
31
|
-
new_strings_array = diff(master_copy_file[@master[:lang]], master_file[@master[:lang]], @master[:lang],
|
32
|
-
|
31
|
+
new_strings_array = diff(master_copy_file[@master[:lang]], master_file[@master[:lang]], @master[:lang],
|
32
|
+
@slave[:lang], [@slave[:lang]], [], mode: 'replace', diff_counter: 0, diff_count: count, slave_file: slave_file)
|
33
33
|
|
34
34
|
new_strings_array.each do |string|
|
35
35
|
result = string_to_hash(string)
|