gettext 1.90.0 → 1.91.0

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.
Files changed (224) hide show
  1. data/ChangeLog +45 -0
  2. data/NEWS +22 -0
  3. data/README +5 -3
  4. data/Rakefile +4 -2
  5. data/bin/rgettext +2 -2
  6. data/bin/rmsgfmt +2 -2
  7. data/bin/rmsgmerge +2 -2
  8. data/data/locale/bs/LC_MESSAGES/rails.mo +0 -0
  9. data/data/locale/bs/LC_MESSAGES/rgettext.mo +0 -0
  10. data/data/locale/ca/LC_MESSAGES/rails.mo +0 -0
  11. data/data/locale/ca/LC_MESSAGES/rgettext.mo +0 -0
  12. data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
  13. data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
  14. data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
  15. data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
  16. data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
  17. data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
  18. data/data/locale/eo/LC_MESSAGES/rails.mo +0 -0
  19. data/data/locale/eo/LC_MESSAGES/rgettext.mo +0 -0
  20. data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
  21. data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
  22. data/data/locale/et/LC_MESSAGES/rails.mo +0 -0
  23. data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
  24. data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
  25. data/data/locale/hr/LC_MESSAGES/rails.mo +0 -0
  26. data/data/locale/hr/LC_MESSAGES/rgettext.mo +0 -0
  27. data/data/locale/hu/LC_MESSAGES/rails.mo +0 -0
  28. data/data/locale/hu/LC_MESSAGES/rgettext.mo +0 -0
  29. data/data/locale/it/LC_MESSAGES/rails.mo +0 -0
  30. data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
  31. data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
  32. data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
  33. data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
  34. data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
  35. data/data/locale/nb/LC_MESSAGES/rails.mo +0 -0
  36. data/data/locale/nb/LC_MESSAGES/rgettext.mo +0 -0
  37. data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
  38. data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
  39. data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
  40. data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
  41. data/data/locale/ru/LC_MESSAGES/rails.mo +0 -0
  42. data/data/locale/ru/LC_MESSAGES/rgettext.mo +0 -0
  43. data/data/locale/sr/LC_MESSAGES/rails.mo +0 -0
  44. data/data/locale/sr/LC_MESSAGES/rgettext.mo +0 -0
  45. data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
  46. data/data/locale/ua/LC_MESSAGES/rails.mo +0 -0
  47. data/data/locale/ua/LC_MESSAGES/rgettext.mo +0 -0
  48. data/data/locale/vi/LC_MESSAGES/rails.mo +0 -0
  49. data/data/locale/vi/LC_MESSAGES/rgettext.mo +0 -0
  50. data/data/locale/zh/LC_MESSAGES/rails.mo +0 -0
  51. data/data/locale/zh/LC_MESSAGES/rgettext.mo +0 -0
  52. data/data/locale/zh_TW/LC_MESSAGES/rails.mo +0 -0
  53. data/data/locale/zh_TW/LC_MESSAGES/rgettext.mo +0 -0
  54. data/doc/classes/ActionView/Helpers/FormBuilder.html +154 -0
  55. data/doc/classes/ActiveRecord/Base.html +47 -47
  56. data/doc/classes/ActiveRecord/ConnectionAdapters/Column.html +6 -6
  57. data/doc/classes/GetText.html +379 -327
  58. data/doc/classes/GetText/ActiveRecordParser.html +12 -12
  59. data/doc/classes/GetText/ErbContainer.html +12 -12
  60. data/doc/classes/GetText/ErbParser.html +6 -6
  61. data/doc/classes/GetText/PoParser.html +6 -6
  62. data/doc/classes/GetText/Rails.html +20 -20
  63. data/doc/classes/GetText/TextDomain.html +68 -68
  64. data/doc/classes/GetText/TextDomainManager.html +54 -54
  65. data/doc/classes/Locale.html +152 -151
  66. data/doc/classes/Locale/Object.html +92 -92
  67. data/doc/classes/Locale/SystemBase.html +32 -32
  68. data/doc/classes/Locale/SystemCGI.html +31 -31
  69. data/doc/classes/Locale/SystemWin32.html +19 -34
  70. data/doc/classes/Locale/SystemWin32Table.html +123 -0
  71. data/doc/classes/MOFile.html +28 -29
  72. data/doc/created.rid +1 -1
  73. data/doc/files/ChangeLog.html +60 -1
  74. data/doc/files/README.html +11 -4
  75. data/doc/files/lib/gettext/active_record_rb.html +1 -1
  76. data/doc/files/lib/gettext/cgi_rb.html +1 -1
  77. data/doc/files/lib/gettext/container_rb.html +1 -1
  78. data/doc/files/lib/gettext/erb_rb.html +1 -1
  79. data/doc/files/lib/gettext/iconv_rb.html +1 -1
  80. data/doc/files/lib/gettext/mo_rb.html +2 -1
  81. data/doc/files/lib/gettext/parser/active_record_rb.html +1 -1
  82. data/doc/files/lib/gettext/parser/erb_rb.html +1 -1
  83. data/doc/files/lib/gettext/parser/glade_rb.html +1 -1
  84. data/doc/files/lib/gettext/parser/ruby_rb.html +1 -1
  85. data/doc/files/lib/gettext/poparser_rb.html +1 -1
  86. data/doc/files/lib/gettext/rails_compat_rb.html +1 -1
  87. data/doc/files/lib/gettext/rails_rb.html +1 -1
  88. data/doc/files/lib/gettext/rgettext_rb.html +1 -1
  89. data/doc/files/lib/gettext/rmsgfmt_rb.html +1 -1
  90. data/doc/files/lib/gettext/rmsgmerge_rb.html +1 -1
  91. data/doc/files/lib/gettext/string_rb.html +1 -1
  92. data/doc/files/lib/gettext/textdomain_rb.html +1 -1
  93. data/doc/files/lib/gettext/textdomainmanager_rb.html +1 -1
  94. data/doc/files/lib/gettext/utils_rb.html +1 -1
  95. data/doc/files/lib/gettext/version_rb.html +1 -1
  96. data/doc/files/lib/gettext_rb.html +1 -1
  97. data/doc/files/lib/locale/base_rb.html +1 -1
  98. data/doc/files/lib/locale/cgi_rb.html +1 -1
  99. data/doc/files/lib/locale/jruby_rb.html +1 -1
  100. data/doc/files/lib/locale/object_rb.html +1 -1
  101. data/doc/files/lib/locale/posix_rb.html +1 -1
  102. data/doc/files/lib/locale/win32_rb.html +1 -1
  103. data/doc/files/lib/locale/win32_table_rb.html +1 -1
  104. data/doc/files/lib/locale_rb.html +1 -1
  105. data/doc/fr_class_index.html +2 -0
  106. data/doc/fr_method_index.html +83 -81
  107. data/lib/gettext.rb +46 -21
  108. data/lib/gettext/active_record.rb +5 -5
  109. data/lib/gettext/mo.rb +4 -4
  110. data/lib/gettext/rails.rb +15 -3
  111. data/lib/gettext/textdomain.rb +44 -41
  112. data/lib/gettext/utils.rb +8 -1
  113. data/lib/gettext/version.rb +2 -2
  114. data/lib/locale/jruby.rb +3 -3
  115. data/lib/locale/win32.rb +2 -1
  116. data/lib/locale/win32_table.rb +2 -2
  117. data/po/bs/rails.po +39 -37
  118. data/po/bs/rgettext.po +63 -53
  119. data/po/ca/rails.po +39 -36
  120. data/po/ca/rgettext.po +64 -54
  121. data/po/cs/rails.po +39 -35
  122. data/po/cs/rgettext.po +63 -53
  123. data/po/de/rails.po +38 -36
  124. data/po/de/rgettext.po +67 -57
  125. data/po/el/rails.po +42 -39
  126. data/po/el/rgettext.po +63 -53
  127. data/po/eo/rails.po +39 -37
  128. data/po/eo/rgettext.po +63 -53
  129. data/po/es/rails.po +38 -35
  130. data/po/es/rgettext.po +64 -54
  131. data/po/et/rails.po +38 -36
  132. data/po/fr/rails.po +39 -37
  133. data/po/fr/rgettext.po +65 -56
  134. data/po/hr/rails.po +40 -37
  135. data/po/hr/rgettext.po +63 -53
  136. data/po/hu/rails.po +38 -35
  137. data/po/hu/rgettext.po +64 -54
  138. data/po/it/rails.po +34 -32
  139. data/po/it/rgettext.po +62 -54
  140. data/po/ja/rails.po +42 -40
  141. data/po/ja/rgettext.po +64 -54
  142. data/po/ko/rails.po +38 -36
  143. data/po/ko/rgettext.po +64 -54
  144. data/po/nb/rails.po +37 -32
  145. data/po/nb/rgettext.po +62 -52
  146. data/po/nl/rails.po +39 -38
  147. data/po/nl/rgettext.po +64 -54
  148. data/po/pt_BR/rails.po +38 -36
  149. data/po/pt_BR/rgettext.po +63 -53
  150. data/po/rails.pot +41 -39
  151. data/po/rgettext.pot +55 -47
  152. data/po/ru/rails.po +41 -37
  153. data/po/ru/rgettext.po +63 -53
  154. data/po/sr/rails.po +149 -0
  155. data/po/sr/rgettext.po +135 -0
  156. data/po/sv/rgettext.po +60 -52
  157. data/po/ua/rails.po +39 -37
  158. data/po/ua/rgettext.po +67 -57
  159. data/po/vi/rails.po +39 -37
  160. data/po/vi/rgettext.po +61 -51
  161. data/po/zh/rails.po +37 -36
  162. data/po/zh/rgettext.po +66 -56
  163. data/po/zh_TW/rails.po +37 -36
  164. data/po/zh_TW/rgettext.po +64 -54
  165. data/samples/cgi/locale/sr/LC_MESSAGES/helloerb1.mo +0 -0
  166. data/samples/cgi/locale/sr/LC_MESSAGES/helloerb2.mo +0 -0
  167. data/samples/cgi/locale/sr/LC_MESSAGES/hellolib.mo +0 -0
  168. data/samples/cgi/locale/sr/LC_MESSAGES/main.mo +0 -0
  169. data/samples/cgi/po/sr/helloerb1.po +60 -0
  170. data/samples/cgi/po/sr/helloerb2.po +52 -0
  171. data/samples/cgi/po/sr/hellolib.po +24 -0
  172. data/samples/cgi/po/sr/main.po +80 -0
  173. data/samples/locale/hu/LC_MESSAGES/hellogtk.mo +0 -0
  174. data/samples/locale/it/LC_MESSAGES/hello2.mo +0 -0
  175. data/samples/locale/sr/LC_MESSAGES/hello.mo +0 -0
  176. data/samples/locale/sr/LC_MESSAGES/hello2.mo +0 -0
  177. data/samples/locale/sr/LC_MESSAGES/hello_noop.mo +0 -0
  178. data/samples/locale/sr/LC_MESSAGES/hello_plural.mo +0 -0
  179. data/samples/locale/sr/LC_MESSAGES/helloglade2.mo +0 -0
  180. data/samples/locale/sr/LC_MESSAGES/hellogtk.mo +0 -0
  181. data/samples/locale/sr/LC_MESSAGES/hellotk.mo +0 -0
  182. data/samples/locale/zh/LC_MESSAGES/helloglade2.mo +0 -0
  183. data/samples/locale/zh/LC_MESSAGES/hellotk.mo +0 -0
  184. data/samples/po/hu/hellogtk.po +3 -3
  185. data/samples/po/it/hello2.po +1 -1
  186. data/samples/po/sr/hello.po +22 -0
  187. data/samples/po/sr/hello2.po +30 -0
  188. data/samples/po/sr/hello_noop.po +26 -0
  189. data/samples/po/sr/hello_plural.po +26 -0
  190. data/samples/po/sr/helloglade2.po +32 -0
  191. data/samples/po/sr/hellogtk.po +22 -0
  192. data/samples/po/sr/hellotk.po +24 -0
  193. data/samples/po/zh/helloglade2.po +1 -1
  194. data/samples/po/zh/hellotk.po +1 -1
  195. data/samples/rails/app/views/articles/edit.html.erb +3 -0
  196. data/samples/rails/app/views/articles/new.html.erb +3 -0
  197. data/samples/rails/config/database.yml +9 -4
  198. data/samples/rails/locale/sr/LC_MESSAGES/blog.mo +0 -0
  199. data/samples/rails/po/sr/blog.po +106 -0
  200. data/samples/rails/vendor/plugins/gettext/locale/sr/LC_MESSAGES/gettext_plugin.mo +0 -0
  201. data/samples/rails/vendor/plugins/gettext/po/sr/gettext_plugin.po +28 -0
  202. data/test/locale/fr/LC_MESSAGES/test2.mo +0 -0
  203. data/test/locale/ja/LC_MESSAGES/test2.mo +0 -0
  204. data/test/po/fr/test2.po +1 -1
  205. data/test/po/ja/test2.po +1 -1
  206. data/test/rails/app/views/articles/show.html.erb +1 -0
  207. data/test/rails/config/environment.rb +1 -1
  208. data/test/rails/test/functional/articles_controller_test.rb +2 -2
  209. data/test/rails/test/functional/mailer_controller_test.rb +3 -1
  210. data/test/rails/test/functional/users_controller_test.rb +1 -1
  211. data/test/rails/test/result/en/custom_error_message_with_plural.html +4 -4
  212. data/test/rails/test/result/en/show.html +1 -0
  213. data/test/rails/test/result/fr/custom_error_message_with_plural.html +4 -4
  214. data/test/rails/test/result/ja/custom_error_message_with_plural.html +4 -4
  215. data/test/rails/test/result/ja/show.html +2 -1
  216. data/test/test.sh +1 -0
  217. data/test/test_active_record.rb +4 -4
  218. data/test/test_gettext.rb +10 -10
  219. data/test/test_gettext_toplevel.rb +44 -0
  220. data/test/test_locale.rb +1 -19
  221. metadata +93 -42
  222. data/test/rails/locale/ja/LC_MESSAGES/rails_test.mo +0 -0
  223. data/test/rails/log/development.log +0 -136
  224. 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="#M000108">charset=</a>&nbsp;&nbsp;
