applocale 0.4.0 → 0.4.1

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: 2a97e66f54bd439a61cf20ed5f4437b25f2ff105
4
- data.tar.gz: d407f1d876105f666af854f3e8f276edc7c3ff47
3
+ metadata.gz: 90d475e1b157e47cb575c5443db8d9ea89c446e2
4
+ data.tar.gz: 612fc5ae3867aa0faa3296bc2b5930660bac8813
5
5
  SHA512:
6
- metadata.gz: dcfb679486adde4bd7a8b494f43cc562b7dcb5c516e52d821916f5afbfc3728eec7809e11a582b7d35986fb713c797a6f57f3528d12a4d88acf5d6201ef1da98
7
- data.tar.gz: 78bc79fe9ed3f26817c4940a70b8c88d60f9413b5dba5c518c45eb62ff266f2e6e1c4ba66d8b32fde91d03aeb0d2152579d2a2844232f4f9a3374ed4437255d1
6
+ metadata.gz: a7ad7d4a77d846df74f9573364fa3dcb60745e23f8aeb754248f5caf5c611a2bc0655f622ec27539f12afb7c07f12ced29c8a940698352ac911f5bd057fa806a
7
+ data.tar.gz: a04e3d8e3d7134092f3f998691b38e9bfacb4f554bf43aacffa70fe874680ed8b12332519f7655afaae7d7187821021290c45b61635efe40c9f445fa67712d00
@@ -8,6 +8,7 @@ module Applocale
8
8
  class ParseXMLFile
9
9
  attr_reader :strings_keys, :errorlist, :in_multiline_comments, :keys_list, :platform, :convert_file
10
10
 
11
+
11
12
  def initialize(platform, langpathobj_list, convert_file)
12
13
  @strings_keys = {}
13
14
  @keys_list = Array.new
@@ -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
@@ -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.rubycode )
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
@@ -16,4 +16,8 @@ class Convert
16
16
  # return value
17
17
  # end
18
18
 
19
+ # def append_other(lang, target)
20
+ #
21
+ # end
22
+
19
23
  end
@@ -1,3 +1,3 @@
1
1
  module Applocale
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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-26 00:00:00.000000000 Z
11
+ date: 2019-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler