lost_in_translation 0.2.8 → 0.2.9
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: 73c145fb5f7be5e482a29be613f463cab011806f
|
4
|
+
data.tar.gz: 429208718f0b933fec0391ae7fed08f7e1232235
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db810aa214ba439bdcd7da7a9c02c93b93feeac849c8bfbbe010e93b589b5f535c343e35c0019ca4eb9e4f86caaa0fceb8eb798c958795cb9b8c64019000db76
|
7
|
+
data.tar.gz: 8ca66d5e0293cf78c6839573564707da5e14b86b736ec4c03bc3cf11dacfabf2a9eb6cfaef8e5cd31ae9911d5ef8bb92701b7c78a0e9d7998a074211275af8d0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
#
|
4
4
|
module LostInTranslation
|
5
5
|
def self.prepare_for_edit(options = {})
|
6
|
-
paths =
|
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
9
|
FileUtils.cp(options[:copy], paths[:copy]) if options[:copy]
|
@@ -32,7 +32,7 @@ module LostInTranslation
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def reset_tmp_files
|
35
|
-
paths =
|
35
|
+
paths = tmp_paths
|
36
36
|
paths.each_value do |path|
|
37
37
|
File.open(path, 'w') { |file| file.write('') }
|
38
38
|
end
|
@@ -28,8 +28,9 @@ module LostInTranslation
|
|
28
28
|
a == 'y' || a == 'Y' || a == ''
|
29
29
|
end
|
30
30
|
|
31
|
-
def self.ask_for_sorting(lang,
|
31
|
+
def self.ask_for_sorting(lang, app_name)
|
32
32
|
log
|
33
|
+
log "Application: #{app_name}"
|
33
34
|
log "Do you want the #{lang}.yml to be sorted?"
|
34
35
|
log 'Alphabetically & Recursive (ASC)'
|
35
36
|
a = [(print "# [Y/n]: "), Readline.readline()][1]
|