92
- <a href="#M000114">clear</a>&nbsp;&nbsp;
93
- <a href="#M000107">country=</a>&nbsp;&nbsp;
94
- <a href="#M000106">language=</a>&nbsp;&nbsp;
95
- <a href="#M000111">modifier=</a>&nbsp;&nbsp;
96
- <a href="#M000113">new</a>&nbsp;&nbsp;
97
- <a href="#M000112">parse</a>&nbsp;&nbsp;
98
- <a href="#M000109">script=</a>&nbsp;&nbsp;
99
- <a href="#M000119">to_a</a>&nbsp;&nbsp;
100
- <a href="#M000118">to_general</a>&nbsp;&nbsp;
101
- <a href="#M000116">to_iso3066</a>&nbsp;&nbsp;
102
- <a href="#M000115">to_posix</a>&nbsp;&nbsp;
103
- <a href="#M000120">to_s</a>&nbsp;&nbsp;
104
- <a href="#M000121">to_str</a>&nbsp;&nbsp;
105
- <a href="#M000117">to_win</a>&nbsp;&nbsp;
106
- <a href="#M000110">variant=</a>&nbsp;&nbsp;
91
+ <a href="#M000109">charset=</a>&nbsp;&nbsp;
92
+ <a href="#M000115">clear</a>&nbsp;&nbsp;
93
+ <a href="#M000108">country=</a>&nbsp;&nbsp;
94
+ <a href="#M000107">language=</a>&nbsp;&nbsp;
95
+ <a href="#M000112">modifier=</a>&nbsp;&nbsp;
96
+ <a href="#M000114">new</a>&nbsp;&nbsp;
97
+ <a href="#M000113">parse</a>&nbsp;&nbsp;
98
+ <a href="#M000110">script=</a>&nbsp;&nbsp;
99
+ <a href="#M000120">to_a</a>&nbsp;&nbsp;
100
+ <a href="#M000119">to_general</a>&nbsp;&nbsp;
101
+ <a href="#M000117">to_iso3066</a>&nbsp;&nbsp;
102
+ <a href="#M000116">to_posix</a>&nbsp;&nbsp;
103
+ <a href="#M000121">to_s</a>&nbsp;&nbsp;
104
+ <a href="#M000122">to_str</a>&nbsp;&nbsp;
105
+ <a href="#M000118">to_win</a>&nbsp;&nbsp;
106
+ <a href="#M000111">variant=</a>&nbsp;&nbsp;
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-M000113" class="method-detail">
182
- <a name="M000113"></a>
181
+ <div id="method-M000114" class="method-detail">
182
+ <a name="M000114"></a>
183
183
 
