gettext 3.3.8 → 3.3.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
  SHA256:
3
- metadata.gz: 854c34e40028ef9e71045cbd1c8f77a4846c5f668de2cef716017b52d05515b2
4
- data.tar.gz: bc0a5bcb8a1a30ed0b5de8272bae275a996f5ef5e6533a281997a67bf99f3f95
3
+ metadata.gz: bf480f5774043884c6583daea1fc41264e3ce96c90c287f61a5336054f69f428
4
+ data.tar.gz: daa8334ee3ccecb4cf90d9ea016392068c6ae3bdf11b395df706fd4b1e5cff0d
5
5
  SHA512:
6
- metadata.gz: 6978df6c5a2e52c5eb9b1101bb89fd2ec3febec663bf1418b054929572a333935cd02cfba15b93818ae3b89971b2fb442b2f8f48c0370fd516bacd7085eac915
7
- data.tar.gz: a7fbb7a6b3e93a374440ad2ae3c69f43aeb238c54479825c45e8b14f5f90408fa05b2c06db05078af531defecc7b181bda30e0a2e53068718422ba66bbd7ae94
6
+ metadata.gz: 7040a0b37b61e221055ab90bfafb0d538b24641211c45f8a4ce04adbc08b22dba247369ba5e695f7d1565a4fffbf67a317065933f39a788c34bf8e45f3b37b3f
7
+ data.tar.gz: 9d0f862577acd733cabdb1d66b90cde9b5c896d2dc468dac36b205172f72546902648e1dcaa509c7fc920ba805155d1241c79ebdc3b928d59745a309ca7c9c44
data/doc/text/news.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # News
2
2
 
