applocale 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applocale/Core/ParserStringFile/parse_xml_file.rb +1 -0
- data/lib/applocale/Core/convert_to_localefile.rb +10 -0
- data/lib/applocale/Core/init.rb +1 -1
- data/lib/applocale/Util/convert_util.rb +10 -0
- data/lib/applocale/convert.rb +4 -0
- data/lib/applocale/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90d475e1b157e47cb575c5443db8d9ea89c446e2
|
4
|
+
data.tar.gz: 612fc5ae3867aa0faa3296bc2b5930660bac8813
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7ad7d4a77d846df74f9573364fa3dcb60745e23f8aeb754248f5caf5c611a2bc0655f622ec27539f12afb7c07f12ced29c8a940698352ac911f5bd057fa806a
|
7
|
+
data.tar.gz: a04e3d8e3d7134092f3f998691b38e9bfacb4f554bf43aacffa70fe874680ed8b12332519f7655afaae7d7187821021290c45b61635efe40c9f445fa67712d00
|
@@ -79,6 +79,9 @@ module Applocale
|
|
79
79
|
target.puts("\"#{rowinfo.key_str}\" = \"#{value}\";")
|
80
80
|
end
|
81
81
|
end
|
82
|
+
if convert_file.has_append_other
|
83
|
+
convert_file.load_append_other(langpath_obj.lang.to_s,target)
|
84
|
+
end
|
82
85
|
target.close
|
83
86
|
end
|
84
87
|
|
@@ -96,6 +99,13 @@ module Applocale
|
|
96
99
|
end
|
97
100
|
target.puts('')
|
98
101
|
end
|
102
|
+
|
103
|
+
if convert_file.has_append_other
|
104
|
+
convert_file.load_append_other(langpath_obj.lang.to_s, target)
|
105
|
+
end
|
106
|
+
|
107
|
+
|
108
|
+
|
99
109
|
target.puts('</resources>')
|
100
110
|
target.close
|
101
111
|
end
|
data/lib/applocale/Core/init.rb
CHANGED
@@ -90,7 +90,7 @@ module Applocale
|
|
90
90
|
proj_apath = Applocale::FilePathUtil.get_proj_absoluat_path(proj_path)
|
91
91
|
obj = Applocale::Config::ConfigUtil.new(proj_apath, configfile_name)
|
92
92
|
setting = obj.load_configfile_to_setting
|
93
|
-
Applocale::ParseLocalizedResource.new(is_skip,setting.platform,setting.xlsxpath, setting.lang_path_list, setting.sheet_obj_list, setting.
|
93
|
+
Applocale::ParseLocalizedResource.new(is_skip,setting.platform,setting.xlsxpath, setting.lang_path_list, setting.sheet_obj_list, setting.convert_file )
|
94
94
|
end
|
95
95
|
|
96
96
|
def self.findkey( key, projpath = Dir.pwd, configFile = FilePathUtil.default_config_filename)
|
@@ -67,5 +67,15 @@ module Applocale
|
|
67
67
|
return @convert.parse_from_excel_or_csv(sheetname, key, before_convert_value, after_convert_value)
|
68
68
|
end
|
69
69
|
|
70
|
+
public
|
71
|
+
def has_append_other
|
72
|
+
return defined?(@convert.append_other) == 'method'
|
73
|
+
end
|
74
|
+
|
75
|
+
public
|
76
|
+
def load_append_other(lang, target)
|
77
|
+
return @convert.append_other(lang, target)
|
78
|
+
end
|
79
|
+
|
70
80
|
end
|
71
81
|
end
|
data/lib/applocale/convert.rb
CHANGED
data/lib/applocale/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: applocale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kennix
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|