184
184
  <div class="method-heading">
185
- <a href="#M000113" class="method-signature">
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
  -&gt; language = &quot;en&quot;, country = nil, charset = nil.
227
227
  </pre>
228
228
  <p><a class="source-toggle" href="#"
229
- onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
230
- <div class="method-source-code" id="M000113-source">
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-M000112" class="method-detail">
248
- <a name="M000112"></a>
247
+ <div id="method-M000113" class="method-detail">
248
+ <a name="M000113"></a>
249
249
 
250
250
  <div class="method-heading">
251
- <a href="#M000112" class="method-signature">
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&gt;.&lt;charset&gt;@&lt;modifier&gt;
352
352
  &quot;de_DE@collation=phonebook,currency=DDM&quot; =&gt; [&quot;de&quot;, &quot;DE&quot;, nil, nil, &quot;collation=phonebook,currency=DDM&quot;]
353
353
  </pre>
354
354
  <p><a class="source-toggle" href="#"
355
- onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
356
- <div class="method-source-code" id="M000112-source">
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&gt;.&lt;charset&gt;@&lt;modifier&gt;
389
389
 
390
390
  <h3 class="section-bar">Public Instance methods</h3>
391
391
 
392
- <div id="method-M000108" class="method-detail">
393
- <a name="M000108"></a>
392
+ <div id="method-M000109" class="method-detail">
393
+ <a name="M000109"></a>
394
394
 