3
+ ## 3.3.9: 2021-08-26 {#version-3-3-9}
4
+
5
+ ### Improvements
6
+
7
+ * msginit: Made Red Datasets dependency optional.
8
+ [GitHub:red-datatools/red-datasets#105][Suggested by Mamoru TASAKA]
9
+
10
+ ### Thanks
11
+
12
+ * Mamoru TASAKA
13
+
3
14
  ## 3.3.8: 2021-06-09 {#version-3-3-8}
4
15
 
5
16
  ### Improvements
data/gettext.gemspec CHANGED
@@ -30,13 +30,13 @@ So you can use GNU gettext tools for maintaining.
30
30
  s.required_ruby_version = ">= 2.5.0"
31
31
 
32
32
  s.add_runtime_dependency("locale", ">= 2.0.5")
33
- s.add_runtime_dependency("red-datasets")
34
33
  s.add_runtime_dependency("text", ">= 1.3.0")
35
- s.add_development_dependency("rake")
36
- s.add_development_dependency("racc")
37
- s.add_development_dependency("yard")
38
34
  s.add_development_dependency("kramdown")
35
+ s.add_development_dependency("racc")
36
+ s.add_development_dependency("rake")
37
+ s.add_development_dependency("red-datasets")
39
38
  s.add_development_dependency("test-unit")
40
39
  s.add_development_dependency("test-unit-rr")
40
+ s.add_development_dependency("yard")
41
41
  s.license = "Ruby or LGPLv3+"
42
42
  end
@@ -21,7 +21,10 @@
21
21
  require "etc"
22
22
  require "optparse"
23
23
 
24
- require "datasets"
24
+ begin
25
+ require "datasets"
26
+ rescue LoadError
27
+ end
25
28
  require "locale/info"
26
29
 
27
30
  require "gettext"
@@ -376,11 +379,13 @@ module GetText
376
379
  def convert
377
380
  n_plurals = nil
378
381
  expression = nil
379
- plurals = Datasets::CLDRPlurals.new
380
- plurals.each do |locale|
381
- next unless locale.name == @language
382
- n_plurals, expression = convert_plural_rules(locale.rules)
383
- break
382
+ if defined?(Datasets::CLDRPlurals)
383
+ plurals = Datasets::CLDRPlurals.new
384
+ plurals.each do |locale|
385
+ next unless locale.name == @language
386
+ n_plurals, expression = convert_plural_rules(locale.rules)
387
+ break
388
+ end
384
389
  end
385
390
  "nplurals=#{n_plurals}; plural=#{expression};"
386
391
  end
@@ -9,5 +9,5 @@
9
9
  =end
10
10
 
11
11
  module GetText
12
- VERSION = "3.3.8"
12
+ VERSION = "3.3.9"
13
13
  end
@@ -35,7 +35,7 @@ msgstr ""
35
35
  msgid "Concatenates and merges PO files."
36
36
  msgstr ""
37
37
 
38
- #: ../lib/gettext/tools/msgcat.rb:246 ../lib/gettext/tools/msgfmt.rb:86 ../lib/gettext/tools/msginit.rb:95 ../lib/gettext/tools/msgmerge.rb:369 ../lib/gettext/tools/xgettext.rb:248
38
+ #: ../lib/gettext/tools/msgcat.rb:246 ../lib/gettext/tools/msgfmt.rb:86 ../lib/gettext/tools/msginit.rb:98 ../lib/gettext/tools/msgmerge.rb:369 ../lib/gettext/tools/xgettext.rb:248
39
39
  msgid "Specific options:"
40
40
  msgstr "Специфични опции:"
41
41
 
@@ -143,67 +143,67 @@ msgstr "изходът беше записан в зададения файл"
143
143
  msgid "display version information and exit"
144
144
  msgstr "показване на версията и изход"
145
145
 
146
- #: ../lib/gettext/tools/msginit.rb:91
146
+ #: ../lib/gettext/tools/msginit.rb:94
147
147
  msgid "Create a new .po file from initializing .pot file with user's environment and input."
148
148
  msgstr ""
149
149
 
150
- #: ../lib/gettext/tools/msginit.rb:97
150
+ #: ../lib/gettext/tools/msginit.rb:100
151
151
  msgid "Use INPUT as a .pot file. If INPUT is not specified, INPUT is a .pot file existing the current directory."
152
152
  msgstr ""
153
153
 
154
- #: ../lib/gettext/tools/msginit.rb:104
154
+ #: ../lib/gettext/tools/msginit.rb:107
155
155
  msgid "Use OUTPUT as a created .po file. If OUTPUT is not specified, OUTPUT depend on LOCALE or the current locale on your environment."
156
156
  msgstr ""
157
157
 
158
- #: ../lib/gettext/tools/msginit.rb:111
158
+ #: ../lib/gettext/tools/msginit.rb:114
159
159
  msgid "Use LOCALE as target locale. If LOCALE is not specified, LOCALE is the current locale on your environment."
160
160
  msgstr ""
161
161
 
162
- #: ../lib/gettext/tools/msginit.rb:119
162
+ #: ../lib/gettext/tools/msginit.rb:122
163
163
  msgid "Whether set translator information or not"
164
164
  msgstr ""
165
165
 
166
- #: ../lib/gettext/tools/msginit.rb:120
166
+ #: ../lib/gettext/tools/msginit.rb:123
167
167
  msgid "(set)"
168
168
  msgstr ""
169
169
 
170
- #: ../lib/gettext/tools/msginit.rb:125
170
+ #: ../lib/gettext/tools/msginit.rb:128
171
171
  msgid "Use NAME as translator name"
172
172
  msgstr ""
173
173
 
174
- #: ../lib/gettext/tools/msginit.rb:130
174
+ #: ../lib/gettext/tools/msginit.rb:133
175
175
  msgid "Use EMAIL as translator email address"
176
176
  msgstr ""
177
177
 
178
- #: ../lib/gettext/tools/msginit.rb:134 ../lib/gettext/tools/msgmerge.rb:443
178
+ #: ../lib/gettext/tools/msginit.rb:137 ../lib/gettext/tools/msgmerge.rb:443
179
179
  msgid "Display this help and exit"
180
180
  msgstr ""
181
181
 
182
- #: ../lib/gettext/tools/msginit.rb:139
182
+ #: ../lib/gettext/tools/msginit.rb:142
183
183
  msgid "Display version and exit"
184
184
  msgstr "показване на версията и изход"
185
185
 
186
- #: ../lib/gettext/tools/msginit.rb:157
186
+ #: ../lib/gettext/tools/msginit.rb:160
187
187
  msgid ".pot file does not exist in the current directory."
188
188
  msgstr ""
189
189
 
190
- #: ../lib/gettext/tools/msginit.rb:162
190
+ #: ../lib/gettext/tools/msginit.rb:165
191
191
  msgid "file '%s' does not exist."
192
192
  msgstr "Файлът '%s' съществува."
193
193
 
194
- #: ../lib/gettext/tools/msginit.rb:174
194
+ #: ../lib/gettext/tools/msginit.rb:177
195
195
  msgid "Locale '%s' is invalid. Please check if your specified locale is usable."
196
196
  msgstr ""
197
197
 
198
- #: ../lib/gettext/tools/msginit.rb:184
198
+ #: ../lib/gettext/tools/msginit.rb:187
199
199
  msgid "file '%s' has already existed."
200
200
  msgstr "Файлът '%s' съществува."
201
201
 
202
- #: ../lib/gettext/tools/msginit.rb:226
202
+ #: ../lib/gettext/tools/msginit.rb:229
203
203
  msgid "Please enter your full name"
204
204
  msgstr ""
205
205
 
206
- #: ../lib/gettext/tools/msginit.rb:255
206
+ #: ../lib/gettext/tools/msginit.rb:258
207
207
  msgid "Please enter your email address"
208
208
  msgstr ""
209
209
 
@@ -37,7 +37,7 @@ msgstr ""
37
37
  msgid "Concatenates and merges PO files."
38
38
  msgstr ""
39
39
 
40
- #: ../lib/gettext/tools/msgcat.rb:246 ../lib/gettext/tools/msgfmt.rb:86 ../lib/gettext/tools/msginit.rb:95 ../lib/gettext/tools/msgmerge.rb:369 ../lib/gettext/tools/xgettext.rb:248
40
+ #: ../lib/gettext/tools/msgcat.rb:246 ../lib/gettext/tools/msgfmt.rb:86 ../lib/gettext/tools/msginit.rb:98 ../lib/gettext/tools/msgmerge.rb:369 ../lib/gettext/tools/xgettext.rb:248
41
41
  msgid "Specific options:"
42
42
  msgstr "Specifične opcije:"
43
43
 
@@ -145,67 +145,67 @@ msgstr "zapiši izlaz u specifičnu datoteku"
145
145
  msgid "display version information and exit"
146
146
  msgstr "prikaži informaciju o verziji i završi"
147
147
 
148
- #: ../lib/gettext/tools/msginit.rb:91
148
+ #: ../lib/gettext/tools/msginit.rb:94
149
149
  msgid "Create a new .po file from initializing .pot file with user's environment and input."
150
150
  msgstr ""
151
151
 
152
- #: ../lib/gettext/tools/msginit.rb:97
152
+ #: ../lib/gettext/tools/msginit.rb:100
153
153
  msgid "Use INPUT as a .pot file. If INPUT is not specified, INPUT is a .pot file existing the current directory."
154
154
  msgstr ""
155
155
 
156
- #: ../lib/gettext/tools/msginit.rb:104
156
+ #: ../lib/gettext/tools/msginit.rb:107
157
157
  msgid "Use OUTPUT as a created .po file. If OUTPUT is not specified, OUTPUT depend on LOCALE or the current locale on your environment."
158
158
  msgstr ""
159
159
 
160
- #: ../lib/gettext/tools/msginit.rb:111
160
+ #: ../lib/gettext/tools/msginit.rb:114
161
161
  msgid "Use LOCALE as target locale. If LOCALE is not specified, LOCALE is the current locale on your environment."
162
162
  msgstr ""
163
163
 
164
- #: ../lib/gettext/tools/msginit.rb:119
164
+ #: ../lib/gettext/tools/msginit.rb:122
165
165
  msgid "Whether set translator information or not"
166
166
  msgstr ""
167
167
 
168
- #: ../lib/gettext/tools/msginit.rb:120
168
+ #: ../lib/gettext/tools/msginit.rb:123
169
169
  msgid "(set)"
170
170
  msgstr ""
171
171
 
172
- #: ../lib/gettext/tools/msginit.rb:125
172
+ #: ../lib/gettext/tools/msginit.rb:128
173
173
  msgid "Use NAME as translator name"
174
174
  msgstr ""
175
175
 
176
- #: ../lib/gettext/tools/msginit.rb:130
176
+ #: ../lib/gettext/tools/msginit.rb:133
177
177
  msgid "Use EMAIL as translator email address"
178
178
  msgstr ""
179
179
 
180
- #: ../lib/gettext/tools/msginit.rb:134 ../lib/gettext/tools/msgmerge.rb:443
180
+ #: ../lib/gettext/tools/msginit.rb:137 ../lib/gettext/tools/msgmerge.rb:443
181
181
  msgid "Display this help and exit"
182
182
  msgstr ""
183
183
 
184
- #: ../lib/gettext/tools/msginit.rb:139
184
+ #: ../lib/gettext/tools/msginit.rb:142
185
185
  msgid "Display version and exit"
186
186
  msgstr "prikaži informaciju o verziji i završi"
187
187
 
188
- #: ../lib/gettext/tools/msginit.rb:157
188
+ #: ../lib/gettext/tools/msginit.rb:160
189
189
  msgid ".pot file does not exist in the current directory."
190
190
  msgstr ""
191
191
 
192
- #: ../lib/gettext/tools/msginit.rb:162
192
+ #: ../lib/gettext/tools/msginit.rb:165
193
193
  msgid "file '%s' does not exist."
194
194
  msgstr "Datoteka '%s' već postoji."
195
195
 
196
- #: ../lib/gettext/tools/msginit.rb:174
196
+ #: ../lib/gettext/tools/msginit.rb:177
197
197
  msgid "Locale '%s' is invalid. Please check if your specified locale is usable."
198
198
  msgstr ""
199
199
 
200
- #: ../lib/gettext/tools/msginit.rb:184
200
+ #: ../lib/gettext/tools/msginit.rb:187
201
201
  msgid "file '%s' has already existed."
202
202
  msgstr "Datoteka '%s' već postoji."
203
203
 
204
- #: ../lib/gettext/tools/msginit.rb:226
204
+ #: ../lib/gettext/tools/msginit.rb:229
205
205
  msgid "Please enter your full name"
206
206
  msgstr ""
207
207
 
208
- #: ../lib/gettext/tools/msginit.rb:255
208
+ #: ../lib/gettext/tools/msginit.rb:258
209
209
  msgid "Please enter your email address"
210
210
  msgstr ""
211
211
 
@@ -35,7 +35,7 @@ msgstr ""
35
35
  msgid "Concatenates and merges PO files."
36
36
  msgstr ""
37
37
 
38
- #: ../lib/gettext/tools/msgcat.rb:246 ../lib/gettext/tools/msgfmt.rb:86 ../lib/gettext/tools/msginit.rb:95 ../lib/gettext/tools/msgmerge.rb:369 ../lib/gettext/tools/xgettext.rb:248
38
+ #: ../lib/gettext/tools/msgcat.rb:246 ../lib/gettext/tools/msgfmt.rb:86 ../lib/gettext/tools/msginit.rb:98 ../lib/gettext/tools/msgmerge.rb:369 ../lib/gettext/tools/xgettext.rb:248
39
39
  msgid "Specific options:"
40
40
  msgstr "Opcions específiques:"
41
41
 
@@ -143,67 +143,67 @@ msgstr "escriu la sortida en un fitxer especificat"
143
143
  msgid "display version information and exit"
144
144
  msgstr "mostra informació de la versió i surt"
145
145
 
146
- #: ../lib/gettext/tools/msginit.rb:91
146
+ #: ../lib/gettext/tools/msginit.rb:94
147
147
  msgid "Create a new .po file from initializing .pot file with user's environment and input."
148
148
  msgstr ""
149
149
 
150
- #: ../lib/gettext/tools/msginit.rb:97
150
+ #: ../lib/gettext/tools/msginit.rb:100
151
151
  msgid "Use INPUT as a .pot file. If INPUT is not specified, INPUT is a .pot file existing the current directory."
152
152
  msgstr ""
153
153
 
154
- #: ../lib/gettext/tools/msginit.rb:104
154
+ #: ../lib/gettext/tools/msginit.rb:107
155
155
  msgid "Use OUTPUT as a created .po file. If OUTPUT is not specified, OUTPUT depend on LOCALE or the current locale on your environment."
156
156
  msgstr ""
157
157
 
158
- #: ../lib/gettext/tools/msginit.rb:111
158
+ #: ../lib/gettext/tools/msginit.rb:114
159
159
  msgid "Use LOCALE as target locale. If LOCALE is not specified, LOCALE is the current locale on your environment."
160
160
  msgstr ""
161
161
 
162
- #: ../lib/gettext/tools/msginit.rb:119
162
+ #: ../lib/gettext/tools/msginit.rb:122
163
163
  msgid "Whether set translator information or not"
164
164
  msgstr ""
165
165
 
166
- #: ../lib/gettext/tools/msginit.rb:120
166
+ #: ../lib/gettext/tools/msginit.rb:123
167
167
  msgid "(set)"
168
168
  msgstr ""
169
169
 
170
- #: ../lib/gettext/tools/msginit.rb:125
170
+ #: ../lib/gettext/tools/msginit.rb:128
171
171
  msgid "Use NAME as translator name"
172
172
  msgstr ""
173
173
 
174
- #: ../lib/gettext/tools/msginit.rb:130
174
+ #: ../lib/gettext/tools/msginit.rb:133
175
175
  msgid "Use EMAIL as translator email address"
176
176
  msgstr ""
177
177
 
178
- #: ../lib/gettext/tools/msginit.rb:134 ../lib/gettext/tools/msgmerge.rb:443
178
+ #: ../lib/gettext/tools/msginit.rb:137 ../lib/gettext/tools/msgmerge.rb:443
179
179
  msgid "Display this help and exit"
180
180
  msgstr ""
181
181
 
182
- #: ../lib/gettext/tools/msginit.rb:139
182
+ #: ../lib/gettext/tools/msginit.rb:142
183
183
  msgid "Display version and exit"
184
184
  msgstr "mostra informació de la versió i surt"
185
185
 
186
- #: ../lib/gettext/tools/msginit.rb:157
186
+ #: ../lib/gettext/tools/msginit.rb:160
187
187
  msgid ".pot file does not exist in the current directory."
188
188
  msgstr ""
189
189
 
190
- #: ../lib/gettext/tools/msginit.rb:162
190
+ #: ../lib/gettext/tools/msginit.rb:165
191
191
  msgid "file '%s' does not exist."
192
192
  msgstr "El fitxer '%s' ja existeix"
193
193
 
194
- #: ../lib/gettext/tools/msginit.rb:174
194
+ #: ../lib/gettext/tools/msginit.rb:177
195
195
  msgid "Locale '%s' is invalid. Please check if your specified locale is usable."
196
196
  msgstr ""
197
197
 
198
- #: ../lib/gettext/tools/msginit.rb:184
198
+ #: ../lib/gettext/tools/msginit.rb:187
199
199
  msgid "file '%s' has already existed."
200
200
  msgstr "El fitxer '%s' ja existeix"
201
201
 
202
- #: ../lib/gettext/tools/msginit.rb:226
202
+ #: ../lib/gettext/tools/msginit.rb:229
203
203
  msgid "Please enter your full name"
204
204
  msgstr ""
205
205
 
206
- #: ../lib/gettext/tools/msginit.rb:255
206
+ #: ../lib/gettext/tools/msginit.rb:258
207
207
  msgid "Please enter your email address"
208
208
  msgstr ""
209
209
 
@@ -38,7 +38,7 @@ msgstr ""
38
38
  msgid "Concatenates and merges PO files."
39
39
  msgstr ""
40
40
 
41
- #: ../lib/gettext/tools/msgcat.rb:246 ../lib/gettext/tools/msgfmt.rb:86 ../lib/gettext/tools/msginit.rb:95 ../lib/gettext/tools/msgmerge.rb:369 ../lib/gettext/tools/xgettext.rb:248
41
+ #: ../lib/gettext/tools/msgcat.rb:246 ../lib/gettext/tools/msgfmt.rb:86 ../lib/gettext/tools/msginit.rb:98 ../lib/gettext/tools/msgmerge.rb:369 ../lib/gettext/tools/xgettext.rb:248
42
42
  msgid "Specific options:"
43
43
  msgstr "Volby:"
44
44
 
@@ -147,67 +147,67 @@ msgstr "zapsat výstup od určeného souboru"
147
147
  msgid "display version information and exit"
148
148
  msgstr "zobrazit informaci o verzi a skončit"
149
149
 
150
- #: ../lib/gettext/tools/msginit.rb:91
150
+ #: ../lib/gettext/tools/msginit.rb:94
151
151
  msgid "Create a new .po file from initializing .pot file with user's environment and input."
152
152
  msgstr ""
153
153
 
154
- #: ../lib/gettext/tools/msginit.rb:97
154
+ #: ../lib/gettext/tools/msginit.rb:100
155
155
  msgid "Use INPUT as a .pot file. If INPUT is not specified, INPUT is a .pot file existing the current directory."
156
156
  msgstr ""
157
157
 
158
- #: ../lib/gettext/tools/msginit.rb:104
158
+ #: ../lib/gettext/tools/msginit.rb:107
159
159
  msgid "Use OUTPUT as a created .po file. If OUTPUT is not specified, OUTPUT depend on LOCALE or the current locale on your environment."
160
160
  msgstr ""
161
161
 
162
- #: ../lib/gettext/tools/msginit.rb:111
162
+ #: ../lib/gettext/tools/msginit.rb:114
163
163
  msgid "Use LOCALE as target locale. If LOCALE is not specified, LOCALE is the current locale on your environment."
164
164
  msgstr ""
165
165
 
166
- #: ../lib/gettext/tools/msginit.rb:119
166
+ #: ../lib/gettext/tools/msginit.rb:122
167
167
  msgid "Whether set translator information or not"
168
168
  msgstr ""
169
169
 
170
- #: ../lib/gettext/tools/msginit.rb:120
170
+ #: ../lib/gettext/tools/msginit.rb:123
171
171
  msgid "(set)"
172
172
  msgstr ""
173
173
 
174
- #: ../lib/gettext/tools/msginit.rb:125
174
+ #: ../lib/gettext/tools/msginit.rb:128
175
175
  msgid "Use NAME as translator name"
176
176
  msgstr ""
177
177
 
178
- #: ../lib/gettext/tools/msginit.rb:130
178
+ #: ../lib/gettext/tools/msginit.rb:133
179
179
  msgid "Use EMAIL as translator email address"
180
180
  msgstr ""
181
181
 
182
- #: ../lib/gettext/tools/msginit.rb:134 ../lib/gettext/tools/msgmerge.rb:443
182
+ #: ../lib/gettext/tools/msginit.rb:137 ../lib/gettext/tools/msgmerge.rb:443
183
183
  msgid "Display this help and exit"
184
184
  msgstr ""
185
185
 
186
- #: ../lib/gettext/tools/msginit.rb:139
186
+ #: ../lib/gettext/tools/msginit.rb:142
187
187
  msgid "Display version and exit"
188
188
  msgstr "zobrazit informaci o verzi a skončit"
189
189
 
190
- #: ../lib/gettext/tools/msginit.rb:157
190
+ #: ../lib/gettext/tools/msginit.rb:160
191
191
  msgid ".pot file does not exist in the current directory."
192
192
  msgstr ""
193
193
 
194
- #: ../lib/gettext/tools/msginit.rb:162
194
+ #: ../lib/gettext/tools/msginit.rb:165
195
195
  msgid "file '%s' does not exist."
196
196
  msgstr "Soubor '%s' již existoval."
197
197
 
198
- #: ../lib/gettext/tools/msginit.rb:174
198
+ #: ../lib/gettext/tools/msginit.rb:177
199
199
  msgid "Locale '%s' is invalid. Please check if your specified locale is usable."
200
200
  msgstr ""
201
201
 
202
- #: ../lib/gettext/tools/msginit.rb:184
202
+ #: ../lib/gettext/tools/msginit.rb:187
203
203
  msgid "file '%s' has already existed."
204
204
  msgstr "Soubor '%s' již existoval."
205
205
 
206
- #: ../lib/gettext/tools/msginit.rb:226
206
+ #: ../lib/gettext/tools/msginit.rb:229
207
207
  msgid "Please enter your full name"
208
208
  msgstr ""
209
209
 
210
- #: ../lib/gettext/tools/msginit.rb:255
210
+ #: ../lib/gettext/tools/msginit.rb:258
211
211
  msgid "Please enter your email address"
212
212
  msgstr ""
213
213