cocoapods-aomi-bin 0.1.9 → 0.1.10
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64f241532f973a1e5903475c7b395bda5e20c234aae56f570785f68e3e6f7911
|
4
|
+
data.tar.gz: 10b05f2cf2f632d8db9fa4298ee76f6df6b11f4eca036dded2e6c4890e4aaee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffb72bdc8ae5cd1f604e4ccd03f98710f180dd15ae1a96ceb02c273f07dcf783f4a40da828ac124faafa6b234cfe81820a1ad3541d42ec8a45ebb9f0a0ce5ac1
|
7
|
+
data.tar.gz: 2a0cd1ca1db7712681c6b626f5ef87e1c5c0db90c7c0557e16670af5fd013d35e9b732b9c35e26f9f1f918569671a617f9e8c897e70608a9bdfac95389b226c6
|
@@ -45,8 +45,8 @@ module Pod
|
|
45
45
|
read_csv_file
|
46
46
|
if @key_map.keys.length.positive?
|
47
47
|
write_en_strings
|
48
|
-
write_zh_cn_strings if CBin::LocalConfig.instance.config['gen_zh_cn']
|
49
48
|
write_zh_hk_strings
|
49
|
+
write_zh_cn_strings
|
50
50
|
handle_modify_source if @modify_source_flag
|
51
51
|
else
|
52
52
|
UI.puts "获取中英文映射文件失败, 检查参数--read-csv-file=xx是否正常\n".red
|
@@ -229,6 +229,14 @@ module Pod
|
|
229
229
|
end
|
230
230
|
|
231
231
|
def write_zh_cn_strings
|
232
|
+
if CBin::LocalConfig.instance.config['gen_zh_cn']
|
233
|
+
gen_zh_cn_strings_file
|
234
|
+
else
|
235
|
+
copy_hk_to_cn_file
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
def gen_zh_cn_strings_file
|
232
240
|
file = File.join(@current_path, zh_cn_dir_name, generate_file_name)
|
233
241
|
area = :origin
|
234
242
|
area = :cn if CBin::LocalConfig.instance.config['trans_zh_cn']
|
@@ -237,6 +245,13 @@ module Pod
|
|
237
245
|
UI.puts "生成简体中文配置完成.文件路径:#{File.absolute_path(file)}\n".green
|
238
246
|
end
|
239
247
|
|
248
|
+
def copy_hk_to_cn_file
|
249
|
+
source_file = File.join(@current_path, zh_hk_dir_name, generate_file_name)
|
250
|
+
dest_file = File.join(@current_path, zh_cn_dir_name, generate_file_name)
|
251
|
+
FileUtils.cp source_file, dest_file
|
252
|
+
UI.puts "繁体中文配置覆盖简体中文配置\n".green
|
253
|
+
end
|
254
|
+
|
240
255
|
def write_zh_hk_strings
|
241
256
|
file = File.join(@current_path, zh_hk_dir_name, generate_file_name)
|
242
257
|
area = :origin
|