395
395
  <div class="method-heading">
396
- <a href="#M000108" class="method-signature">
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&gt;.&lt;charset&gt;@&lt;modifier&gt;
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('M000108-source');return false;">[Source]</a></p>
407
- <div class="method-source-code" id="M000108-source">
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-M000114" class="method-detail">
420
- <a name="M000114"></a>
419
+ <div id="method-M000115" class="method-detail">
420
+ <a name="M000115"></a>
421
421
 
422
422
  <div class="method-heading">
423
- <a href="#M000114" class="method-signature">
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('M000114-source');return false;">[Source]</a></p>
431
- <div class="method-source-code" id="M000114-source">
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-M000107" class="method-detail">
447
- <a name="M000107"></a>
446
+ <div id="method-M000108" class="method-detail">
447
+ <a name="M000108"></a>
448
448
 
449
449
  <div class="method-heading">
450
- <a href="#M000107" class="method-signature">
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, &#8230;
458
458
  </p>
459
459
  <p><a class="source-toggle" href="#"
460
- onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
461
- <div class="method-source-code" id="M000107-source">
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, &#8230;
470
470
  </div>
471
471
  </div>
472
472
 
473
- <div id="method-M000106" class="method-detail">
474
- <a name="M000106"></a>
473
+ <div id="method-M000107" class="method-detail">
474
+ <a name="M000107"></a>
475
475
 
