gettext 1.90.0 → 1.91.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +45 -0
- data/NEWS +22 -0
- data/README +5 -3
- data/Rakefile +4 -2
- data/bin/rgettext +2 -2
- data/bin/rmsgfmt +2 -2
- data/bin/rmsgmerge +2 -2
- data/data/locale/bs/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/bs/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ca/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ca/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/eo/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/eo/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/et/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/hr/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/hr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/hu/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/hu/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/it/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/nb/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/nb/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ru/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ru/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/sr/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/sr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ua/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ua/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/vi/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/vi/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/zh/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/zh/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/zh_TW/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/zh_TW/LC_MESSAGES/rgettext.mo +0 -0
- data/doc/classes/ActionView/Helpers/FormBuilder.html +154 -0
- data/doc/classes/ActiveRecord/Base.html +47 -47
- data/doc/classes/ActiveRecord/ConnectionAdapters/Column.html +6 -6
- data/doc/classes/GetText.html +379 -327
- data/doc/classes/GetText/ActiveRecordParser.html +12 -12
- data/doc/classes/GetText/ErbContainer.html +12 -12
- data/doc/classes/GetText/ErbParser.html +6 -6
- data/doc/classes/GetText/PoParser.html +6 -6
- data/doc/classes/GetText/Rails.html +20 -20
- data/doc/classes/GetText/TextDomain.html +68 -68
- data/doc/classes/GetText/TextDomainManager.html +54 -54
- data/doc/classes/Locale.html +152 -151
- data/doc/classes/Locale/Object.html +92 -92
- data/doc/classes/Locale/SystemBase.html +32 -32
- data/doc/classes/Locale/SystemCGI.html +31 -31
- data/doc/classes/Locale/SystemWin32.html +19 -34
- data/doc/classes/Locale/SystemWin32Table.html +123 -0
- data/doc/classes/MOFile.html +28 -29
- data/doc/created.rid +1 -1
- data/doc/files/ChangeLog.html +60 -1
- data/doc/files/README.html +11 -4
- data/doc/files/lib/gettext/active_record_rb.html +1 -1
- data/doc/files/lib/gettext/cgi_rb.html +1 -1
- data/doc/files/lib/gettext/container_rb.html +1 -1
- data/doc/files/lib/gettext/erb_rb.html +1 -1
- data/doc/files/lib/gettext/iconv_rb.html +1 -1
- data/doc/files/lib/gettext/mo_rb.html +2 -1
- data/doc/files/lib/gettext/parser/active_record_rb.html +1 -1
- data/doc/files/lib/gettext/parser/erb_rb.html +1 -1
- data/doc/files/lib/gettext/parser/glade_rb.html +1 -1
- data/doc/files/lib/gettext/parser/ruby_rb.html +1 -1
- data/doc/files/lib/gettext/poparser_rb.html +1 -1
- data/doc/files/lib/gettext/rails_compat_rb.html +1 -1
- data/doc/files/lib/gettext/rails_rb.html +1 -1
- data/doc/files/lib/gettext/rgettext_rb.html +1 -1
- data/doc/files/lib/gettext/rmsgfmt_rb.html +1 -1
- data/doc/files/lib/gettext/rmsgmerge_rb.html +1 -1
- data/doc/files/lib/gettext/string_rb.html +1 -1
- data/doc/files/lib/gettext/textdomain_rb.html +1 -1
- data/doc/files/lib/gettext/textdomainmanager_rb.html +1 -1
- data/doc/files/lib/gettext/utils_rb.html +1 -1
- data/doc/files/lib/gettext/version_rb.html +1 -1
- data/doc/files/lib/gettext_rb.html +1 -1
- data/doc/files/lib/locale/base_rb.html +1 -1
- data/doc/files/lib/locale/cgi_rb.html +1 -1
- data/doc/files/lib/locale/jruby_rb.html +1 -1
- data/doc/files/lib/locale/object_rb.html +1 -1
- data/doc/files/lib/locale/posix_rb.html +1 -1
- data/doc/files/lib/locale/win32_rb.html +1 -1
- data/doc/files/lib/locale/win32_table_rb.html +1 -1
- data/doc/files/lib/locale_rb.html +1 -1
- data/doc/fr_class_index.html +2 -0
- data/doc/fr_method_index.html +83 -81
- data/lib/gettext.rb +46 -21
- data/lib/gettext/active_record.rb +5 -5
- data/lib/gettext/mo.rb +4 -4
- data/lib/gettext/rails.rb +15 -3
- data/lib/gettext/textdomain.rb +44 -41
- data/lib/gettext/utils.rb +8 -1
- data/lib/gettext/version.rb +2 -2
- data/lib/locale/jruby.rb +3 -3
- data/lib/locale/win32.rb +2 -1
- data/lib/locale/win32_table.rb +2 -2
- data/po/bs/rails.po +39 -37
- data/po/bs/rgettext.po +63 -53
- data/po/ca/rails.po +39 -36
- data/po/ca/rgettext.po +64 -54
- data/po/cs/rails.po +39 -35
- data/po/cs/rgettext.po +63 -53
- data/po/de/rails.po +38 -36
- data/po/de/rgettext.po +67 -57
- data/po/el/rails.po +42 -39
- data/po/el/rgettext.po +63 -53
- data/po/eo/rails.po +39 -37
- data/po/eo/rgettext.po +63 -53
- data/po/es/rails.po +38 -35
- data/po/es/rgettext.po +64 -54
- data/po/et/rails.po +38 -36
- data/po/fr/rails.po +39 -37
- data/po/fr/rgettext.po +65 -56
- data/po/hr/rails.po +40 -37
- data/po/hr/rgettext.po +63 -53
- data/po/hu/rails.po +38 -35
- data/po/hu/rgettext.po +64 -54
- data/po/it/rails.po +34 -32
- data/po/it/rgettext.po +62 -54
- data/po/ja/rails.po +42 -40
- data/po/ja/rgettext.po +64 -54
- data/po/ko/rails.po +38 -36
- data/po/ko/rgettext.po +64 -54
- data/po/nb/rails.po +37 -32
- data/po/nb/rgettext.po +62 -52
- data/po/nl/rails.po +39 -38
- data/po/nl/rgettext.po +64 -54
- data/po/pt_BR/rails.po +38 -36
- data/po/pt_BR/rgettext.po +63 -53
- data/po/rails.pot +41 -39
- data/po/rgettext.pot +55 -47
- data/po/ru/rails.po +41 -37
- data/po/ru/rgettext.po +63 -53
- data/po/sr/rails.po +149 -0
- data/po/sr/rgettext.po +135 -0
- data/po/sv/rgettext.po +60 -52
- data/po/ua/rails.po +39 -37
- data/po/ua/rgettext.po +67 -57
- data/po/vi/rails.po +39 -37
- data/po/vi/rgettext.po +61 -51
- data/po/zh/rails.po +37 -36
- data/po/zh/rgettext.po +66 -56
- data/po/zh_TW/rails.po +37 -36
- data/po/zh_TW/rgettext.po +64 -54
- data/samples/cgi/locale/sr/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/sr/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/sr/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/sr/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/po/sr/helloerb1.po +60 -0
- data/samples/cgi/po/sr/helloerb2.po +52 -0
- data/samples/cgi/po/sr/hellolib.po +24 -0
- data/samples/cgi/po/sr/main.po +80 -0
- data/samples/locale/hu/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/it/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/po/hu/hellogtk.po +3 -3
- data/samples/po/it/hello2.po +1 -1
- data/samples/po/sr/hello.po +22 -0
- data/samples/po/sr/hello2.po +30 -0
- data/samples/po/sr/hello_noop.po +26 -0
- data/samples/po/sr/hello_plural.po +26 -0
- data/samples/po/sr/helloglade2.po +32 -0
- data/samples/po/sr/hellogtk.po +22 -0
- data/samples/po/sr/hellotk.po +24 -0
- data/samples/po/zh/helloglade2.po +1 -1
- data/samples/po/zh/hellotk.po +1 -1
- data/samples/rails/app/views/articles/edit.html.erb +3 -0
- data/samples/rails/app/views/articles/new.html.erb +3 -0
- data/samples/rails/config/database.yml +9 -4
- data/samples/rails/locale/sr/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/po/sr/blog.po +106 -0
- data/samples/rails/vendor/plugins/gettext/locale/sr/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/po/sr/gettext_plugin.po +28 -0
- data/test/locale/fr/LC_MESSAGES/test2.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/test2.mo +0 -0
- data/test/po/fr/test2.po +1 -1
- data/test/po/ja/test2.po +1 -1
- data/test/rails/app/views/articles/show.html.erb +1 -0
- data/test/rails/config/environment.rb +1 -1
- data/test/rails/test/functional/articles_controller_test.rb +2 -2
- data/test/rails/test/functional/mailer_controller_test.rb +3 -1
- data/test/rails/test/functional/users_controller_test.rb +1 -1
- data/test/rails/test/result/en/custom_error_message_with_plural.html +4 -4
- data/test/rails/test/result/en/show.html +1 -0
- data/test/rails/test/result/fr/custom_error_message_with_plural.html +4 -4
- data/test/rails/test/result/ja/custom_error_message_with_plural.html +4 -4
- data/test/rails/test/result/ja/show.html +2 -1
- data/test/test.sh +1 -0
- data/test/test_active_record.rb +4 -4
- data/test/test_gettext.rb +10 -10
- data/test/test_gettext_toplevel.rb +44 -0
- data/test/test_locale.rb +1 -19
- metadata +93 -42
- data/test/rails/locale/ja/LC_MESSAGES/rails_test.mo +0 -0
- data/test/rails/log/development.log +0 -136
- data/test/rails/log/test.log +0 -2203
@@ -88,22 +88,22 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
91
|
+
<a href="#M000109">charset=</a>
|
92
|
+
<a href="#M000115">clear</a>
|
93
|
+
<a href="#M000108">country=</a>
|
94
|
+
<a href="#M000107">language=</a>
|
95
|
+
<a href="#M000112">modifier=</a>
|
96
|
+
<a href="#M000114">new</a>
|
97
|
+
<a href="#M000113">parse</a>
|
98
|
+
<a href="#M000110">script=</a>
|
99
|
+
<a href="#M000120">to_a</a>
|
100
|
+
<a href="#M000119">to_general</a>
|
101
|
+
<a href="#M000117">to_iso3066</a>
|
102
|
+
<a href="#M000116">to_posix</a>
|
103
|
+
<a href="#M000121">to_s</a>
|
104
|
+
<a href="#M000122">to_str</a>
|
105
|
+
<a href="#M000118">to_win</a>
|
106
|
+
<a href="#M000111">variant=</a>
|
107
107
|
</div>
|
108
108
|
</div>
|
109
109
|
|
@@ -178,11 +178,11 @@ used as the last fallback locale anytime.
|
|
178
178
|
<div id="methods">
|
179
179
|
<h3 class="section-bar">Public Class methods</h3>
|
180
180
|
|
181
|
-
<div id="method-
|
182
|
-
<a name="
|
181
|
+
<div id="method-M000114" class="method-detail">
|
182
|
+
<a name="M000114"></a>
|
183
183
|
|
184
184
|
<div class="method-heading">
|
185
|
-
<a href="#
|
185
|
+
<a href="#M000114" class="method-signature">
|
186
186
|
<span class="method-name">new</span><span class="method-args">(language_or_locale_name, country = nil, charset = nil)</span>
|
187
187
|
</a>
|
188
188
|
</div>
|
@@ -226,8 +226,8 @@ name
|
|
226
226
|
-> language = "en", country = nil, charset = nil.
|
227
227
|
</pre>
|
228
228
|
<p><a class="source-toggle" href="#"
|
229
|
-
onclick="toggleCode('
|
230
|
-
<div class="method-source-code" id="
|
229
|
+
onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
|
230
|
+
<div class="method-source-code" id="M000114-source">
|
231
231
|
<pre>
|
232
232
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 149</span>
|
233
233
|
149: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">language_or_locale_name</span>, <span class="ruby-identifier">country</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">charset</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -244,11 +244,11 @@ name
|
|
244
244
|
</div>
|
245
245
|
</div>
|
246
246
|
|
247
|
-
<div id="method-
|
248
|
-
<a name="
|
247
|
+
<div id="method-M000113" class="method-detail">
|
248
|
+
<a name="M000113"></a>
|
249
249
|
|
250
250
|
<div class="method-heading">
|
251
|
-
<a href="#
|
251
|
+
<a href="#M000113" class="method-signature">
|
252
252
|
<span class="method-name">parse</span><span class="method-args">(locale_name)</span>
|
253
253
|
</a>
|
254
254
|
</div>
|
@@ -352,8 +352,8 @@ order>.<charset>@<modifier>
|
|
352
352
|
"de_DE@collation=phonebook,currency=DDM" => ["de", "DE", nil, nil, "collation=phonebook,currency=DDM"]
|
353
353
|
</pre>
|
354
354
|
<p><a class="source-toggle" href="#"
|
355
|
-
onclick="toggleCode('
|
356
|
-
<div class="method-source-code" id="
|
355
|
+
onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
|
356
|
+
<div class="method-source-code" id="M000113-source">
|
357
357
|
<pre>
|
358
358
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 97</span>
|
359
359
|
97: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">locale_name</span>)
|
@@ -389,11 +389,11 @@ order>.<charset>@<modifier>
|
|
389
389
|
|
390
390
|
<h3 class="section-bar">Public Instance methods</h3>
|
391
391
|
|
392
|
-
<div id="method-
|
393
|
-
<a name="
|
392
|
+
<div id="method-M000109" class="method-detail">
|
393
|
+
<a name="M000109"></a>
|
394
394
|
|
395
395
|
<div class="method-heading">
|
396
|
-
<a href="#
|
396
|
+
<a href="#M000109" class="method-signature">
|
397
397
|
<span class="method-name">charset=</span><span class="method-args">(val)</span>
|
398
398
|
</a>
|
399
399
|
</div>
|
@@ -403,8 +403,8 @@ order>.<charset>@<modifier>
|
|
403
403
|
Set the charset. e.g.) UTF-8, EUC-JP, Shift_JIS
|
404
404
|
</p>
|
405
405
|
<p><a class="source-toggle" href="#"
|
406
|
-
onclick="toggleCode('
|
407
|
-
<div class="method-source-code" id="
|
406
|
+
onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
|
407
|
+
<div class="method-source-code" id="M000109-source">
|
408
408
|
<pre>
|
409
409
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 30</span>
|
410
410
|
30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">charset=</span>(<span class="ruby-identifier">val</span>)
|
@@ -416,19 +416,19 @@ Set the charset. e.g.) UTF-8, EUC-JP, Shift_JIS
|
|
416
416
|
</div>
|
417
417
|
</div>
|
418
418
|
|
419
|
-
<div id="method-
|
420
|
-
<a name="
|
419
|
+
<div id="method-M000115" class="method-detail">
|
420
|
+
<a name="M000115"></a>
|
421
421
|
|
422
422
|
<div class="method-heading">
|
423
|
-
<a href="#
|
423
|
+
<a href="#M000115" class="method-signature">
|
424
424
|
<span class="method-name">clear</span><span class="method-args">()</span>
|
425
425
|
</a>
|
426
426
|
</div>
|
427
427
|
|
428
428
|
<div class="method-description">
|
429
429
|
<p><a class="source-toggle" href="#"
|
430
|
-
onclick="toggleCode('
|
431
|
-
<div class="method-source-code" id="
|
430
|
+
onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
|
431
|
+
<div class="method-source-code" id="M000115-source">
|
432
432
|
<pre>
|
433
433
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 159</span>
|
434
434
|
159: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>
|
@@ -443,11 +443,11 @@ Set the charset. e.g.) UTF-8, EUC-JP, Shift_JIS
|
|
443
443
|
</div>
|
444
444
|
</div>
|
445
445
|
|
446
|
-
<div id="method-
|
447
|
-
<a name="
|
446
|
+
<div id="method-M000108" class="method-detail">
|
447
|
+
<a name="M000108"></a>
|
448
448
|
|
449
449
|
<div class="method-heading">
|
450
|
-
<a href="#
|
450
|
+
<a href="#M000108" class="method-signature">
|
451
451
|
<span class="method-name">country=</span><span class="method-args">(val)</span>
|
452
452
|
</a>
|
453
453
|
</div>
|
@@ -457,8 +457,8 @@ Set the charset. e.g.) UTF-8, EUC-JP, Shift_JIS
|
|
457
457
|
Set the country. e.g.) JP, US, FR, …
|
458
458
|
</p>
|
459
459
|
<p><a class="source-toggle" href="#"
|
460
|
-
onclick="toggleCode('
|
461
|
-
<div class="method-source-code" id="
|
460
|
+
onclick="toggleCode('M000108-source');return false;">[Source]</a></p>
|
461
|
+
<div class="method-source-code" id="M000108-source">
|
462
462
|
<pre>
|
463
463
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 24</span>
|
464
464
|
24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">country=</span>(<span class="ruby-identifier">val</span>)
|
@@ -470,11 +470,11 @@ Set the country. e.g.) JP, US, FR, …
|
|
470
470
|
</div>
|
471
471
|
</div>
|
472
472
|
|
473
|
-
<div id="method-
|
474
|
-
<a name="
|
473
|
+
<div id="method-M000107" class="method-detail">
|
474
|
+
<a name="M000107"></a>
|
475
475
|
|
476
476
|
<div class="method-heading">
|
477
|
-
<a href="#
|
477
|
+
<a href="#M000107" class="method-signature">
|
478
478
|
<span class="method-name">language=</span><span class="method-args">(val)</span>
|
479
479
|
</a>
|
480
480
|
</div>
|
@@ -484,8 +484,8 @@ Set the country. e.g.) JP, US, FR, …
|
|
484
484
|
Set the language. e.g.) ja, en, fr, …
|
485
485
|
</p>
|
486
486
|
<p><a class="source-toggle" href="#"
|
487
|
-
onclick="toggleCode('
|
488
|
-
<div class="method-source-code" id="
|
487
|
+
onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
|
488
|
+
<div class="method-source-code" id="M000107-source">
|
489
489
|
<pre>
|
490
490
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 18</span>
|
491
491
|
18: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">language=</span>(<span class="ruby-identifier">val</span>)
|
@@ -497,11 +497,11 @@ Set the language. e.g.) ja, en, fr, …
|
|
497
497
|
</div>
|
498
498
|
</div>
|
499
499
|
|
500
|
-
<div id="method-
|
501
|
-
<a name="
|
500
|
+
<div id="method-M000112" class="method-detail">
|
501
|
+
<a name="M000112"></a>
|
502
502
|
|
503
503
|
<div class="method-heading">
|
504
|
-
<a href="#
|
504
|
+
<a href="#M000112" class="method-signature">
|
505
505
|
<span class="method-name">modifier=</span><span class="method-args">(val)</span>
|
506
506
|
</a>
|
507
507
|
</div>
|
@@ -511,8 +511,8 @@ Set the language. e.g.) ja, en, fr, …
|
|
511
511
|
Set the modifier. e.g.) curreny=DDM
|
512
512
|
</p>
|
513
513
|
<p><a class="source-toggle" href="#"
|
514
|
-
onclick="toggleCode('
|
515
|
-
<div class="method-source-code" id="
|
514
|
+
onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
|
515
|
+
<div class="method-source-code" id="M000112-source">
|
516
516
|
<pre>
|
517
517
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 48</span>
|
518
518
|
48: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">modifier=</span>(<span class="ruby-identifier">val</span>)
|
@@ -524,11 +524,11 @@ Set the modifier. e.g.) curreny=DDM
|
|
524
524
|
</div>
|
525
525
|
</div>
|
526
526
|
|
527
|
-
<div id="method-
|
528
|
-
<a name="
|
527
|
+
<div id="method-M000110" class="method-detail">
|
528
|
+
<a name="M000110"></a>
|
529
529
|
|
530
530
|
<div class="method-heading">
|
531
|
-
<a href="#
|
531
|
+
<a href="#M000110" class="method-signature">
|
532
532
|
<span class="method-name">script=</span><span class="method-args">(val)</span>
|
533
533
|
</a>
|
534
534
|
</div>
|
@@ -538,8 +538,8 @@ Set the modifier. e.g.) curreny=DDM
|
|
538
538
|
Set the script. e.g.) Latn
|
539
539
|
</p>
|
540
540
|
<p><a class="source-toggle" href="#"
|
541
|
-
onclick="toggleCode('
|
542
|
-
<div class="method-source-code" id="
|
541
|
+
onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
|
542
|
+
<div class="method-source-code" id="M000110-source">
|
543
543
|
<pre>
|
544
544
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 36</span>
|
545
545
|
36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">script=</span>(<span class="ruby-identifier">val</span>)
|
@@ -551,11 +551,11 @@ Set the script. e.g.) Latn
|
|
551
551
|
</div>
|
552
552
|
</div>
|
553
553
|
|
554
|
-
<div id="method-
|
555
|
-
<a name="
|
554
|
+
<div id="method-M000120" class="method-detail">
|
555
|
+
<a name="M000120"></a>
|
556
556
|
|
557
557
|
<div class="method-heading">
|
558
|
-
<a href="#
|
558
|
+
<a href="#M000120" class="method-signature">
|
559
559
|
<span class="method-name">to_a</span><span class="method-args">()</span>
|
560
560
|
</a>
|
561
561
|
</div>
|
@@ -590,8 +590,8 @@ Gets the locale informations as an Array.
|
|
590
590
|
</li>
|
591
591
|
</ul>
|
592
592
|
<p><a class="source-toggle" href="#"
|
593
|
-
onclick="toggleCode('
|
594
|
-
<div class="method-source-code" id="
|
593
|
+
onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
|
594
|
+
<div class="method-source-code" id="M000120-source">
|
595
595
|
<pre>
|
596
596
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 215</span>
|
597
597
|
215: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>
|
@@ -602,11 +602,11 @@ Gets the locale informations as an Array.
|
|
602
602
|
</div>
|
603
603
|
</div>
|
604
604
|
|
605
|
-
<div id="method-
|
606
|
-
<a name="
|
605
|
+
<div id="method-M000119" class="method-detail">
|
606
|
+
<a name="M000119"></a>
|
607
607
|
|
608
608
|
<div class="method-heading">
|
609
|
-
<a href="#
|
609
|
+
<a href="#M000119" class="method-signature">
|
610
610
|
<span class="method-name">to_general</span><span class="method-args">()</span>
|
611
611
|
</a>
|
612
612
|
</div>
|
@@ -617,8 +617,8 @@ Returns the locale as ‘ruby’ general format. (e.g.)
|
|
617
617
|
"az_AZ_Latn"
|
618
618
|
</p>
|
619
619
|
<p><a class="source-toggle" href="#"
|
620
|
-
onclick="toggleCode('
|
621
|
-
<div class="method-source-code" id="
|
620
|
+
onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
|
621
|
+
<div class="method-source-code" id="M000119-source">
|
622
622
|
<pre>
|
623
623
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 198</span>
|
624
624
|
198: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_general</span>
|
@@ -634,11 +634,11 @@ Returns the locale as ‘ruby’ general format. (e.g.)
|
|
634
634
|
</div>
|
635
635
|
</div>
|
636
636
|
|
637
|
-
<div id="method-
|
638
|
-
<a name="
|
637
|
+
<div id="method-M000117" class="method-detail">
|
638
|
+
<a name="M000117"></a>
|
639
639
|
|
640
640
|
<div class="method-heading">
|
641
|
-
<a href="#
|
641
|
+
<a href="#M000117" class="method-signature">
|
642
642
|
<span class="method-name">to_iso3066</span><span class="method-args">()</span>
|
643
643
|
</a>
|
644
644
|
</div>
|
@@ -648,8 +648,8 @@ Returns the locale as ‘ruby’ general format. (e.g.)
|
|
648
648
|
Returns the locale as ISO3066 format. (e.g.) "ja-JP"
|
649
649
|
</p>
|
650
650
|
<p><a class="source-toggle" href="#"
|
651
|
-
onclick="toggleCode('
|
652
|
-
<div class="method-source-code" id="
|
651
|
+
onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
|
652
|
+
<div class="method-source-code" id="M000117-source">
|
653
653
|
<pre>
|
654
654
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 177</span>
|
655
655
|
177: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_iso3066</span>
|
@@ -664,11 +664,11 @@ Returns the locale as ISO3066 format. (e.g.) "ja-JP"
|
|
664
664
|
</div>
|
665
665
|
</div>
|
666
666
|
|
667
|
-
<div id="method-
|
668
|
-
<a name="
|
667
|
+
<div id="method-M000116" class="method-detail">
|
668
|
+
<a name="M000116"></a>
|
669
669
|
|
670
670
|
<div class="method-heading">
|
671
|
-
<a href="#
|
671
|
+
<a href="#M000116" class="method-signature">
|
672
672
|
<span class="method-name">to_posix</span><span class="method-args">()</span>
|
673
673
|
</a>
|
674
674
|
</div>
|
@@ -679,8 +679,8 @@ Returns the locale as POSIX format(but charset is ignored). (e.g.)
|
|
679
679
|
"ja_JP"
|
680
680
|
</p>
|
681
681
|
<p><a class="source-toggle" href="#"
|
682
|
-
onclick="toggleCode('
|
683
|
-
<div class="method-source-code" id="
|
682
|
+
onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
|
683
|
+
<div class="method-source-code" id="M000116-source">
|
684
684
|
<pre>
|
685
685
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 168</span>
|
686
686
|
168: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_posix</span>
|
@@ -695,8 +695,8 @@ Returns the locale as POSIX format(but charset is ignored). (e.g.)
|
|
695
695
|
</div>
|
696
696
|
</div>
|
697
697
|
|
698
|
-
<div id="method-
|
699
|
-
<a name="
|
698
|
+
<div id="method-M000121" class="method-detail">
|
699
|
+
<a name="M000121"></a>
|
700
700
|
|
701
701
|
<div class="method-heading">
|
702
702
|
<span class="method-name">to_s</span><span class="method-args">()</span>
|
@@ -704,13 +704,13 @@ Returns the locale as POSIX format(but charset is ignored). (e.g.)
|
|
704
704
|
|
705
705
|
<div class="method-description">
|
706
706
|
<p>
|
707
|
-
Alias for <a href="Object.html#
|
707
|
+
Alias for <a href="Object.html#M000116">to_posix</a>
|
708
708
|
</p>
|
709
709
|
</div>
|
710
710
|
</div>
|
711
711
|
|
712
|
-
<div id="method-
|
713
|
-
<a name="
|
712
|
+
<div id="method-M000122" class="method-detail">
|
713
|
+
<a name="M000122"></a>
|
714
714
|
|
715
715
|
<div class="method-heading">
|
716
716
|
<span class="method-name">to_str</span><span class="method-args">()</span>
|
@@ -718,16 +718,16 @@ Alias for <a href="Object.html#M000115">to_posix</a>
|
|
718
718
|
|
719
719
|
<div class="method-description">
|
720
720
|
<p>
|
721
|
-
Alias for <a href="Object.html#
|
721
|
+
Alias for <a href="Object.html#M000116">to_posix</a>
|
722
722
|
</p>
|
723
723
|
</div>
|
724
724
|
</div>
|
725
725
|
|
726
|
-
<div id="method-
|
727
|
-
<a name="
|
726
|
+
<div id="method-M000118" class="method-detail">
|
727
|
+
<a name="M000118"></a>
|
728
728
|
|
729
729
|
<div class="method-heading">
|
730
|
-
<a href="#
|
730
|
+
<a href="#M000118" class="method-signature">
|
731
731
|
<span class="method-name">to_win</span><span class="method-args">()</span>
|
732
732
|
</a>
|
733
733
|
</div>
|
@@ -740,8 +740,8 @@ Returns the locale as Win32 format. (e.g.) "az-AZ-Latn".
|
|
740
740
|
This is used to find the charset from locale table.
|
741
741
|
</p>
|
742
742
|
<p><a class="source-toggle" href="#"
|
743
|
-
onclick="toggleCode('
|
744
|
-
<div class="method-source-code" id="
|
743
|
+
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
744
|
+
<div class="method-source-code" id="M000118-source">
|
745
745
|
<pre>
|
746
746
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 188</span>
|
747
747
|
188: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_win</span>
|
@@ -757,11 +757,11 @@ This is used to find the charset from locale table.
|
|
757
757
|
</div>
|
758
758
|
</div>
|
759
759
|
|
760
|
-
<div id="method-
|
761
|
-
<a name="
|
760
|
+
<div id="method-M000111" class="method-detail">
|
761
|
+
<a name="M000111"></a>
|
762
762
|
|
763
763
|
<div class="method-heading">
|
764
|
-
<a href="#
|
764
|
+
<a href="#M000111" class="method-signature">
|
765
765
|
<span class="method-name">variant=</span><span class="method-args">(val)</span>
|
766
766
|
</a>
|
767
767
|
</div>
|
@@ -771,8 +771,8 @@ This is used to find the charset from locale table.
|
|
771
771
|
Set the variant. e.g.) Hant
|
772
772
|
</p>
|
773
773
|
<p><a class="source-toggle" href="#"
|
774
|
-
onclick="toggleCode('
|
775
|
-
<div class="method-source-code" id="
|
774
|
+
onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
|
775
|
+
<div class="method-source-code" id="M000111-source">
|
776
776
|
<pre>
|
777
777
|
<span class="ruby-comment cmt"># File lib/locale/object.rb, line 42</span>
|
778
778
|
42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">variant=</span>(<span class="ruby-identifier">val</span>)
|
@@ -88,10 +88,10 @@ Application shouldn‘t use this directly.
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
91
|
+
<a href="#M000100">charset</a>
|
92
|
+
<a href="#M000097">get_charset</a>
|
93
|
+
<a href="#M000098">locale_from_env</a>
|
94
|
+
<a href="#M000099">system</a>
|
95
95
|
</div>
|
96
96
|
</div>
|
97
97
|
|
@@ -113,30 +113,30 @@ Application shouldn‘t use this directly.
|
|
113
113
|
<div id="methods">
|
114
114
|
<h3 class="section-bar">Public Instance methods</h3>
|
115
115
|
|
116
|
-
<div id="method-
|
117
|
-
<a name="
|
116
|
+
<div id="method-M000100" class="method-detail">
|
117
|
+
<a name="M000100"></a>
|
118
118
|
|
119
119
|
<div class="method-heading">
|
120
|
-
<a href="#
|
120
|
+
<a href="#M000100" class="method-signature">
|
121
121
|
<span class="method-name">charset</span><span class="method-args">()</span>
|
122
122
|
</a>
|
123
123
|
</div>
|
124
124
|
|
125
125
|
<div class="method-description">
|
126
126
|
<p>
|
127
|
-
Gets the <a href="SystemBase.html#
|
127
|
+
Gets the <a href="SystemBase.html#M000100">charset</a> of the locale.
|
128
128
|
</p>
|
129
129
|
<ul>
|
130
130
|
<li>locale: <a href="Object.html">Locale::Object</a>
|
131
131
|
|
132
132
|
</li>
|
133
|
-
<li>Returns: the <a href="SystemBase.html#
|
133
|
+
<li>Returns: the <a href="SystemBase.html#M000100">charset</a> of the locale
|
134
134
|
|
135
135
|
</li>
|
136
136
|
</ul>
|
137
137
|
<p><a class="source-toggle" href="#"
|
138
|
-
onclick="toggleCode('
|
139
|
-
<div class="method-source-code" id="
|
138
|
+
onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
|
139
|
+
<div class="method-source-code" id="M000100-source">
|
140
140
|
<pre>
|
141
141
|
<span class="ruby-comment cmt"># File lib/locale/base.rb, line 54</span>
|
142
142
|
54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">charset</span>
|
@@ -148,30 +148,30 @@ Gets the <a href="SystemBase.html#M000099">charset</a> of the locale.
|
|
148
148
|
</div>
|
149
149
|
</div>
|
150
150
|
|
151
|
-
<div id="method-
|
152
|
-
<a name="
|
151
|
+
<div id="method-M000097" class="method-detail">
|
152
|
+
<a name="M000097"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="#
|
155
|
+
<a href="#M000097" class="method-signature">
|
156
156
|
<span class="method-name">get_charset</span><span class="method-args">(locale)</span>
|
157
157
|
</a>
|
158
158
|
</div>
|
159
159
|
|
160
160
|
<div class="method-description">
|
161
161
|
<p>
|
162
|
-
Gets the <a href="SystemBase.html#
|
162
|
+
Gets the <a href="SystemBase.html#M000100">charset</a> of the locale.
|
163
163
|
</p>
|
164
164
|
<ul>
|
165
165
|
<li>locale: <a href="Object.html">Locale::Object</a>
|
166
166
|
|
167
167
|
</li>
|
168
|
-
<li>Returns the <a href="SystemBase.html#
|
168
|
+
<li>Returns the <a href="SystemBase.html#M000100">charset</a> of the locale
|
169
169
|
|
170
170
|
</li>
|
171
171
|
</ul>
|
172
172
|
<p><a class="source-toggle" href="#"
|
173
|
-
onclick="toggleCode('
|
174
|
-
<div class="method-source-code" id="
|
173
|
+
onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
|
174
|
+
<div class="method-source-code" id="M000097-source">
|
175
175
|
<pre>
|
176
176
|
<span class="ruby-comment cmt"># File lib/locale/base.rb, line 26</span>
|
177
177
|
26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_charset</span>(<span class="ruby-identifier">locale</span>)
|
@@ -182,29 +182,29 @@ Gets the <a href="SystemBase.html#M000099">charset</a> of the locale.
|
|
182
182
|
</div>
|
183
183
|
</div>
|
184
184
|
|
185
|
-
<div id="method-
|
186
|
-
<a name="
|
185
|
+
<div id="method-M000098" class="method-detail">
|
186
|
+
<a name="M000098"></a>
|
187
187
|
|
188
188
|
<div class="method-heading">
|
189
|
-
<a href="#
|
189
|
+
<a href="#M000098" class="method-signature">
|
190
190
|
<span class="method-name">locale_from_env</span><span class="method-args">()</span>
|
191
191
|
</a>
|
192
192
|
</div>
|
193
193
|
|
194
194
|
<div class="method-description">
|
195
195
|
<p>
|
196
|
-
Gets the <a href="SystemBase.html#
|
196
|
+
Gets the <a href="SystemBase.html#M000099">system</a> locale using
|
197
197
|
setlocale and nl_langinfo.
|
198
198
|
</p>
|
199
199
|
<ul>
|
200
|
-
<li>Returns the <a href="SystemBase.html#
|
200
|
+
<li>Returns the <a href="SystemBase.html#M000099">system</a> locale (<a
|
201
201
|
href="Object.html">Locale::Object</a>).
|
202
202
|
|
203
203
|
</li>
|
204
204
|
</ul>
|
205
205
|
<p><a class="source-toggle" href="#"
|
206
|
-
onclick="toggleCode('
|
207
|
-
<div class="method-source-code" id="
|
206
|
+
onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
|
207
|
+
<div class="method-source-code" id="M000098-source">
|
208
208
|
<pre>
|
209
209
|
<span class="ruby-comment cmt"># File lib/locale/base.rb, line 32</span>
|
210
210
|
32: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">locale_from_env</span>
|
@@ -224,28 +224,28 @@ href="Object.html">Locale::Object</a>).
|
|
224
224
|
</div>
|
225
225
|
</div>
|
226
226
|
|
227
|
-
<div id="method-
|
228
|
-
<a name="
|
227
|
+
<div id="method-M000099" class="method-detail">
|
228
|
+
<a name="M000099"></a>
|
229
229
|
|
230
230
|
<div class="method-heading">
|
231
|
-
<a href="#
|
231
|
+
<a href="#M000099" class="method-signature">
|
232
232
|
<span class="method-name">system</span><span class="method-args">()</span>
|
233
233
|
</a>
|
234
234
|
</div>
|
235
235
|
|
236
236
|
<div class="method-description">
|
237
237
|
<p>
|
238
|
-
Gets the <a href="SystemBase.html#
|
238
|
+
Gets the <a href="SystemBase.html#M000099">system</a> locale.
|
239
239
|
</p>
|
240
240
|
<ul>
|
241
|
-
<li>Returns the <a href="SystemBase.html#
|
241
|
+
<li>Returns the <a href="SystemBase.html#M000099">system</a> locale (<a
|
242
242
|
href="Object.html">Locale::Object</a>)
|
243
243
|
|
244
244
|
</li>
|
245
245
|
</ul>
|
246
246
|
<p><a class="source-toggle" href="#"
|
247
|
-
onclick="toggleCode('
|
248
|
-
<div class="method-source-code" id="
|
247
|
+
onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
|
248
|
+
<div class="method-source-code" id="M000099-source">
|
249
249
|
<pre>
|
250
250
|
<span class="ruby-comment cmt"># File lib/locale/base.rb, line 47</span>
|
251
251
|
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">system</span>
|