476
476
  <div class="method-heading">
477
- <a href="#M000106" class="method-signature">
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, &#8230;
484
484
  Set the language. e.g.) ja, en, fr, &#8230;
485
485
  </p>
486
486
  <p><a class="source-toggle" href="#"
487
- onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
488
- <div class="method-source-code" id="M000106-source">
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, &#8230;
497
497
  </div>
498
498
  </div>
499
499
 
500
- <div id="method-M000111" class="method-detail">
501
- <a name="M000111"></a>
500
+ <div id="method-M000112" class="method-detail">
501
+ <a name="M000112"></a>
502
502
 
503
503
  <div class="method-heading">
504
- <a href="#M000111" class="method-signature">
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, &#8230;
511
511
  Set the modifier. e.g.) curreny=DDM
512
512
  </p>
513
513
  <p><a class="source-toggle" href="#"
514
- onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
515
- <div class="method-source-code" id="M000111-source">
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-M000109" class="method-detail">
528
- <a name="M000109"></a>
527
+ <div id="method-M000110" class="method-detail">
528
+ <a name="M000110"></a>
529
529
 
530
530
  <div class="method-heading">
531
- <a href="#M000109" class="method-signature">
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('M000109-source');return false;">[Source]</a></p>
542
- <div class="method-source-code" id="M000109-source">
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-M000119" class="method-detail">
555
- <a name="M000119"></a>
554
+ <div id="method-M000120" class="method-detail">
555
+ <a name="M000120"></a>
556
556
 
557
557
  <div class="method-heading">
558
- <a href="#M000119" class="method-signature">
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('M000119-source');return false;">[Source]</a></p>
594
- <div class="method-source-code" id="M000119-source">
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-M000118" class="method-detail">
606
- <a name="M000118"></a>
605
+ <div id="method-M000119" class="method-detail">
606
+ <a name="M000119"></a>
607
607
 
608
608
  <div class="method-heading">
609
- <a href="#M000118" class="method-signature">
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 &#8216;ruby&#8217; general format. (e.g.)
617
617
  &quot;az_AZ_Latn&quot;
618
618
  </p>
619
619
  <p><a class="source-toggle" href="#"
620
- onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
621
- <div class="method-source-code" id="M000118-source">
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 &#8216;ruby&#8217; general format. (e.g.)
634
634
  </div>
635
635
  </div>
636
636
 
637
- <div id="method-M000116" class="method-detail">
638
- <a name="M000116"></a>
637
+ <div id="method-M000117" class="method-detail">
638
+ <a name="M000117"></a>
639
639
 
640
640
  <div class="method-heading">
641
- <a href="#M000116" class="method-signature">
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 &#8216;ruby&#8217; general format. (e.g.)
648
648
  Returns the locale as ISO3066 format. (e.g.) &quot;ja-JP&quot;
649
649
  </p>
650
650
  <p><a class="source-toggle" href="#"
651
- onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
652
- <div class="method-source-code" id="M000116-source">
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.) &quot;ja-JP&quot;
664
664
  </div>
665
665
  </div>
666
666
 
667
- <div id="method-M000115" class="method-detail">
668
- <a name="M000115"></a>
667
+ <div id="method-M000116" class="method-detail">
668
+ <a name="M000116"></a>
669
669
 
670
670
  <div class="method-heading">
671
- <a href="#M000115" class="method-signature">
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
  &quot;ja_JP&quot;
680
680
  </p>
681
681
  <p><a class="source-toggle" href="#"
682
- onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
683
- <div class="method-source-code" id="M000115-source">
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-M000120" class="method-detail">
699
- <a name="M000120"></a>
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#M000115">to_posix</a>
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-M000121" class="method-detail">
713
- <a name="M000121"></a>
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#M000115">to_posix</a>
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-M000117" class="method-detail">
727
- <a name="M000117"></a>
726
+ <div id="method-M000118" class="method-detail">
727
+ <a name="M000118"></a>
728
728
 
729
729
  <div class="method-heading">
730
- <a href="#M000117" class="method-signature">
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.) &quot;az-AZ-Latn&quot;.
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('M000117-source');return false;">[Source]</a></p>
744
- <div class="method-source-code" id="M000117-source">
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-M000110" class="method-detail">
761
- <a name="M000110"></a>
760
+ <div id="method-M000111" class="method-detail">
761
+ <a name="M000111"></a>
762
762
 
763
763
  <div class="method-heading">
764
- <a href="#M000110" class="method-signature">
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('M000110-source');return false;">[Source]</a></p>
775
- <div class="method-source-code" id="M000110-source">
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&#8216;t use this directly.
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000099">charset</a>&nbsp;&nbsp;
92
- <a href="#M000096">get_charset</a>&nbsp;&nbsp;
93
- <a href="#M000097">locale_from_env</a>&nbsp;&nbsp;
94
- <a href="#M000098">system</a>&nbsp;&nbsp;
91
+ <a href="#M000100">charset</a>&nbsp;&nbsp;
92
+ <a href="#M000097">get_charset</a>&nbsp;&nbsp;
93
+ <a href="#M000098">locale_from_env</a>&nbsp;&nbsp;
94
+ <a href="#M000099">system</a>&nbsp;&nbsp;
95
95
  </div>
96
96
  </div>
97
97
 
@@ -113,30 +113,30 @@ Application shouldn&#8216;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-M000099" class="method-detail">
117
- <a name="M000099"></a>
116
+ <div id="method-M000100" class="method-detail">
117
+ <a name="M000100"></a>
118
118
 
119
119
  <div class="method-heading">
120
- <a href="#M000099" class="method-signature">
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#M000099">charset</a> of the locale.
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#M000099">charset</a> of the locale
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('M000099-source');return false;">[Source]</a></p>
139
- <div class="method-source-code" id="M000099-source">
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-M000096" class="method-detail">
152
- <a name="M000096"></a>
151
+ <div id="method-M000097" class="method-detail">
152
+ <a name="M000097"></a>
153
153
 
154
154
  <div class="method-heading">
155
- <a href="#M000096" class="method-signature">
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#M000099">charset</a> of the locale.
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#M000099">charset</a> of the locale
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('M000096-source');return false;">[Source]</a></p>
174
- <div class="method-source-code" id="M000096-source">
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-M000097" class="method-detail">
186
- <a name="M000097"></a>
185
+ <div id="method-M000098" class="method-detail">
186
+ <a name="M000098"></a>
187
187
 
188
188
  <div class="method-heading">
189
- <a href="#M000097" class="method-signature">
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#M000098">system</a> locale using
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#M000098">system</a> locale (<a
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('M000097-source');return false;">[Source]</a></p>
207
- <div class="method-source-code" id="M000097-source">
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-M000098" class="method-detail">
228
- <a name="M000098"></a>
227
+ <div id="method-M000099" class="method-detail">
228
+ <a name="M000099"></a>
229
229
 
230
230
  <div class="method-heading">
231
- <a href="#M000098" class="method-signature">
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#M000098">system</a> locale.
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#M000098">system</a> locale (<a
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('M000098-source');return false;">[Source]</a></p>
248
- <div class="method-source-code" id="M000098-source">
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>