gettext 1.92.0 → 1.93.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (314) hide show
  1. data/ChangeLog +52 -0
  2. data/NEWS +25 -0
  3. data/README +21 -18
  4. data/data/locale/bg/LC_MESSAGES/rails.mo +0 -0
  5. data/data/locale/bg/LC_MESSAGES/rgettext.mo +0 -0
  6. data/data/locale/bs/LC_MESSAGES/rails.mo +0 -0
  7. data/data/locale/bs/LC_MESSAGES/rgettext.mo +0 -0
  8. data/data/locale/ca/LC_MESSAGES/rails.mo +0 -0
  9. data/data/locale/ca/LC_MESSAGES/rgettext.mo +0 -0
  10. data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
  11. data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
  12. data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
  13. data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
  14. data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
  15. data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
  16. data/data/locale/eo/LC_MESSAGES/rails.mo +0 -0
  17. data/data/locale/eo/LC_MESSAGES/rgettext.mo +0 -0
  18. data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
  19. data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
  20. data/data/locale/et/LC_MESSAGES/rails.mo +0 -0
  21. data/data/locale/et/LC_MESSAGES/rgettext.mo +0 -0
  22. data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
  23. data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
  24. data/data/locale/hr/LC_MESSAGES/rails.mo +0 -0
  25. data/data/locale/hr/LC_MESSAGES/rgettext.mo +0 -0
  26. data/data/locale/hu/LC_MESSAGES/rails.mo +0 -0
  27. data/data/locale/hu/LC_MESSAGES/rgettext.mo +0 -0
  28. data/data/locale/it/LC_MESSAGES/rails.mo +0 -0
  29. data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
  30. data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
  31. data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
  32. data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
  33. data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
  34. data/data/locale/lv/LC_MESSAGES/rails.mo +0 -0
  35. data/data/locale/lv/LC_MESSAGES/rgettext.mo +0 -0
  36. data/data/locale/nb/LC_MESSAGES/rails.mo +0 -0
  37. data/data/locale/nb/LC_MESSAGES/rgettext.mo +0 -0
  38. data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
  39. data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
  40. data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
  41. data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
  42. data/data/locale/ru/LC_MESSAGES/rails.mo +0 -0
  43. data/data/locale/ru/LC_MESSAGES/rgettext.mo +0 -0
  44. data/data/locale/sr/LC_MESSAGES/rails.mo +0 -0
  45. data/data/locale/sr/LC_MESSAGES/rgettext.mo +0 -0
  46. data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
  47. data/data/locale/ua/LC_MESSAGES/rails.mo +0 -0
  48. data/data/locale/ua/LC_MESSAGES/rgettext.mo +0 -0
  49. data/data/locale/vi/LC_MESSAGES/rails.mo +0 -0
  50. data/data/locale/vi/LC_MESSAGES/rgettext.mo +0 -0
  51. data/data/locale/zh/LC_MESSAGES/rails.mo +0 -0
  52. data/data/locale/zh/LC_MESSAGES/rgettext.mo +0 -0
  53. data/data/locale/zh_TW/LC_MESSAGES/rails.mo +0 -0
  54. data/data/locale/zh_TW/LC_MESSAGES/rgettext.mo +0 -0
  55. data/doc/classes/ActionView/Helpers/FormBuilder.html +11 -11
  56. data/doc/classes/ActionView/TemplateFinder.html +16 -16
  57. data/doc/classes/GetText.html +556 -521
  58. data/doc/classes/GetText/ActiveRecordParser.html +13 -13
  59. data/doc/classes/GetText/ErbContainer.html +12 -12
  60. data/doc/classes/GetText/ErbParser.html +6 -6
  61. data/doc/classes/GetText/NoboundTextDomainError.html +1 -1
  62. data/doc/classes/GetText/PoParser.html +6 -6
  63. data/doc/classes/GetText/Rails.html +20 -20
  64. data/doc/classes/GetText/RubyParser.html +5 -0
  65. data/doc/classes/GetText/TextDomain.html +53 -53
  66. data/doc/classes/GetText/TextDomainManager.html +54 -54
  67. data/doc/classes/Locale/Object.html +177 -173
  68. data/doc/classes/Locale/SystemBase.html +32 -32
  69. data/doc/classes/Locale/SystemCGI.html +31 -31
  70. data/doc/classes/Locale/SystemPosix.html +50 -0
  71. data/doc/classes/Locale/SystemWin32.html +6 -6
  72. data/doc/created.rid +1 -1
  73. data/doc/files/ChangeLog.html +69 -1
  74. data/doc/files/README.html +27 -19
  75. data/doc/files/lib/gettext/parser/ruby_rb.html +1 -1
  76. data/doc/files/lib/gettext/rails_rb.html +1 -1
  77. data/doc/files/lib/gettext/rgettext_rb.html +1 -1
  78. data/doc/files/lib/gettext/utils_rb.html +1 -1
  79. data/doc/files/lib/gettext/version_rb.html +1 -1
  80. data/doc/files/lib/gettext_rb.html +1 -1
  81. data/doc/files/lib/locale/object_rb.html +1 -1
  82. data/doc/files/lib/locale/posix_rb.html +1 -1
  83. data/doc/fr_method_index.html +94 -92
  84. data/lib/gettext.rb +27 -6
  85. data/lib/gettext/parser/ruby.rb +9 -2
  86. data/lib/gettext/rails.rb +11 -6
  87. data/lib/gettext/rgettext.rb +9 -8
  88. data/lib/gettext/utils.rb +18 -4
  89. data/lib/gettext/version.rb +1 -1
  90. data/lib/locale/object.rb +10 -6
  91. data/lib/locale/posix.rb +15 -1
  92. data/po/bg/rails.po +169 -0
  93. data/po/bg/rgettext.po +146 -0
  94. data/po/bs/rails.po +34 -34
  95. data/po/bs/rgettext.po +23 -17
  96. data/po/ca/rails.po +34 -34
  97. data/po/ca/rgettext.po +29 -22
  98. data/po/cs/rails.po +34 -34
  99. data/po/cs/rgettext.po +23 -17
  100. data/po/de/rails.po +34 -34
  101. data/po/de/rgettext.po +30 -22
  102. data/po/el/rails.po +38 -38
  103. data/po/el/rgettext.po +29 -22
  104. data/po/eo/rails.po +34 -34
  105. data/po/eo/rgettext.po +30 -23
  106. data/po/es/rails.po +34 -34
  107. data/po/es/rgettext.po +27 -21
  108. data/po/et/rails.po +42 -50
  109. data/po/et/rgettext.po +143 -0
  110. data/po/fr/rails.po +45 -52
  111. data/po/fr/rgettext.po +39 -32
  112. data/po/hr/rails.po +34 -34
  113. data/po/hr/rgettext.po +23 -17
  114. data/po/hu/rails.po +34 -34
  115. data/po/hu/rgettext.po +29 -21
  116. data/po/it/rails.po +34 -34
  117. data/po/it/rgettext.po +23 -17
  118. data/po/ja/rails.po +35 -35
  119. data/po/ja/rgettext.po +30 -22
  120. data/po/ko/rails.po +34 -34
  121. data/po/ko/rgettext.po +23 -17
  122. data/po/lv/rails.po +57 -37
  123. data/po/lv/rgettext.po +37 -28
  124. data/po/nb/rails.po +37 -38
  125. data/po/nb/rgettext.po +29 -22
  126. data/po/nl/rails.po +34 -34
  127. data/po/nl/rgettext.po +23 -17
  128. data/po/pt_BR/rails.po +34 -34
  129. data/po/pt_BR/rgettext.po +30 -22
  130. data/po/rails.pot +34 -34
  131. data/po/rgettext.pot +23 -17
  132. data/po/ru/rails.po +37 -37
  133. data/po/ru/rgettext.po +28 -22
  134. data/po/sr/rails.po +34 -34
  135. data/po/sr/rgettext.po +23 -17
  136. data/po/sv/rgettext.po +23 -17
  137. data/po/ua/rails.po +41 -39
  138. data/po/ua/rgettext.po +26 -19
  139. data/po/vi/rails.po +34 -35
  140. data/po/vi/rgettext.po +34 -27
  141. data/po/zh/rails.po +34 -34
  142. data/po/zh/rgettext.po +28 -22
  143. data/po/zh_TW/rails.po +34 -34
  144. data/po/zh_TW/rgettext.po +27 -21
  145. data/samples/cgi/locale/bg/LC_MESSAGES/helloerb1.mo +0 -0
  146. data/samples/cgi/locale/bg/LC_MESSAGES/helloerb2.mo +0 -0
  147. data/samples/cgi/locale/bg/LC_MESSAGES/hellolib.mo +0 -0
  148. data/samples/cgi/locale/bg/LC_MESSAGES/main.mo +0 -0
  149. data/samples/cgi/locale/lv/LC_MESSAGES/helloerb1.mo +0 -0
  150. data/samples/cgi/locale/lv/LC_MESSAGES/helloerb2.mo +0 -0
  151. data/samples/cgi/locale/lv/LC_MESSAGES/hellolib.mo +0 -0
  152. data/samples/cgi/locale/lv/LC_MESSAGES/main.mo +0 -0
  153. data/samples/cgi/locale/nb/LC_MESSAGES/helloerb1.mo +0 -0
  154. data/samples/cgi/locale/nb/LC_MESSAGES/helloerb2.mo +0 -0
  155. data/samples/cgi/locale/nb/LC_MESSAGES/hellolib.mo +0 -0
  156. data/samples/cgi/locale/nb/LC_MESSAGES/main.mo +0 -0
  157. data/samples/cgi/locale/sr/LC_MESSAGES/helloerb1.mo +0 -0
  158. data/samples/cgi/locale/sr/LC_MESSAGES/helloerb2.mo +0 -0
  159. data/samples/cgi/locale/sr/LC_MESSAGES/hellolib.mo +0 -0
  160. data/samples/cgi/locale/sr/LC_MESSAGES/main.mo +0 -0
  161. data/samples/cgi/locale/ua/LC_MESSAGES/helloerb1.mo +0 -0
  162. data/samples/cgi/locale/ua/LC_MESSAGES/main.mo +0 -0
  163. data/samples/cgi/po/bg/helloerb1.po +59 -0
  164. data/samples/cgi/po/bg/helloerb2.po +51 -0
  165. data/samples/cgi/po/bg/hellolib.po +23 -0
  166. data/samples/cgi/po/bg/main.po +83 -0
  167. data/samples/locale/bg/LC_MESSAGES/hello.mo +0 -0
  168. data/samples/locale/bg/LC_MESSAGES/hello2.mo +0 -0
  169. data/samples/locale/bg/LC_MESSAGES/hello_noop.mo +0 -0
  170. data/samples/locale/bg/LC_MESSAGES/hello_plural.mo +0 -0
  171. data/samples/locale/bg/LC_MESSAGES/helloglade2.mo +0 -0
  172. data/samples/locale/bg/LC_MESSAGES/hellogtk.mo +0 -0
  173. data/samples/locale/bg/LC_MESSAGES/hellotk.mo +0 -0
  174. data/samples/locale/lv/LC_MESSAGES/hello.mo +0 -0
  175. data/samples/locale/lv/LC_MESSAGES/hello2.mo +0 -0
  176. data/samples/locale/lv/LC_MESSAGES/hello_noop.mo +0 -0
  177. data/samples/locale/lv/LC_MESSAGES/hello_plural.mo +0 -0
  178. data/samples/locale/lv/LC_MESSAGES/helloglade2.mo +0 -0
  179. data/samples/locale/lv/LC_MESSAGES/hellogtk.mo +0 -0
  180. data/samples/locale/lv/LC_MESSAGES/hellotk.mo +0 -0
  181. data/samples/locale/nb/LC_MESSAGES/hello.mo +0 -0
  182. data/samples/locale/nb/LC_MESSAGES/hello2.mo +0 -0
  183. data/samples/locale/nb/LC_MESSAGES/hello_noop.mo +0 -0
  184. data/samples/locale/nb/LC_MESSAGES/hello_plural.mo +0 -0
  185. data/samples/locale/nb/LC_MESSAGES/helloglade2.mo +0 -0
  186. data/samples/locale/nb/LC_MESSAGES/hellogtk.mo +0 -0
  187. data/samples/locale/nb/LC_MESSAGES/hellotk.mo +0 -0
  188. data/samples/locale/sr/LC_MESSAGES/hello.mo +0 -0
  189. data/samples/locale/sr/LC_MESSAGES/hello2.mo +0 -0
  190. data/samples/locale/sr/LC_MESSAGES/hello_noop.mo +0 -0
  191. data/samples/locale/sr/LC_MESSAGES/hello_plural.mo +0 -0
  192. data/samples/locale/sr/LC_MESSAGES/helloglade2.mo +0 -0
  193. data/samples/locale/sr/LC_MESSAGES/hellogtk.mo +0 -0
  194. data/samples/locale/sr/LC_MESSAGES/hellotk.mo +0 -0
  195. data/samples/locale/ua/LC_MESSAGES/hello2.mo +0 -0
  196. data/samples/locale/ua/LC_MESSAGES/hello_plural.mo +0 -0
  197. data/samples/po/bg/hello.po +24 -0
  198. data/samples/po/bg/hello2.po +31 -0
  199. data/samples/po/bg/hello_noop.po +27 -0
  200. data/samples/po/bg/hello_plural.po +25 -0
  201. data/samples/po/bg/helloglade2.po +31 -0
  202. data/samples/po/bg/hellogtk.po +23 -0
  203. data/samples/po/bg/hellotk.po +23 -0
  204. data/samples/rails/db/schema.rb +2 -4
  205. data/samples/rails/locale/bg/LC_MESSAGES/blog.mo +0 -0
  206. data/samples/rails/locale/bs/LC_MESSAGES/blog.mo +0 -0
  207. data/samples/rails/locale/ca/LC_MESSAGES/blog.mo +0 -0
  208. data/samples/rails/locale/cs/LC_MESSAGES/blog.mo +0 -0
  209. data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
  210. data/samples/rails/locale/el/LC_MESSAGES/blog.mo +0 -0
  211. data/samples/rails/locale/en/LC_MESSAGES/blog.mo +0 -0
  212. data/samples/rails/locale/eo/LC_MESSAGES/blog.mo +0 -0
  213. data/samples/rails/locale/es/LC_MESSAGES/blog.mo +0 -0
  214. data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
  215. data/samples/rails/locale/hr/LC_MESSAGES/blog.mo +0 -0
  216. data/samples/rails/locale/hu/LC_MESSAGES/blog.mo +0 -0
  217. data/samples/rails/locale/it/LC_MESSAGES/blog.mo +0 -0
  218. data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
  219. data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
  220. data/samples/rails/locale/lv/LC_MESSAGES/blog.mo +0 -0
  221. data/samples/rails/locale/nb/LC_MESSAGES/blog.mo +0 -0
  222. data/samples/rails/locale/nl/LC_MESSAGES/blog.mo +0 -0
  223. data/samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
  224. data/samples/rails/locale/ru/LC_MESSAGES/blog.mo +0 -0
  225. data/samples/rails/locale/sr/LC_MESSAGES/blog.mo +0 -0
  226. data/samples/rails/locale/ua/LC_MESSAGES/blog.mo +0 -0
  227. data/samples/rails/locale/vi/LC_MESSAGES/blog.mo +0 -0
  228. data/samples/rails/locale/zh/LC_MESSAGES/blog.mo +0 -0
  229. data/samples/rails/locale/zh_TW/LC_MESSAGES/blog.mo +0 -0
  230. data/samples/rails/po/bg/blog.po +101 -0
  231. data/samples/rails/po/blog.pot +36 -40
  232. data/samples/rails/po/bs/blog.po +41 -44
  233. data/samples/rails/po/ca/blog.po +44 -48
  234. data/samples/rails/po/cs/blog.po +44 -47
  235. data/samples/rails/po/de/blog.po +44 -47
  236. data/samples/rails/po/el/blog.po +44 -47
  237. data/samples/rails/po/en/blog.po +37 -41
  238. data/samples/rails/po/eo/blog.po +44 -48
  239. data/samples/rails/po/es/blog.po +44 -48
  240. data/samples/rails/po/fr/blog.po +44 -47
  241. data/samples/rails/po/hr/blog.po +41 -45
  242. data/samples/rails/po/hu/blog.po +41 -45
  243. data/samples/rails/po/it/blog.po +45 -48
  244. data/samples/rails/po/ja/blog.po +44 -48
  245. data/samples/rails/po/ko/blog.po +45 -48
  246. data/samples/rails/po/lv/blog.po +43 -50
  247. data/samples/rails/po/nb/blog.po +42 -47
  248. data/samples/rails/po/nl/blog.po +44 -47
  249. data/samples/rails/po/pt_BR/blog.po +45 -48
  250. data/samples/rails/po/ru/blog.po +43 -46
  251. data/samples/rails/po/sr/blog.po +42 -45
  252. data/samples/rails/po/ua/blog.po +43 -46
  253. data/samples/rails/po/vi/blog.po +40 -43
  254. data/samples/rails/po/zh/blog.po +44 -48
  255. data/samples/rails/po/zh_TW/blog.po +44 -48
  256. data/samples/rails/vendor/plugins/gettext/locale/bg/LC_MESSAGES/gettext_plugin.mo +0 -0
  257. data/samples/rails/vendor/plugins/gettext/locale/bs/LC_MESSAGES/gettext_plugin.mo +0 -0
  258. data/samples/rails/vendor/plugins/gettext/locale/ca/LC_MESSAGES/gettext_plugin.mo +0 -0
  259. data/samples/rails/vendor/plugins/gettext/locale/cs/LC_MESSAGES/gettext_plugin.mo +0 -0
  260. data/samples/rails/vendor/plugins/gettext/locale/de/LC_MESSAGES/gettext_plugin.mo +0 -0
  261. data/samples/rails/vendor/plugins/gettext/locale/el/LC_MESSAGES/gettext_plugin.mo +0 -0
  262. data/samples/rails/vendor/plugins/gettext/locale/eo/LC_MESSAGES/gettext_plugin.mo +0 -0
  263. data/samples/rails/vendor/plugins/gettext/locale/es/LC_MESSAGES/gettext_plugin.mo +0 -0
  264. data/samples/rails/vendor/plugins/gettext/locale/fr/LC_MESSAGES/gettext_plugin.mo +0 -0
  265. data/samples/rails/vendor/plugins/gettext/locale/hr/LC_MESSAGES/gettext_plugin.mo +0 -0
  266. data/samples/rails/vendor/plugins/gettext/locale/hu/LC_MESSAGES/gettext_plugin.mo +0 -0
  267. data/samples/rails/vendor/plugins/gettext/locale/it/LC_MESSAGES/gettext_plugin.mo +0 -0
  268. data/samples/rails/vendor/plugins/gettext/locale/ja/LC_MESSAGES/gettext_plugin.mo +0 -0
  269. data/samples/rails/vendor/plugins/gettext/locale/ko/LC_MESSAGES/gettext_plugin.mo +0 -0
  270. data/samples/rails/vendor/plugins/gettext/locale/lv/LC_MESSAGES/gettext_plugin.mo +0 -0
  271. data/samples/rails/vendor/plugins/gettext/locale/nb/LC_MESSAGES/gettext_plugin.mo +0 -0
  272. data/samples/rails/vendor/plugins/gettext/locale/nl/LC_MESSAGES/gettext_plugin.mo +0 -0
  273. data/samples/rails/vendor/plugins/gettext/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo +0 -0
  274. data/samples/rails/vendor/plugins/gettext/locale/ru/LC_MESSAGES/gettext_plugin.mo +0 -0
  275. data/samples/rails/vendor/plugins/gettext/locale/sr/LC_MESSAGES/gettext_plugin.mo +0 -0
  276. data/samples/rails/vendor/plugins/gettext/locale/ua/LC_MESSAGES/gettext_plugin.mo +0 -0
  277. data/samples/rails/vendor/plugins/gettext/locale/vi/LC_MESSAGES/gettext_plugin.mo +0 -0
  278. data/samples/rails/vendor/plugins/gettext/locale/zh/LC_MESSAGES/gettext_plugin.mo +0 -0
  279. data/samples/rails/vendor/plugins/gettext/locale/zh_TW/LC_MESSAGES/gettext_plugin.mo +0 -0
  280. data/samples/rails/vendor/plugins/gettext/po/bg/gettext_plugin.po +27 -0
  281. data/samples/rails/vendor/plugins/gettext/po/bs/gettext_plugin.po +6 -6
  282. data/samples/rails/vendor/plugins/gettext/po/ca/gettext_plugin.po +3 -3
  283. data/samples/rails/vendor/plugins/gettext/po/cs/gettext_plugin.po +3 -3
  284. data/samples/rails/vendor/plugins/gettext/po/de/gettext_plugin.po +3 -3
  285. data/samples/rails/vendor/plugins/gettext/po/el/gettext_plugin.po +3 -3
  286. data/samples/rails/vendor/plugins/gettext/po/eo/gettext_plugin.po +3 -3
  287. data/samples/rails/vendor/plugins/gettext/po/es/gettext_plugin.po +3 -3
  288. data/samples/rails/vendor/plugins/gettext/po/fr/gettext_plugin.po +3 -3
  289. data/samples/rails/vendor/plugins/gettext/po/gettext_plugin.pot +3 -3
  290. data/samples/rails/vendor/plugins/gettext/po/hr/gettext_plugin.po +6 -6
  291. data/samples/rails/vendor/plugins/gettext/po/hu/gettext_plugin.po +3 -3
  292. data/samples/rails/vendor/plugins/gettext/po/it/gettext_plugin.po +3 -3
  293. data/samples/rails/vendor/plugins/gettext/po/ja/gettext_plugin.po +3 -3
  294. data/samples/rails/vendor/plugins/gettext/po/ko/gettext_plugin.po +3 -3
  295. data/samples/rails/vendor/plugins/gettext/po/lv/gettext_plugin.po +5 -5
  296. data/samples/rails/vendor/plugins/gettext/po/nb/gettext_plugin.po +6 -7
  297. data/samples/rails/vendor/plugins/gettext/po/nl/gettext_plugin.po +3 -3
  298. data/samples/rails/vendor/plugins/gettext/po/pt_BR/gettext_plugin.po +3 -3
  299. data/samples/rails/vendor/plugins/gettext/po/ru/gettext_plugin.po +3 -3
  300. data/samples/rails/vendor/plugins/gettext/po/sr/gettext_plugin.po +4 -4
  301. data/samples/rails/vendor/plugins/gettext/po/ua/gettext_plugin.po +3 -3
  302. data/samples/rails/vendor/plugins/gettext/po/vi/gettext_plugin.po +3 -4
  303. data/samples/rails/vendor/plugins/gettext/po/zh/gettext_plugin.po +3 -3
  304. data/samples/rails/vendor/plugins/gettext/po/zh_TW/gettext_plugin.po +3 -4
  305. data/test/locale/ja/LC_MESSAGES/active_record.mo +0 -0
  306. data/test/locale/ja/LC_MESSAGES/test_npgettext.mo +0 -0
  307. data/test/locale/ja/LC_MESSAGES/test_pgettext.mo +0 -0
  308. data/test/po/active_record.pot +41 -28
  309. data/test/po/ja/active_record.po +41 -28
  310. data/test/po/ja/test_npgettext.po +46 -0
  311. data/test/test_gettext.rb +10 -0
  312. data/test/test_locale.rb +5 -0
  313. data/test/testlib/npgettext.rb +33 -0
  314. metadata +78 -2
data/ChangeLog CHANGED
@@ -1,3 +1,55 @@
1
+ 2008-09-14 Masao Mutoh <mutoh@highway.ne.jp>
2
+
3
+ * lib/gettext/rails.rb: Fixed expire_fragment with rails < 2.1.(Bug#21712).
4
+ * lib/gettext.rb: Remove p_ method when xx("double x") library is loaded
5
+ because of conflicting the method name.(Bug#21532) Reported by
6
+ Rémy-Christophe Schermesser, Donald Piret.
7
+ * lib/gettext/utils.rb: Remove UTF-8 BOM from po-file before executeing
8
+ msgmerge which doesn't accept BOM. Suggested by César Duque Calle.
9
+ * po/eo/rgettext.po: Fixed a typo.
10
+
11
+ 2008-09-13 Masao Mutoh <mutoh@highway.ne.jp>
12
+
13
+ * lib/gettext/utils.rb: Use msgmerge --help instead of --version to
14
+ check msgmerge is existed. Suggested by César Duque Calle.
15
+ * **/po/bg/*.po: Added by Sava Chankov.
16
+
17
+ 2008-08-24 Masao Mutoh <mutoh@highway.ne.jp>
18
+
19
+ * lib/gettext/rails.rb: render_file_with_gettext catch Exception and use
20
+ render_file_without_gettext if render_file_with_gettext is failed.
21
+ Suggested by Vladimir Dobriakov.
22
+
23
+ * lib/locale/posix.rb: Call "locale charmap" to get the system locale charset.
24
+ Reported by Tatsuki Sugiura.
25
+
26
+ 2008-08-20 Masao Mutoh <mutoh@highway.ne.jp>
27
+
28
+ * lib/locale/object.rb: Locale::Object.parse accept nil or "" as locale_name.
29
+ It replaces to "en". By Vladimir Dobriakov.
30
+ * test/test_locale.rb: Add the test above.
31
+
32
+ 2008-08-16 Masao Mutoh <mutoh@highway.ne.jp>
33
+
34
+ * po/ja/rails.po: Fixed a wrong translation.
35
+
36
+ 2008-08-10 Masao Mutoh <mutoh@highway.ne.jp>
37
+
38
+ * po/et/rails.po: Updated by Erkki Eilonen.
39
+ * po/et/rgettext.po: Added by Erkki Eilonen.
40
+
41
+ 2008-08-07 Masao Mutoh <mutoh@highway.ne.jp>
42
+
43
+ * README: Updated.
44
+ * po/fr/*.po: Updated by Vincent Isambart.
45
+ * test/test_gettext.rb, test/testlib/npgettext.rb, test/po/ja/test_npgettext.po:
46
+ Add test for np_(npgettext).
47
+
48
+ 2008-08-03 Masao Mutoh <mutoh@highway.ne.jp>
49
+
50
+ * lib/gettext/rgettext.rb, lib/gettext/parser/ruby.rb:
51
+ Add npgettext support.
52
+
1
53
  2008-07-31 Masao Mutoh <mutoh@highway.ne.jp>
2
54
 
3
55
  * lib/gettext/rails.rb: Works on rails-2.0.2 again.
data/NEWS CHANGED
@@ -1,3 +1,28 @@
1
+ = Ruby-GetText-Package-1.93.0 (2008-09-14)
2
+ * Bulgarian added.
3
+ * Estonian updated.
4
+ * French updated.
5
+ * Japanese updated.
6
+ * np_, npgettext support.
7
+ * Fixed bugs.
8
+ - detect the correct charset on POSIX OS.
9
+ - updatepo task works again on Windows OS(with broken GNU msgmerge).
10
+ - Remove BOM from po-files before GNU msgmerge is executed.
11
+ (GNU msgmerge doesn't support BOM)
12
+ - Work with xx(double x) library and the library which uses xx library
13
+ such as rcov.
14
+ - Fixed expire_fragment with rails < 2.1.
15
+
16
+ (NOTE) Rails-2.2 has not been supported yet.
17
+
18
+ Thanks to:
19
+ Translators:
20
+ Vincent Isambart, Erkki Eilonen, Sava Chankov.
21
+
22
+ Bug reports, suggestions and patches:
23
+ Vladimir Dobriakov, Tatsuki Sugiura, César Duque Calle,
24
+ Rémy-Christophe Schermesser, Donald Piret.
25
+
1
26
  = Ruby-GetText-Package-1.92.0 (2008-08-02)
2
27
  * Fixed a memory leak(again)
3
28
  * Fixed bugs.
data/README CHANGED
@@ -108,6 +108,7 @@ This program is licenced under the same licence as Ruby.
108
108
 
109
109
  == Translators
110
110
  * Bosnian(bs) - Sanjin Sehic <saserr at gmail.com>
111
+ * Bulgarian(bg) - Sava Chankov <sava.chankov at gmail.com>
111
112
  * Catalan(ca) - Ramon Salvadó <rsalvado at gnuine.com>
112
113
  * Chinese(Simplified)(zh_CN) - Yang Bob <bob.yang.dev at gmail.com> (current)
113
114
  Yingfeng <blogyingfeng at gmail.com>
@@ -118,7 +119,8 @@ This program is licenced under the same licence as Ruby.
118
119
  * Dutch(nl) - Menno Jonkers <ruby-gettext at jonkers.com>
119
120
  * Esperanto(eo) - Malte Milatz <malte at gmx-topmail.de>
120
121
  * Estonian(et) - Erkki Eilonen <erkki at itech.ee>
121
- * French(fr) - David Sulc <davidsulc at gmail.com> (current)
122
+ * French(fr) - Vincent Isambart <vincent.isambart at gmail.com> (current)
123
+ David Sulc <davidsulc at gmail.com>
122
124
  Laurent Sansonetti <laurent.sansonetti at gmail.com>
123
125
  * German(de) - Patrick Lenz <patrick at limited-overload.de> (current)
124
126
  Detlef Reichl <detlef.reichl at gmx.org>
@@ -144,31 +146,32 @@ This program is licenced under the same licence as Ruby.
144
146
 
145
147
  == Status of translations
146
148
  * Bosnian(bs) - 1.90.0 (old)
147
- * Catalan(ca) - 1.92.0
149
+ * Bulgarian(bg) - 1.93.0 (new)
150
+ * Catalan(ca) - 1.93.0
148
151
  * Croatian(hr) - 1.90.0 (old)
149
- * Chinese(zh_CN) - 1.92.0
150
- * Chinese(zh_TW) - 1.92.0
152
+ * Chinese(zh_CN) - 1.93.0
153
+ * Chinese(zh_TW) - 1.93.0
151
154
  * Czech(cs) - 1.9.0 (old)
152
155
  * Dutch(nl) - 1.90.0 (old)
153
156
  * English(default) - 1.90.0 (old)
154
- * Esperanto(eo) - 1.92.0
155
- * Estonian(et) - 1.9.0 (old, rails.po only)
156
- * French(fr) - 1.90.0 (old)
157
- * German(de) - 1.92.0
158
- * Greek(el) - 1.92.0
159
- * Hungarian(hu) - 1.92.0
157
+ * Esperanto(eo) - 1.93.0
158
+ * Estonian(et) - 1.93.0
159
+ * French(fr) - 1.93.0
160
+ * German(de) - 1.93.0
161
+ * Greek(el) - 1.93.0
162
+ * Hungarian(hu) - 1.93.0
160
163
  * Italian(it) - 1.6.0 (old)
161
- * Japanese(ja) - 1.92.0
164
+ * Japanese(ja) - 1.93.0
162
165
  * Korean(ko) - 1.9.0 (old)
163
- * Latvian(lv) - 1.92.0 (new)
164
- * Norwegian(nb) - 1.92.0
165
- * Portuguese(Brazil)(pt_BR) - 1.92.0
166
- * Russian(ru) - 1.92.0
166
+ * Latvian(lv) - 1.93.0 (new)
167
+ * Norwegian(nb) - 1.93.0
168
+ * Portuguese(Brazil)(pt_BR) - 1.93.0
169
+ * Russian(ru) - 1.93.0
167
170
  * Serbian(sr) - 1.91.0 (old)
168
- * Spanish(es) - 1.92.0
171
+ * Spanish(es) - 1.93.0
169
172
  * Swedish(sv) - 0.8.0 (too much old)
170
- * Ukrainian(ua) - 1.92.0
171
- * Vietnamese(vi) - 1.92.0
173
+ * Ukrainian(ua) - 1.93.0
174
+ * Vietnamese(vi) - 1.93.0
172
175
 
173
176
  == Maintainer
174
177
  Masao Mutoh <mutoh at highway.ne.jp>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000069">label_with_gettext</a>&nbsp;&nbsp;
89
+ <a href="#M000070">label_with_gettext</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -115,25 +115,25 @@
115
115
  <div id="methods">
116
116
  <h3 class="section-bar">Public Instance methods</h3>
117
117
 
118
- <div id="method-M000069" class="method-detail">
119
- <a name="M000069"></a>
118
+ <div id="method-M000070" class="method-detail">
119
+ <a name="M000070"></a>
120
120
 
121
121
  <div class="method-heading">
122
- <a href="#M000069" class="method-signature">
122
+ <a href="#M000070" class="method-signature">
123
123
  <span class="method-name">label_with_gettext</span><span class="method-args">(method, text = nil, options = {})</span>
124
124
  </a>
125
125
  </div>
126
126
 
127
127
  <div class="method-description">
128
128
  <p><a class="source-toggle" href="#"
129
- onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
130
- <div class="method-source-code" id="M000069-source">
129
+ onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
130
+ <div class="method-source-code" id="M000070-source">
131
131
  <pre>
132
- <span class="ruby-comment cmt"># File lib/gettext/rails.rb, line 308</span>
133
- 308: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">label_with_gettext</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">text</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span> = {})
134
- 309: <span class="ruby-identifier">text</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">s_</span>(<span class="ruby-node">&quot;#{@object.class}|#{method.to_s.humanize}&quot;</span>)
135
- 310: <span class="ruby-ivar">@template</span>.<span class="ruby-identifier">label</span>(<span class="ruby-ivar">@object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">text</span>, <span class="ruby-identifier">options</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">:object</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@object</span>))
136
- 311: <span class="ruby-keyword kw">end</span>
132
+ <span class="ruby-comment cmt"># File lib/gettext/rails.rb, line 313</span>
133
+ 313: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">label_with_gettext</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">text</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span> = {})
134
+ 314: <span class="ruby-identifier">text</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">s_</span>(<span class="ruby-node">&quot;#{@object.class}|#{method.to_s.humanize}&quot;</span>)
135
+ 315: <span class="ruby-ivar">@template</span>.<span class="ruby-identifier">label</span>(<span class="ruby-ivar">@object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">text</span>, <span class="ruby-identifier">options</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">:object</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@object</span>))
136
+ 316: <span class="ruby-keyword kw">end</span>
137
137
  </pre>
138
138
  </div>
139
139
  </div>
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000070">pick_template_with_gettext</a>&nbsp;&nbsp;
89
+ <a href="#M000071">pick_template_with_gettext</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -108,30 +108,30 @@
108
108
  <div id="methods">
109
109
  <h3 class="section-bar">Public Instance methods</h3>
110
110
 
111
- <div id="method-M000070" class="method-detail">
112
- <a name="M000070"></a>
111
+ <div id="method-M000071" class="method-detail">
112
+ <a name="M000071"></a>
113
113
 
114
114
  <div class="method-heading">
115
- <a href="#M000070" class="method-signature">
115
+ <a href="#M000071" class="method-signature">
116
116
  <span class="method-name">pick_template_with_gettext</span><span class="method-args">(template_path, extension)</span>
117
117
  </a>
118
118
  </div>
119
119
 
120
120
  <div class="method-description">
121
121
  <p><a class="source-toggle" href="#"
122
- onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
123
- <div class="method-source-code" id="M000070-source">
122
+ onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000071-source">
124
124
  <pre>
125
- <span class="ruby-comment cmt"># File lib/gettext/rails.rb, line 291</span>
126
- 291: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pick_template_with_gettext</span>(<span class="ruby-identifier">template_path</span>, <span class="ruby-identifier">extension</span>)
127
- 292: <span class="ruby-identifier">locale</span> = <span class="ruby-constant">GetText</span>.<span class="ruby-identifier">locale</span>
128
- 293: [<span class="ruby-identifier">locale</span>.<span class="ruby-identifier">to_general</span>, <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">language</span>, <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">default</span>.<span class="ruby-identifier">language</span>].<span class="ruby-identifier">uniq</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
129
- 294: <span class="ruby-identifier">file_name</span> = <span class="ruby-node">&quot;#{template_path}_#{v}.#{extension}&quot;</span>
130
- 295: <span class="ruby-identifier">base_path</span> = <span class="ruby-identifier">find_base_path_for</span>(<span class="ruby-identifier">file_name</span>)
131
- 296: <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;#{base_path}/#{file_name}&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">base_path</span>.<span class="ruby-identifier">blank?</span>
132
- 297: <span class="ruby-keyword kw">end</span>
133
- 298: <span class="ruby-identifier">pick_template_without_gettext</span>(<span class="ruby-identifier">template_path</span>, <span class="ruby-identifier">extension</span>)
134
- 299: <span class="ruby-keyword kw">end</span>
125
+ <span class="ruby-comment cmt"># File lib/gettext/rails.rb, line 296</span>
126
+ 296: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pick_template_with_gettext</span>(<span class="ruby-identifier">template_path</span>, <span class="ruby-identifier">extension</span>)
127
+ 297: <span class="ruby-identifier">locale</span> = <span class="ruby-constant">GetText</span>.<span class="ruby-identifier">locale</span>
128
+ 298: [<span class="ruby-identifier">locale</span>.<span class="ruby-identifier">to_general</span>, <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">language</span>, <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">default</span>.<span class="ruby-identifier">language</span>].<span class="ruby-identifier">uniq</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
129
+ 299: <span class="ruby-identifier">file_name</span> = <span class="ruby-node">&quot;#{template_path}_#{v}.#{extension}&quot;</span>
130
+ 300: <span class="ruby-identifier">base_path</span> = <span class="ruby-identifier">find_base_path_for</span>(<span class="ruby-identifier">file_name</span>)
131
+ 301: <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;#{base_path}/#{file_name}&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">base_path</span>.<span class="ruby-identifier">blank?</span>
132
+ 302: <span class="ruby-keyword kw">end</span>
133
+ 303: <span class="ruby-identifier">pick_template_without_gettext</span>(<span class="ruby-identifier">template_path</span>, <span class="ruby-identifier">extension</span>)
134
+ 304: <span class="ruby-keyword kw">end</span>
135
135
  </pre>
136
136
  </div>
137
137
  </div>
@@ -144,46 +144,47 @@
144
144
  <h3 class="section-bar">Methods</h3>
145
145
 
146
146
  <div class="name-list">
147
- <a href="#M000092">N_</a>&nbsp;&nbsp;
148
- <a href="#M000093">Nn_</a>&nbsp;&nbsp;
149
- <a href="#M000106">_</a>&nbsp;&nbsp;
150
- <a href="#M000102">add_default_locale_path</a>&nbsp;&nbsp;
151
- <a href="#M000083">bindtextdomain</a>&nbsp;&nbsp;
152
- <a href="#M000084">bindtextdomain_to</a>&nbsp;&nbsp;
153
- <a href="#M000080">cached=</a>&nbsp;&nbsp;
154
- <a href="#M000081">cached?</a>&nbsp;&nbsp;
155
- <a href="#M000078">cgi</a>&nbsp;&nbsp;
156
- <a href="#M000077">cgi=</a>&nbsp;&nbsp;
157
- <a href="#M000082">clear_cache</a>&nbsp;&nbsp;
158
- <a href="#M000072">create_mofiles</a>&nbsp;&nbsp;
159
- <a href="#M000103">current_textdomain_info</a>&nbsp;&nbsp;
160
- <a href="#M000087">gettext</a>&nbsp;&nbsp;
161
- <a href="#M000101">locale</a>&nbsp;&nbsp;
162
- <a href="#M000097">locale=</a>&nbsp;&nbsp;
163
- <a href="#M000071">msgmerge</a>&nbsp;&nbsp;
164
- <a href="#M000107">n_</a>&nbsp;&nbsp;
165
- <a href="#M000090">ngettext</a>&nbsp;&nbsp;
166
- <a href="#M000091">npgettext</a>&nbsp;&nbsp;
147
+ <a href="#M000093">N_</a>&nbsp;&nbsp;
148
+ <a href="#M000094">Nn_</a>&nbsp;&nbsp;
149
+ <a href="#M000107">_</a>&nbsp;&nbsp;
150
+ <a href="#M000103">add_default_locale_path</a>&nbsp;&nbsp;
151
+ <a href="#M000084">bindtextdomain</a>&nbsp;&nbsp;
152
+ <a href="#M000085">bindtextdomain_to</a>&nbsp;&nbsp;
153
+ <a href="#M000081">cached=</a>&nbsp;&nbsp;
154
+ <a href="#M000082">cached?</a>&nbsp;&nbsp;
155
+ <a href="#M000079">cgi</a>&nbsp;&nbsp;
156
+ <a href="#M000078">cgi=</a>&nbsp;&nbsp;
157
+ <a href="#M000083">clear_cache</a>&nbsp;&nbsp;
158
+ <a href="#M000073">create_mofiles</a>&nbsp;&nbsp;
159
+ <a href="#M000104">current_textdomain_info</a>&nbsp;&nbsp;
160
+ <a href="#M000088">gettext</a>&nbsp;&nbsp;
161
+ <a href="#M000102">locale</a>&nbsp;&nbsp;
162
+ <a href="#M000098">locale=</a>&nbsp;&nbsp;
163
+ <a href="#M000072">msgmerge</a>&nbsp;&nbsp;
164
+ <a href="#M000108">n_</a>&nbsp;&nbsp;
165
+ <a href="#M000091">ngettext</a>&nbsp;&nbsp;
166
+ <a href="#M000111">np_</a>&nbsp;&nbsp;
167
+ <a href="#M000092">npgettext</a>&nbsp;&nbsp;
167
168
  <a href="#M000110">ns_</a>&nbsp;&nbsp;
168
- <a href="#M000094">nsgettext</a>&nbsp;&nbsp;
169
- <a href="#M000100">output_charset</a>&nbsp;&nbsp;
170
- <a href="#M000099">output_charset=</a>&nbsp;&nbsp;
171
- <a href="#M000109">p_</a>&nbsp;&nbsp;
172
- <a href="#M000089">pgettext</a>&nbsp;&nbsp;
173
- <a href="#M000104">remove_all_textdomains</a>&nbsp;&nbsp;
174
- <a href="#M000074">rgettext</a>&nbsp;&nbsp;
175
- <a href="#M000075">rmsgfmt</a>&nbsp;&nbsp;
176
- <a href="#M000079">rmsgmerge</a>&nbsp;&nbsp;
177
- <a href="#M000108">s_</a>&nbsp;&nbsp;
178
- <a href="#M000076">set_cgi</a>&nbsp;&nbsp;
179
- <a href="#M000095">set_locale</a>&nbsp;&nbsp;
180
- <a href="#M000096">set_locale_all</a>&nbsp;&nbsp;
181
- <a href="#M000098">set_output_charset</a>&nbsp;&nbsp;
182
- <a href="#M000105">setlocale</a>&nbsp;&nbsp;
183
- <a href="#M000088">sgettext</a>&nbsp;&nbsp;
184
- <a href="#M000085">textdomain</a>&nbsp;&nbsp;
185
- <a href="#M000086">textdomain_to</a>&nbsp;&nbsp;
186
- <a href="#M000073">update_pofiles</a>&nbsp;&nbsp;
169
+ <a href="#M000095">nsgettext</a>&nbsp;&nbsp;
170
+ <a href="#M000101">output_charset</a>&nbsp;&nbsp;
171
+ <a href="#M000100">output_charset=</a>&nbsp;&nbsp;
172
+ <a href="#M000112">p_</a>&nbsp;&nbsp;
173
+ <a href="#M000090">pgettext</a>&nbsp;&nbsp;
174
+ <a href="#M000105">remove_all_textdomains</a>&nbsp;&nbsp;
175
+ <a href="#M000075">rgettext</a>&nbsp;&nbsp;
176
+ <a href="#M000076">rmsgfmt</a>&nbsp;&nbsp;
177
+ <a href="#M000080">rmsgmerge</a>&nbsp;&nbsp;
178
+ <a href="#M000109">s_</a>&nbsp;&nbsp;
179
+ <a href="#M000077">set_cgi</a>&nbsp;&nbsp;
180
+ <a href="#M000096">set_locale</a>&nbsp;&nbsp;
181
+ <a href="#M000097">set_locale_all</a>&nbsp;&nbsp;
182
+ <a href="#M000099">set_output_charset</a>&nbsp;&nbsp;
183
+ <a href="#M000106">setlocale</a>&nbsp;&nbsp;
184
+ <a href="#M000089">sgettext</a>&nbsp;&nbsp;
185
+ <a href="#M000086">textdomain</a>&nbsp;&nbsp;
186
+ <a href="#M000087">textdomain_to</a>&nbsp;&nbsp;
187
+ <a href="#M000074">update_pofiles</a>&nbsp;&nbsp;
187
188
  </div>
188
189
  </div>
189
190
 
@@ -224,10 +225,15 @@ Class <a href="GetText/TextDomainManager.html" class="link">GetText::TextDomainM
224
225
 
225
226
  <div class="name-list">
226
227
  <table summary="Constants">
228
+ <tr class="top-aligned-row context-row">
229
+ <td class="context-item-name">BOM_UTF8</td>
230
+ <td>=</td>
231
+ <td class="context-item-value">[0xef, 0xbb, 0xbf].pack(&quot;c3&quot;)</td>
232
+ </tr>
227
233
  <tr class="top-aligned-row context-row">
228
234
  <td class="context-item-name">VERSION</td>
229
235
  <td>=</td>
230
- <td class="context-item-value">&quot;1.92.0&quot;</td>
236
+ <td class="context-item-value">&quot;1.93.0&quot;</td>
231
237
  </tr>
232
238
  </table>
233
239
  </div>
@@ -242,11 +248,11 @@ Class <a href="GetText/TextDomainManager.html" class="link">GetText::TextDomainM
242
248
  <div id="methods">
243
249
  <h3 class="section-bar">Public Instance methods</h3>
244
250
 
245
- <div id="method-M000092" class="method-detail">
246
- <a name="M000092"></a>
251
+ <div id="method-M000093" class="method-detail">
252
+ <a name="M000093"></a>
247
253
 
248
254
  <div class="method-heading">
249
- <a href="#M000092" class="method-signature">
255
+ <a href="#M000093" class="method-signature">
250
256
  <span class="method-name">N_</span><span class="method-args">(msgid)</span>
251
257
  </a>
252
258
  </div>
@@ -254,7 +260,7 @@ Class <a href="GetText/TextDomainManager.html" class="link">GetText::TextDomainM
254
260
  <div class="method-description">
255
261
  <p>
256
262
  This function does nothing. But it is required in order to recognize the
257
- msgid by <a href="GetText.html#M000074">rgettext</a>.
263
+ msgid by <a href="GetText.html#M000075">rgettext</a>.
258
264
  </p>
259
265
  <ul>
260
266
  <li>msgid: the message id.
@@ -265,31 +271,31 @@ msgid by <a href="GetText.html#M000074">rgettext</a>.
265
271
  </li>
266
272
  </ul>
267
273
  <p><a class="source-toggle" href="#"
268
- onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
269
- <div class="method-source-code" id="M000092-source">
274
+ onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
275
+ <div class="method-source-code" id="M000093-source">
270
276
  <pre>
271
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 369</span>
272
- 369: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">N_</span>(<span class="ruby-identifier">msgid</span>)
273
- 370: <span class="ruby-identifier">msgid</span>
274
- 371: <span class="ruby-keyword kw">end</span>
277
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 383</span>
278
+ 383: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">N_</span>(<span class="ruby-identifier">msgid</span>)
279
+ 384: <span class="ruby-identifier">msgid</span>
280
+ 385: <span class="ruby-keyword kw">end</span>
275
281
  </pre>
276
282
  </div>
277
283
  </div>
278
284
  </div>
279
285
 
280
- <div id="method-M000093" class="method-detail">
281
- <a name="M000093"></a>
286
+ <div id="method-M000094" class="method-detail">
287
+ <a name="M000094"></a>
282
288
 
283
289
  <div class="method-heading">
284
- <a href="#M000093" class="method-signature">
290
+ <a href="#M000094" class="method-signature">
285
291
  <span class="method-name">Nn_</span><span class="method-args">(msgid, msgid_plural)</span>
286
292
  </a>
287
293
  </div>
288
294
 
289
295
  <div class="method-description">
290
296
  <p>
291
- This is same function as <a href="GetText.html#M000092">N_</a> but for <a
292
- href="GetText.html#M000090">ngettext</a>.
297
+ This is same function as <a href="GetText.html#M000093">N_</a> but for <a
298
+ href="GetText.html#M000091">ngettext</a>.
293
299
  </p>
294
300
  <ul>
295
301
  <li>msgid: the message id.
@@ -303,20 +309,20 @@ href="GetText.html#M000090">ngettext</a>.
303
309
  </li>
304
310
  </ul>
305
311
  <p><a class="source-toggle" href="#"
306
- onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
307
- <div class="method-source-code" id="M000093-source">
312
+ onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
313
+ <div class="method-source-code" id="M000094-source">
308
314
  <pre>
309
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 377</span>
310
- 377: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Nn_</span>(<span class="ruby-identifier">msgid</span>, <span class="ruby-identifier">msgid_plural</span>)
311
- 378: [<span class="ruby-identifier">msgid</span>, <span class="ruby-identifier">msgid_plural</span>]
312
- 379: <span class="ruby-keyword kw">end</span>
315
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 391</span>
316
+ 391: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Nn_</span>(<span class="ruby-identifier">msgid</span>, <span class="ruby-identifier">msgid_plural</span>)
317
+ 392: [<span class="ruby-identifier">msgid</span>, <span class="ruby-identifier">msgid_plural</span>]
318
+ 393: <span class="ruby-keyword kw">end</span>
313
319
  </pre>
314
320
  </div>
315
321
  </div>
316
322
  </div>
317
323
 
318
- <div id="method-M000106" class="method-detail">
319
- <a name="M000106"></a>
324
+ <div id="method-M000107" class="method-detail">
325
+ <a name="M000107"></a>
320
326
 
321
327
  <div class="method-heading">
322
328
  <span class="method-name">_</span><span class="method-args">(msgid)</span>
@@ -324,31 +330,31 @@ href="GetText.html#M000090">ngettext</a>.
324
330
 
325
331
  <div class="method-description">
326
332
  <p>
327
- Alias for <a href="GetText.html#M000087">gettext</a>
333
+ Alias for <a href="GetText.html#M000088">gettext</a>
328
334
  </p>
329
335
  </div>
330
336
  </div>
331
337
 
332
- <div id="method-M000102" class="method-detail">
333
- <a name="M000102"></a>
338
+ <div id="method-M000103" class="method-detail">
339
+ <a name="M000103"></a>
334
340
 
335
341
  <div class="method-heading">
336
- <a href="#M000102" class="method-signature">
342
+ <a href="#M000103" class="method-signature">
337
343
  <span class="method-name">add_default_locale_path</span><span class="method-args">(path)</span>
338
344
  </a>
339
345
  </div>
340
346
 
341
347
  <div class="method-description">
342
348
  <p>
343
- Add default <a href="GetText.html#M000101">locale</a> path.
349
+ Add default <a href="GetText.html#M000102">locale</a> path.
344
350
  </p>
345
351
  <ul>
346
- <li>path: a new <a href="GetText.html#M000101">locale</a> path. (e.g.)
352
+ <li>path: a new <a href="GetText.html#M000102">locale</a> path. (e.g.)
347
353
  &quot;/usr/share/locale/%{<a
348
- href="GetText.html#M000101">locale</a>}/LC_MESSAGES/%{name}.mo&quot;
349
- (&#8216;<a href="GetText.html#M000101">locale</a>&#8217; =&gt;
354
+ href="GetText.html#M000102">locale</a>}/LC_MESSAGES/%{name}.mo&quot;
355
+ (&#8216;<a href="GetText.html#M000102">locale</a>&#8217; =&gt;
350
356
  &quot;ja_JP&quot;, &#8216;name&#8217; =&gt; &quot;<a
351
- href="GetText.html#M000085">textdomain</a>&quot;)
357
+ href="GetText.html#M000086">textdomain</a>&quot;)
352
358
 
353
359
  </li>
354
360
  <li>Returns: the new DEFAULT_LOCALE_PATHS
@@ -356,23 +362,23 @@ href="GetText.html#M000085">textdomain</a>&quot;)
356
362
  </li>
357
363
  </ul>
358
364
  <p><a class="source-toggle" href="#"
359
- onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
360
- <div class="method-source-code" id="M000102-source">
365
+ onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
366
+ <div class="method-source-code" id="M000103-source">
361
367
  <pre>
362
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 551</span>
363
- 551: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_default_locale_path</span>(<span class="ruby-identifier">path</span>)
364
- 552: <span class="ruby-constant">TextDomain</span>.<span class="ruby-identifier">add_default_locale_path</span>(<span class="ruby-identifier">path</span>)
365
- 553: <span class="ruby-keyword kw">end</span>
368
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 565</span>
369
+ 565: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_default_locale_path</span>(<span class="ruby-identifier">path</span>)
370
+ 566: <span class="ruby-constant">TextDomain</span>.<span class="ruby-identifier">add_default_locale_path</span>(<span class="ruby-identifier">path</span>)
371
+ 567: <span class="ruby-keyword kw">end</span>
366
372
  </pre>
367
373
  </div>
368
374
  </div>
369
375
  </div>
370
376
 
371
- <div id="method-M000083" class="method-detail">
372
- <a name="M000083"></a>
377
+ <div id="method-M000084" class="method-detail">
378
+ <a name="M000084"></a>
373
379
 
374
380
  <div class="method-heading">
375
- <a href="#M000083" class="method-signature">
381
+ <a href="#M000084" class="method-signature">
376
382
  <span class="method-name">bindtextdomain(domainname, options = {})<br />
377
383
  </span>
378
384
  </a>
@@ -380,18 +386,18 @@ href="GetText.html#M000085">textdomain</a>&quot;)
380
386
 
381
387
  <div class="method-description">
382
388
  <p>
383
- Bind a <a href="GetText.html#M000085">textdomain</a>(%{path}/%{<a
384
- href="GetText.html#M000101">locale</a>}/LC_MESSAGES/%{domainname}.mo) to
389
+ Bind a <a href="GetText.html#M000086">textdomain</a>(%{path}/%{<a
390
+ href="GetText.html#M000102">locale</a>}/LC_MESSAGES/%{domainname}.mo) to
385
391
  your program. Normally, the texdomain scope becomes a ruby-script-file. So
386
392
  you need to call this function each ruby-script-files. On the other hand,
387
393
  if you call this function under <a
388
394
  href="GetText/Container.html">GetText::Container</a> (gettext/container,
389
395
  gettext/erb, gettext/rails), the <a
390
- href="GetText.html#M000085">textdomain</a> scope becomes a Class/<a
396
+ href="GetText.html#M000086">textdomain</a> scope becomes a Class/<a
391
397
  href="Module.html">Module</a>.
392
398
  </p>
393
399
  <ul>
394
- <li>domainname: the <a href="GetText.html#M000085">textdomain</a> name.
400
+ <li>domainname: the <a href="GetText.html#M000086">textdomain</a> name.
395
401
 
396
402
  </li>
397
403
  <li>options: options as an Hash.
@@ -401,16 +407,16 @@ href="Module.html">Module</a>.
401
407
  default paths such as /usr/share/locale, /usr/local/share/locale)
402
408
 
403
409
  </li>
404
- <li>:<a href="GetText.html#M000101">locale</a> - the <a
405
- href="GetText.html#M000101">locale</a> string such as
410
+ <li>:<a href="GetText.html#M000102">locale</a> - the <a
411
+ href="GetText.html#M000102">locale</a> string such as
406
412
  &quot;ja_JP.UTF-8&quot;. Generally, you should use <a
407
- href="GetText.html#M000095">GetText.set_locale</a> instead. The value is
413
+ href="GetText.html#M000096">GetText.set_locale</a> instead. The value is
408
414
  searched order by: the value of this value &gt; System default language.
409
415
 
410
416
  </li>
411
417
  <li>:charset - output charset. This affect the current <a
412
- href="GetText.html#M000085">textdomain</a> only. Generally, you should use
413
- <a href="GetText.html#M000098">GetText.set_output_charset</a> instead. The
418
+ href="GetText.html#M000086">textdomain</a> only. Generally, you should use
419
+ <a href="GetText.html#M000099">GetText.set_output_charset</a> instead. The
414
420
  value is searched order by: the value of Locale.set_output_charset &gt;
415
421
  ENV[&quot;OUTPUT_CHARSET&quot;] &gt; this value &gt; System default
416
422
  charset.
@@ -428,8 +434,8 @@ Note: Don&#8216;t use locale_, charset argument(not in options). They are
428
434
  remained for backward compatibility.
429
435
  </p>
430
436
  <p><a class="source-toggle" href="#"
431
- onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
432
- <div class="method-source-code" id="M000083-source">
437
+ onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
438
+ <div class="method-source-code" id="M000084-source">
433
439
  <pre>
434
440
  <span class="ruby-comment cmt"># File lib/gettext.rb, line 85</span>
435
441
  85: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bindtextdomain</span>(<span class="ruby-identifier">domainname</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-identifier">locale_</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">charset</span> = <span class="ruby-keyword kw">nil</span>)
@@ -460,11 +466,11 @@ remained for backward compatibility.
460
466
  </div>
461
467
  </div>
462
468
 
463
- <div id="method-M000084" class="method-detail">
464
- <a name="M000084"></a>
469
+ <div id="method-M000085" class="method-detail">
470
+ <a name="M000085"></a>
465
471
 
466
472
  <div class="method-heading">
467
- <a href="#M000084" class="method-signature">
473
+ <a href="#M000085" class="method-signature">
468
474
  <span class="method-name">bindtextdomain_to</span><span class="method-args">(klass, domainname, options = {})</span>
469
475
  </a>
470
476
  </div>
@@ -472,23 +478,23 @@ remained for backward compatibility.
472
478
  <div class="method-description">
473
479
  <p>
474
480
  Includes <a href="GetText.html">GetText</a> module and bind a <a
475
- href="GetText.html#M000085">textdomain</a> to a class.
481
+ href="GetText.html#M000086">textdomain</a> to a class.
476
482
  </p>
477
483
  <ul>
478
484
  <li>klass: the target ruby class.
479
485
 
480
486
  </li>
481
- <li>domainname: the <a href="GetText.html#M000085">textdomain</a> name.
487
+ <li>domainname: the <a href="GetText.html#M000086">textdomain</a> name.
482
488
 
483
489
  </li>
484
490
  <li>options: options as an Hash. See <a
485
- href="GetText.html#M000083">GetText.bindtextdomain</a>.
491
+ href="GetText.html#M000084">GetText.bindtextdomain</a>.
486
492
 
487
493
  </li>
488
494
  </ul>
489
495
  <p><a class="source-toggle" href="#"
490
- onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
491
- <div class="method-source-code" id="M000084-source">
496
+ onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
497
+ <div class="method-source-code" id="M000085-source">
492
498
  <pre>
493
499
  <span class="ruby-comment cmt"># File lib/gettext.rb, line 113</span>
494
500
  113: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bindtextdomain_to</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">domainname</span>, <span class="ruby-identifier">options</span> = {})
@@ -504,11 +510,11 @@ href="GetText.html#M000083">GetText.bindtextdomain</a>.
504
510
  </div>
505
511
  </div>
506
512
 
507
- <div id="method-M000080" class="method-detail">
508
- <a name="M000080"></a>
513
+ <div id="method-M000081" class="method-detail">
514
+ <a name="M000081"></a>
509
515
 
510
516
  <div class="method-heading">
511
- <a href="#M000080" class="method-signature">
517
+ <a href="#M000081" class="method-signature">
512
518
  <span class="method-name">cached=</span><span class="method-args">(val)</span>
513
519
  </a>
514
520
  </div>
@@ -523,8 +529,8 @@ Default is true. If $DEBUG is false, messages are not checked even if this
523
529
  value is true.
524
530
  </p>
525
531
  <p><a class="source-toggle" href="#"
526
- onclick="toggleCode('M000080-source');return false;">[Source]</a></p>
527
- <div class="method-source-code" id="M000080-source">
532
+ onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
533
+ <div class="method-source-code" id="M000081-source">
528
534
  <pre>
529
535
  <span class="ruby-comment cmt"># File lib/gettext.rb, line 42</span>
530
536
  42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cached=</span>(<span class="ruby-identifier">val</span>)
@@ -536,11 +542,11 @@ value is true.
536
542
  </div>
537
543
  </div>
538
544
 
539
- <div id="method-M000081" class="method-detail">
540
- <a name="M000081"></a>
545
+ <div id="method-M000082" class="method-detail">
546
+ <a name="M000082"></a>
541
547
 
542
548
  <div class="method-heading">
543
- <a href="#M000081" class="method-signature">
549
+ <a href="#M000082" class="method-signature">
544
550
  <span class="method-name">cached?</span><span class="method-args">()</span>
545
551
  </a>
546
552
  </div>
@@ -550,8 +556,8 @@ value is true.
550
556
  Return the cached value.
551
557
  </p>
552
558
  <p><a class="source-toggle" href="#"
553
- onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
554
- <div class="method-source-code" id="M000081-source">
559
+ onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
560
+ <div class="method-source-code" id="M000082-source">
555
561
  <pre>
556
562
  <span class="ruby-comment cmt"># File lib/gettext.rb, line 48</span>
557
563
  48: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cached?</span>
@@ -562,11 +568,11 @@ Return the cached value.
562
568
  </div>
563
569
  </div>
564
570
 
565
- <div id="method-M000078" class="method-detail">
566
- <a name="M000078"></a>
571
+ <div id="method-M000079" class="method-detail">
572
+ <a name="M000079"></a>
567
573
 
568
574
  <div class="method-heading">
569
- <a href="#M000078" class="method-signature">
575
+ <a href="#M000079" class="method-signature">
570
576
  <span class="method-name">cgi</span><span class="method-args">()</span>
571
577
  </a>
572
578
  </div>
@@ -581,8 +587,8 @@ Gets the CGI object. If it is nil, returns new CGI object.
581
587
  </li>
582
588
  </ul>
583
589
  <p><a class="source-toggle" href="#"
584
- onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
585
- <div class="method-source-code" id="M000078-source">
590
+ onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
591
+ <div class="method-source-code" id="M000079-source">
586
592
  <pre>
587
593
  <span class="ruby-comment cmt"># File lib/gettext/cgi.rb, line 36</span>
588
594
  36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cgi</span>
@@ -593,18 +599,18 @@ Gets the CGI object. If it is nil, returns new CGI object.
593
599
  </div>
594
600
  </div>
595
601
 
596
- <div id="method-M000077" class="method-detail">
597
- <a name="M000077"></a>
602
+ <div id="method-M000078" class="method-detail">
603
+ <a name="M000078"></a>
598
604
 
599
605
  <div class="method-heading">
600
- <a href="#M000077" class="method-signature">
606
+ <a href="#M000078" class="method-signature">
601
607
  <span class="method-name">cgi=</span><span class="method-args">(cgi_)</span>
602
608
  </a>
603
609
  </div>
604
610
 
605
611
  <div class="method-description">
606
612
  <p>
607
- Same as <a href="GetText.html#M000076">GetText.set_cgi</a>.
613
+ Same as <a href="GetText.html#M000077">GetText.set_cgi</a>.
608
614
  </p>
609
615
  <ul>
610
616
  <li>cgi_: CGI object
@@ -615,8 +621,8 @@ Same as <a href="GetText.html#M000076">GetText.set_cgi</a>.
615
621
  </li>
616
622
  </ul>
617
623
  <p><a class="source-toggle" href="#"
618
- onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
619
- <div class="method-source-code" id="M000077-source">
624
+ onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
625
+ <div class="method-source-code" id="M000078-source">
620
626
  <pre>
621
627
  <span class="ruby-comment cmt"># File lib/gettext/cgi.rb, line 29</span>
622
628
  29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cgi=</span>(<span class="ruby-identifier">cgi_</span>)
@@ -628,11 +634,11 @@ Same as <a href="GetText.html#M000076">GetText.set_cgi</a>.
628
634
  </div>
629
635
  </div>
630
636
 
631
- <div id="method-M000082" class="method-detail">
632
- <a name="M000082"></a>
637
+ <div id="method-M000083" class="method-detail">
638
+ <a name="M000083"></a>
633
639
 
634
640
  <div class="method-heading">
635
- <a href="#M000082" class="method-signature">
641
+ <a href="#M000083" class="method-signature">
636
642
  <span class="method-name">clear_cache</span><span class="method-args">()</span>
637
643
  </a>
638
644
  </div>
@@ -642,8 +648,8 @@ Same as <a href="GetText.html#M000076">GetText.set_cgi</a>.
642
648
  Clear the cached messages.
643
649
  </p>
644
650
  <p><a class="source-toggle" href="#"
645
- onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
646
- <div class="method-source-code" id="M000082-source">
651
+ onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
652
+ <div class="method-source-code" id="M000083-source">
647
653
  <pre>
648
654
  <span class="ruby-comment cmt"># File lib/gettext.rb, line 53</span>
649
655
  53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear_cache</span>
@@ -658,11 +664,11 @@ Clear the cached messages.
658
664
  </div>
659
665
  </div>
660
666
 
661
- <div id="method-M000072" class="method-detail">
662
- <a name="M000072"></a>
667
+ <div id="method-M000073" class="method-detail">
668
+ <a name="M000073"></a>
663
669
 
664
670
  <div class="method-heading">
665
- <a href="#M000072" class="method-signature">
671
+ <a href="#M000073" class="method-signature">
666
672
  <span class="method-name">create_mofiles</span><span class="method-args">(verbose = false, podir = &quot;./po&quot;, targetdir = &quot;./data/locale&quot;, targetpath_rule = &quot;%s/LC_MESSAGES&quot;)</span>
667
673
  </a>
668
674
  </div>
@@ -674,7 +680,7 @@ Creates mo-files using #{po_root}/#{lang}/*.po an put them to
674
680
  </p>
675
681
  <p>
676
682
  This is a convenience function of <a
677
- href="GetText.html#M000075">GetText.rmsgfmt</a> for plural target files.
683
+ href="GetText.html#M000076">GetText.rmsgfmt</a> for plural target files.
678
684
  </p>
679
685
  <ul>
680
686
  <li>verbose: true if verbose mode, otherwise false
@@ -692,46 +698,46 @@ becomes &quot;#{lang}&quot; under po_root.
692
698
  </li>
693
699
  </ul>
694
700
  <p><a class="source-toggle" href="#"
695
- onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
696
- <div class="method-source-code" id="M000072-source">
701
+ onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
702
+ <div class="method-source-code" id="M000073-source">
697
703
  <pre>
698
- <span class="ruby-comment cmt"># File lib/gettext/utils.rb, line 96</span>
699
- 96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_mofiles</span>(<span class="ruby-identifier">verbose</span> = <span class="ruby-keyword kw">false</span>,
700
- 97: <span class="ruby-identifier">podir</span> = <span class="ruby-value str">&quot;./po&quot;</span>, <span class="ruby-identifier">targetdir</span> = <span class="ruby-value str">&quot;./data/locale&quot;</span>,
701
- 98: <span class="ruby-identifier">targetpath_rule</span> = <span class="ruby-value str">&quot;%s/LC_MESSAGES&quot;</span>)
702
- 99:
703
- 100: <span class="ruby-identifier">modir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">targetdir</span>, <span class="ruby-identifier">targetpath_rule</span>)
704
- 101: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">podir</span>, <span class="ruby-value str">&quot;*/*.po&quot;</span>)) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
705
- 102: <span class="ruby-identifier">lang</span>, <span class="ruby-identifier">basename</span> = <span class="ruby-regexp re">/\/([^\/]+?)\/(.*)\.po/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-identifier">file</span>[<span class="ruby-identifier">podir</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]).<span class="ruby-identifier">to_a</span>[<span class="ruby-value">1</span>,<span class="ruby-value">2</span>]
706
- 103: <span class="ruby-identifier">outdir</span> = <span class="ruby-identifier">modir</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">lang</span>
707
- 104: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">outdir</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">outdir</span>)
708
- 105: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">print</span> <span class="ruby-node">%Q[#{file} -&gt; #{File.join(outdir, &quot;#{basename}.mo&quot;)} ... ]</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose</span>
709
- 106: <span class="ruby-keyword kw">begin</span>
710
- 107: <span class="ruby-identifier">rmsgfmt</span>(<span class="ruby-identifier">file</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">outdir</span>, <span class="ruby-node">&quot;#{basename}.mo&quot;</span>))
711
- 108: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
712
- 109: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Error.&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose</span>
713
- 110: <span class="ruby-identifier">raise</span> <span class="ruby-identifier">e</span>
714
- 111: <span class="ruby-keyword kw">end</span>
715
- 112: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Done.&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose</span>
716
- 113: <span class="ruby-keyword kw">end</span>
717
- 114: <span class="ruby-keyword kw">end</span>
704
+ <span class="ruby-comment cmt"># File lib/gettext/utils.rb, line 110</span>
705
+ 110: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_mofiles</span>(<span class="ruby-identifier">verbose</span> = <span class="ruby-keyword kw">false</span>,
706
+ 111: <span class="ruby-identifier">podir</span> = <span class="ruby-value str">&quot;./po&quot;</span>, <span class="ruby-identifier">targetdir</span> = <span class="ruby-value str">&quot;./data/locale&quot;</span>,
707
+ 112: <span class="ruby-identifier">targetpath_rule</span> = <span class="ruby-value str">&quot;%s/LC_MESSAGES&quot;</span>)
708
+ 113:
709
+ 114: <span class="ruby-identifier">modir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">targetdir</span>, <span class="ruby-identifier">targetpath_rule</span>)
710
+ 115: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">podir</span>, <span class="ruby-value str">&quot;*/*.po&quot;</span>)) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
711
+ 116: <span class="ruby-identifier">lang</span>, <span class="ruby-identifier">basename</span> = <span class="ruby-regexp re">/\/([^\/]+?)\/(.*)\.po/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-identifier">file</span>[<span class="ruby-identifier">podir</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]).<span class="ruby-identifier">to_a</span>[<span class="ruby-value">1</span>,<span class="ruby-value">2</span>]
712
+ 117: <span class="ruby-identifier">outdir</span> = <span class="ruby-identifier">modir</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">lang</span>
713
+ 118: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">outdir</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">outdir</span>)
714
+ 119: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">print</span> <span class="ruby-node">%Q[#{file} -&gt; #{File.join(outdir, &quot;#{basename}.mo&quot;)} ... ]</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose</span>
715
+ 120: <span class="ruby-keyword kw">begin</span>
716
+ 121: <span class="ruby-identifier">rmsgfmt</span>(<span class="ruby-identifier">file</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">outdir</span>, <span class="ruby-node">&quot;#{basename}.mo&quot;</span>))
717
+ 122: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
718
+ 123: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Error.&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose</span>
719
+ 124: <span class="ruby-identifier">raise</span> <span class="ruby-identifier">e</span>
720
+ 125: <span class="ruby-keyword kw">end</span>
721
+ 126: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Done.&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose</span>
722
+ 127: <span class="ruby-keyword kw">end</span>
723
+ 128: <span class="ruby-keyword kw">end</span>
718
724
  </pre>
719
725
  </div>
720
726
  </div>
721
727
  </div>
722
728
 
723
- <div id="method-M000103" class="method-detail">
724
- <a name="M000103"></a>
729
+ <div id="method-M000104" class="method-detail">
730
+ <a name="M000104"></a>
725
731
 
726
732
  <div class="method-heading">
727
- <a href="#M000103" class="method-signature">
733
+ <a href="#M000104" class="method-signature">
728
734
  <span class="method-name">current_textdomain_info</span><span class="method-args">(options = {})</span>
729
735
  </a>
730
736
  </div>
731
737
 
732
738
  <div class="method-description">
733
739
  <p>
734
- Show the current <a href="GetText.html#M000085">textdomain</a> information.
740
+ Show the current <a href="GetText.html#M000086">textdomain</a> information.
735
741
  This function is for debugging.
736
742
  </p>
737
743
  <ul>
@@ -752,41 +758,41 @@ Default is false.
752
758
  </li>
753
759
  </ul>
754
760
  <p><a class="source-toggle" href="#"
755
- onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
756
- <div class="method-source-code" id="M000103-source">
761
+ onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
762
+ <div class="method-source-code" id="M000104-source">
757
763
  <pre>
758
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 560</span>
759
- 560: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current_textdomain_info</span>(<span class="ruby-identifier">options</span> = {})
760
- 561: <span class="ruby-identifier">opts</span> = {<span class="ruby-identifier">:with_messages</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:with_paths</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:out</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">STDOUT</span>}.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options</span>)
761
- 562: <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">nil</span>
762
- 563: <span class="ruby-identifier">each_textdomain</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">textdomain</span><span class="ruby-operator">|</span>
763
- 564: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;TextDomain name: \&quot;#{textdomain.name}\&quot;&quot;</span>
764
- 565: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;TextDomain current locale: \&quot;#{textdomain.current_locale}\&quot;&quot;</span>
765
- 566: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;TextDomain current mo filename: \&quot;#{textdomain.current_mo.filename}\&quot;&quot;</span>
766
- 567: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:with_paths</span>]
767
- 568: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;TextDomain locale file paths:&quot;</span>
768
- 569: <span class="ruby-identifier">textdomain</span>.<span class="ruby-identifier">locale_paths</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
769
- 570: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot; #{v}&quot;</span>
770
- 571: <span class="ruby-keyword kw">end</span>
771
- 572: <span class="ruby-keyword kw">end</span>
772
- 573: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:with_messages</span>]
773
- 574: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;The messages in the mo file:&quot;</span>
774
- 575: <span class="ruby-identifier">textdomain</span>.<span class="ruby-identifier">current_mo</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
775
- 576: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot; \&quot;#{k}\&quot;: \&quot;#{v}\&quot;&quot;</span>
776
- 577: }
777
- 578: <span class="ruby-keyword kw">end</span>
778
- 579: }
779
- 580: <span class="ruby-keyword kw">end</span>
764
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 574</span>
765
+ 574: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current_textdomain_info</span>(<span class="ruby-identifier">options</span> = {})
766
+ 575: <span class="ruby-identifier">opts</span> = {<span class="ruby-identifier">:with_messages</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:with_paths</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:out</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">STDOUT</span>}.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options</span>)
767
+ 576: <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">nil</span>
768
+ 577: <span class="ruby-identifier">each_textdomain</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">textdomain</span><span class="ruby-operator">|</span>
769
+ 578: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;TextDomain name: \&quot;#{textdomain.name}\&quot;&quot;</span>
770
+ 579: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;TextDomain current locale: \&quot;#{textdomain.current_locale}\&quot;&quot;</span>
771
+ 580: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;TextDomain current mo filename: \&quot;#{textdomain.current_mo.filename}\&quot;&quot;</span>
772
+ 581: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:with_paths</span>]
773
+ 582: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;TextDomain locale file paths:&quot;</span>
774
+ 583: <span class="ruby-identifier">textdomain</span>.<span class="ruby-identifier">locale_paths</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
775
+ 584: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot; #{v}&quot;</span>
776
+ 585: <span class="ruby-keyword kw">end</span>
777
+ 586: <span class="ruby-keyword kw">end</span>
778
+ 587: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:with_messages</span>]
779
+ 588: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;The messages in the mo file:&quot;</span>
780
+ 589: <span class="ruby-identifier">textdomain</span>.<span class="ruby-identifier">current_mo</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
781
+ 590: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:out</span>].<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot; \&quot;#{k}\&quot;: \&quot;#{v}\&quot;&quot;</span>
782
+ 591: }
783
+ 592: <span class="ruby-keyword kw">end</span>
784
+ 593: }
785
+ 594: <span class="ruby-keyword kw">end</span>
780
786
  </pre>
781
787
  </div>
782
788
  </div>
783
789
  </div>
784
790
 
785
- <div id="method-M000087" class="method-detail">
786
- <a name="M000087"></a>
791
+ <div id="method-M000088" class="method-detail">
792
+ <a name="M000088"></a>
787
793
 
788
794
  <div class="method-heading">
789
- <a href="#M000087" class="method-signature">
795
+ <a href="#M000088" class="method-signature">
790
796
  <span class="method-name">gettext(msgid)<br />
791
797
  _(msgid)<br />
792
798
  </span>
@@ -803,14 +809,14 @@ You need to use String#dup if you want to modify the return value with
803
809
  destructive functions.
804
810
  </p>
805
811
  <p>
806
- (e.g.1) <a href="GetText.html#M000106">_</a>(&quot;Hello &quot;).dup
812
+ (e.g.1) <a href="GetText.html#M000107">_</a>(&quot;Hello &quot;).dup
807
813
  &lt;&lt; &quot;world&quot;
808
814
  </p>
809
815
  <p>
810
816
  But e.g.1 should be rewrite to:
811
817
  </p>
812
818
  <p>
813
- (e.g.2) <a href="GetText.html#M000106">_</a>(&quot;Hello %{val}&quot;) %
819
+ (e.g.2) <a href="GetText.html#M000107">_</a>(&quot;Hello %{val}&quot;) %
814
820
  {:val =&gt; &quot;world&quot;}
815
821
  </p>
816
822
  <p>
@@ -827,8 +833,8 @@ return msgid.
827
833
  </li>
828
834
  </ul>
829
835
  <p><a class="source-toggle" href="#"
830
- onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
831
- <div class="method-source-code" id="M000087-source">
836
+ onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
837
+ <div class="method-source-code" id="M000088-source">
832
838
  <pre>
833
839
  <span class="ruby-comment cmt"># File lib/gettext.rb, line 263</span>
834
840
  263: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gettext</span>(<span class="ruby-identifier">msgid</span>)
@@ -839,18 +845,18 @@ return msgid.
839
845
  </div>
840
846
  </div>
841
847
 
842
- <div id="method-M000101" class="method-detail">
843
- <a name="M000101"></a>
848
+ <div id="method-M000102" class="method-detail">
849
+ <a name="M000102"></a>
844
850
 
845
851
  <div class="method-heading">
846
- <a href="#M000101" class="method-signature">
852
+ <a href="#M000102" class="method-signature">
847
853
  <span class="method-name">locale</span><span class="method-args">()</span>
848
854
  </a>
849
855
  </div>
850
856
 
851
857
  <div class="method-description">
852
858
  <p>
853
- Gets the current <a href="GetText.html#M000101">locale</a>.
859
+ Gets the current <a href="GetText.html#M000102">locale</a>.
854
860
  </p>
855
861
  <ul>
856
862
  <li>Returns: a current <a href="Locale/Object.html">Locale::Object</a>
@@ -858,66 +864,66 @@ Gets the current <a href="GetText.html#M000101">locale</a>.
858
864
  </li>
859
865
  </ul>
860
866
  <p><a class="source-toggle" href="#"
861
- onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
862
- <div class="method-source-code" id="M000101-source">
867
+ onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
868
+ <div class="method-source-code" id="M000102-source">
863
869
  <pre>
864
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 543</span>
865
- 543: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">locale</span>
866
- 544: <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">current</span>
867
- 545: <span class="ruby-keyword kw">end</span>
870
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 557</span>
871
+ 557: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">locale</span>
872
+ 558: <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">current</span>
873
+ 559: <span class="ruby-keyword kw">end</span>
868
874
  </pre>
869
875
  </div>
870
876
  </div>
871
877
  </div>
872
878
 
873
- <div id="method-M000097" class="method-detail">
874
- <a name="M000097"></a>
879
+ <div id="method-M000098" class="method-detail">
880
+ <a name="M000098"></a>
875
881
 
876
882
  <div class="method-heading">
877
- <a href="#M000097" class="method-signature">
883
+ <a href="#M000098" class="method-signature">
878
884
  <span class="method-name">locale=</span><span class="method-args">(locale)</span>
879
885
  </a>
880
886
  </div>
881
887
 
882
888
  <div class="method-description">
883
889
  <p>
884
- Sets the default/current <a href="GetText.html#M000101">locale</a>. This
890
+ Sets the default/current <a href="GetText.html#M000102">locale</a>. This
885
891
  method haves the strongest infulence. All of the Textdomains are set the
886
- new <a href="GetText.html#M000101">locale</a>.
892
+ new <a href="GetText.html#M000102">locale</a>.
887
893
  </p>
888
894
  <p>
889
895
  Note that you shouldn&#8216;t use this for your own Libraries.
890
896
  </p>
891
897
  <ul>
892
- <li><a href="GetText.html#M000101">locale</a>: a <a
893
- href="GetText.html#M000101">locale</a> string or <a
898
+ <li><a href="GetText.html#M000102">locale</a>: a <a
899
+ href="GetText.html#M000102">locale</a> string or <a
894
900
  href="Locale/Object.html">Locale::Object</a>
895
901
 
896
902
  </li>
897
- <li>Returns: a <a href="GetText.html#M000101">locale</a> string
903
+ <li>Returns: a <a href="GetText.html#M000102">locale</a> string
898
904
 
899
905
  </li>
900
906
  </ul>
901
907
  <p><a class="source-toggle" href="#"
902
- onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
903
- <div class="method-source-code" id="M000097-source">
908
+ onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
909
+ <div class="method-source-code" id="M000098-source">
904
910
  <pre>
905
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 513</span>
906
- 513: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">locale=</span>(<span class="ruby-identifier">locale</span>)
907
- 514: <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">default</span> = <span class="ruby-identifier">locale</span>
908
- 515: <span class="ruby-identifier">set_locale_all</span>(<span class="ruby-identifier">locale</span>)
909
- 516: <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">default</span>
910
- 517: <span class="ruby-keyword kw">end</span>
911
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 527</span>
912
+ 527: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">locale=</span>(<span class="ruby-identifier">locale</span>)
913
+ 528: <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">default</span> = <span class="ruby-identifier">locale</span>
914
+ 529: <span class="ruby-identifier">set_locale_all</span>(<span class="ruby-identifier">locale</span>)
915
+ 530: <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">default</span>
916
+ 531: <span class="ruby-keyword kw">end</span>
911
917
  </pre>
912
918
  </div>
913
919
  </div>
914
920
  </div>
915
921
 
916
- <div id="method-M000071" class="method-detail">
917
- <a name="M000071"></a>
922
+ <div id="method-M000072" class="method-detail">
923
+ <a name="M000072"></a>
918
924
 
919
925
  <div class="method-heading">
920
- <a href="#M000071" class="method-signature">
926
+ <a href="#M000072" class="method-signature">
921
927
  <span class="method-name">msgmerge</span><span class="method-args">(defpo, refpo, app_version)</span>
922
928
  </a>
923
929
  </div>
@@ -928,7 +934,7 @@ Merges two Uniforum style .po files together.
928
934
  </p>
929
935
  <p>
930
936
  <b>Note</b> This function requires &quot;<a
931
- href="GetText.html#M000071">msgmerge</a>&quot; tool included in GNU <a
937
+ href="GetText.html#M000072">msgmerge</a>&quot; tool included in GNU <a
932
938
  href="GetText.html">GetText</a>. So you need to install GNU <a
933
939
  href="GetText.html">GetText</a>.
934
940
  </p>
@@ -941,14 +947,14 @@ discarded.
941
947
  <p>
942
948
  The ref.pot file is the last created PO file with up-to-date source
943
949
  references but old translations, or a PO Template file (generally created
944
- by <a href="GetText.html#M000074">rgettext</a>); any translations or
950
+ by <a href="GetText.html#M000075">rgettext</a>); any translations or
945
951
  comments in the file will be discarded, however dot comments and file
946
952
  positions will be preserved. Where an exact match cannot be found, fuzzy
947
953
  matching is used to produce better results.
948
954
  </p>
949
955
  <p>
950
956
  Usually you don&#8216;t need to call this function directly. Use <a
951
- href="GetText.html#M000073">GetText.update_pofiles</a> instead.
957
+ href="GetText.html#M000074">GetText.update_pofiles</a> instead.
952
958
  </p>
953
959
  <ul>
954
960
  <li>defpo: a po-file. translations referring to old sources
@@ -966,47 +972,48 @@ href="GetText.html#M000073">GetText.update_pofiles</a> instead.
966
972
  </li>
967
973
  </ul>
968
974
  <p><a class="source-toggle" href="#"
969
- onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
970
- <div class="method-source-code" id="M000071-source">
975
+ onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
976
+ <div class="method-source-code" id="M000072-source">
971
977
  <pre>
972
- <span class="ruby-comment cmt"># File lib/gettext/utils.rb, line 47</span>
973
- 47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">msgmerge</span>(<span class="ruby-identifier">defpo</span>, <span class="ruby-identifier">refpo</span>, <span class="ruby-identifier">app_version</span>)
974
- 48: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">defpo</span>
975
- 49: <span class="ruby-identifier">cmd</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-value str">&quot;MSGMERGE_PATH&quot;</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">&quot;msgmerge&quot;</span>
976
- 50:
977
- 51: <span class="ruby-identifier">cont</span> = <span class="ruby-value str">&quot;&quot;</span>
978
- 52: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">exist?</span> <span class="ruby-identifier">defpo</span>
979
- 53: <span class="ruby-node">`#{cmd} --version`</span>
980
- 54: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">$?</span>.<span class="ruby-identifier">success?</span>
981
- 55: <span class="ruby-identifier">raise</span> <span class="ruby-identifier">_</span>(<span class="ruby-node">&quot;`#{cmd}' may not be found. \nInstall GNU Gettext then set PATH or MSGMERGE_PATH correctly.&quot;</span>)
982
- 56: <span class="ruby-keyword kw">end</span>
983
- 57: <span class="ruby-identifier">cont</span> = <span class="ruby-node">`#{cmd} #{defpo} #{refpo}`</span>
984
- 58: <span class="ruby-keyword kw">else</span>
985
- 59: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">refpo</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">io</span><span class="ruby-operator">|</span>
986
- 60: <span class="ruby-identifier">cont</span> = <span class="ruby-identifier">io</span>.<span class="ruby-identifier">read</span>
987
- 61: <span class="ruby-keyword kw">end</span>
988
- 62: <span class="ruby-keyword kw">end</span>
989
- 63: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cont</span>.<span class="ruby-identifier">empty?</span>
990
- 64: <span class="ruby-identifier">failed_filename</span> = <span class="ruby-identifier">refpo</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;~&quot;</span>
991
- 65: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">cp</span>(<span class="ruby-identifier">refpo</span>, <span class="ruby-identifier">failed_filename</span>)
992
- 66: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">_</span>(<span class="ruby-value str">&quot;Failed to merge with %{defpo}&quot;</span>) <span class="ruby-operator">%</span> {<span class="ruby-identifier">:defpo</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">defpo</span>}
993
- 67: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">_</span>(<span class="ruby-value str">&quot;New .pot was copied to %{failed_filename}&quot;</span>) <span class="ruby-operator">%</span>{<span class="ruby-identifier">:failed_filename</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">failed_filename</span>}
994
- 68: <span class="ruby-identifier">raise</span> <span class="ruby-identifier">_</span>(<span class="ruby-value str">&quot;Check these po/pot-files. It may have syntax errors or something wrong.&quot;</span>)
995
- 69: <span class="ruby-keyword kw">else</span>
996
- 70: <span class="ruby-identifier">cont</span>.<span class="ruby-identifier">sub!</span>(<span class="ruby-regexp re">/(Project-Id-Version\:).*$/</span>, <span class="ruby-node">&quot;\\1 #{app_version}\\n\&quot;&quot;</span>)
997
- 71: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">defpo</span>, <span class="ruby-value str">&quot;w&quot;</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">out</span><span class="ruby-operator">|</span>
998
- 72: <span class="ruby-identifier">out</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">cont</span>)
999
- 73: <span class="ruby-keyword kw">end</span>
1000
- 74: <span class="ruby-keyword kw">end</span>
1001
- 75: <span class="ruby-keyword kw">self</span>
1002
- 76: <span class="ruby-keyword kw">end</span>
978
+ <span class="ruby-comment cmt"># File lib/gettext/utils.rb, line 60</span>
979
+ 60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">msgmerge</span>(<span class="ruby-identifier">defpo</span>, <span class="ruby-identifier">refpo</span>, <span class="ruby-identifier">app_version</span>)
980
+ 61: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">defpo</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; &quot;</span>
981
+ 62: <span class="ruby-identifier">cmd</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-value str">&quot;MSGMERGE_PATH&quot;</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">&quot;msgmerge&quot;</span>
982
+ 63:
983
+ 64: <span class="ruby-identifier">cont</span> = <span class="ruby-value str">&quot;&quot;</span>
984
+ 65: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">exist?</span> <span class="ruby-identifier">defpo</span>
985
+ 66: <span class="ruby-node">`#{cmd} --help`</span>
986
+ 67: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">$?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">$?</span>.<span class="ruby-identifier">success?</span>
987
+ 68: <span class="ruby-identifier">raise</span> <span class="ruby-identifier">_</span>(<span class="ruby-value str">&quot;`%{cmd}' may not be found. \nInstall GNU Gettext then set PATH or MSGMERGE_PATH correctly.&quot;</span>) <span class="ruby-operator">%</span> {<span class="ruby-identifier">:cmd</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">cmd</span>}
988
+ 69: <span class="ruby-keyword kw">end</span>
989
+ 70: <span class="ruby-identifier">remove_bom</span>(<span class="ruby-identifier">defpo</span>)
990
+ 71: <span class="ruby-identifier">cont</span> = <span class="ruby-node">`#{cmd} #{defpo} #{refpo}`</span>
991
+ 72: <span class="ruby-keyword kw">else</span>
992
+ 73: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">refpo</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">io</span><span class="ruby-operator">|</span>
993
+ 74: <span class="ruby-identifier">cont</span> = <span class="ruby-identifier">io</span>.<span class="ruby-identifier">read</span>
994
+ 75: <span class="ruby-keyword kw">end</span>
995
+ 76: <span class="ruby-keyword kw">end</span>
996
+ 77: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cont</span>.<span class="ruby-identifier">empty?</span>
997
+ 78: <span class="ruby-identifier">failed_filename</span> = <span class="ruby-identifier">refpo</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;~&quot;</span>
998
+ 79: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">cp</span>(<span class="ruby-identifier">refpo</span>, <span class="ruby-identifier">failed_filename</span>)
999
+ 80: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">_</span>(<span class="ruby-value str">&quot;Failed to merge with %{defpo}&quot;</span>) <span class="ruby-operator">%</span> {<span class="ruby-identifier">:defpo</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">defpo</span>}
1000
+ 81: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">_</span>(<span class="ruby-value str">&quot;New .pot was copied to %{failed_filename}&quot;</span>) <span class="ruby-operator">%</span>{<span class="ruby-identifier">:failed_filename</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">failed_filename</span>}
1001
+ 82: <span class="ruby-identifier">raise</span> <span class="ruby-identifier">_</span>(<span class="ruby-value str">&quot;Check these po/pot-files. It may have syntax errors or something wrong.&quot;</span>)
1002
+ 83: <span class="ruby-keyword kw">else</span>
1003
+ 84: <span class="ruby-identifier">cont</span>.<span class="ruby-identifier">sub!</span>(<span class="ruby-regexp re">/(Project-Id-Version\:).*$/</span>, <span class="ruby-node">&quot;\\1 #{app_version}\\n\&quot;&quot;</span>)
1004
+ 85: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">defpo</span>, <span class="ruby-value str">&quot;w&quot;</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">out</span><span class="ruby-operator">|</span>
1005
+ 86: <span class="ruby-identifier">out</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">cont</span>)
1006
+ 87: <span class="ruby-keyword kw">end</span>
1007
+ 88: <span class="ruby-keyword kw">end</span>
1008
+ 89: <span class="ruby-keyword kw">self</span>
1009
+ 90: <span class="ruby-keyword kw">end</span>
1003
1010
  </pre>
1004
1011
  </div>
1005
1012
  </div>
1006
1013
  </div>
1007
1014
 
1008
- <div id="method-M000107" class="method-detail">
1009
- <a name="M000107"></a>
1015
+ <div id="method-M000108" class="method-detail">
1016
+ <a name="M000108"></a>
1010
1017
 
1011
1018
  <div class="method-heading">
1012
1019
  <span class="method-name">n_</span><span class="method-args">(arg1, arg2, arg3 = nil)</span>
@@ -1014,16 +1021,16 @@ href="GetText.html#M000073">GetText.update_pofiles</a> instead.
1014
1021
 
1015
1022
  <div class="method-description">
1016
1023
  <p>
1017
- Alias for <a href="GetText.html#M000090">ngettext</a>
1024
+ Alias for <a href="GetText.html#M000091">ngettext</a>
1018
1025
  </p>
1019
1026
  </div>
1020
1027
  </div>
1021
1028
 
1022
- <div id="method-M000090" class="method-detail">
1023
- <a name="M000090"></a>
1029
+ <div id="method-M000091" class="method-detail">
1030
+ <a name="M000091"></a>
1024
1031
 
1025
1032
  <div class="method-heading">
1026
- <a href="#M000090" class="method-signature">
1033
+ <a href="#M000091" class="method-signature">
1027
1034
  <span class="method-name">ngettext(msgid, msgid_plural, n)<br />
1028
1035
  ngettext(msgids, n) # msgids = [msgid, msgid_plural]<br />
1029
1036
  n_(msgid, msgid_plural, n)<br />
@@ -1034,8 +1041,8 @@ n_(msgids, n) # msgids = [msgid, msgid_plural]<br />
1034
1041
 
1035
1042
  <div class="method-description">
1036
1043
  <p>
1037
- The <a href="GetText.html#M000090">ngettext</a> is similar to the <a
1038
- href="GetText.html#M000087">gettext</a> function as it finds the message
1044
+ The <a href="GetText.html#M000091">ngettext</a> is similar to the <a
1045
+ href="GetText.html#M000088">gettext</a> function as it finds the message
1039
1046
  catalogs in the same way. But it takes two extra arguments for plural form.
1040
1047
  </p>
1041
1048
  <ul>
@@ -1054,8 +1061,8 @@ plural-rule) or msgid. &quot;plural-rule&quot; is defined in po-file.
1054
1061
  </li>
1055
1062
  </ul>
1056
1063
  <p><a class="source-toggle" href="#"
1057
- onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
1058
- <div class="method-source-code" id="M000090-source">
1064
+ onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
1065
+ <div class="method-source-code" id="M000091-source">
1059
1066
  <pre>
1060
1067
  <span class="ruby-comment cmt"># File lib/gettext.rb, line 340</span>
1061
1068
  340: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ngettext</span>(<span class="ruby-identifier">arg1</span>, <span class="ruby-identifier">arg2</span>, <span class="ruby-identifier">arg3</span> = <span class="ruby-keyword kw">nil</span>)
@@ -1066,11 +1073,25 @@ plural-rule) or msgid. &quot;plural-rule&quot; is defined in po-file.
1066
1073
  </div>
1067
1074
  </div>
1068
1075
 
1069
- <div id="method-M000091" class="method-detail">
1070
- <a name="M000091"></a>
1076
+ <div id="method-M000111" class="method-detail">
1077
+ <a name="M000111"></a>
1071
1078
 
1072
1079
  <div class="method-heading">
1073
- <a href="#M000091" class="method-signature">
1080
+ <span class="method-name">np_</span><span class="method-args">(msgctxt, arg1, arg2 = nil, arg3 = nil)</span>
1081
+ </div>
1082
+
1083
+ <div class="method-description">
1084
+ <p>
1085
+ Alias for <a href="GetText.html#M000092">npgettext</a>
1086
+ </p>
1087
+ </div>
1088
+ </div>
1089
+
1090
+ <div id="method-M000092" class="method-detail">
1091
+ <a name="M000092"></a>
1092
+
1093
+ <div class="method-heading">
1094
+ <a href="#M000092" class="method-signature">
1074
1095
  <span class="method-name">npgettext(msgctxt, msgid, msgid_plural, n)<br />
1075
1096
  npgettext(msgctxt, msgids, n) # msgids = [msgid, msgid_plural]<br />
1076
1097
  np_(msgctxt, msgid, msgid_plural, n)<br />
@@ -1081,8 +1102,8 @@ np_(msgctxt, msgids, n) # msgids = [msgid, msgid_plural]<br />
1081
1102
 
1082
1103
  <div class="method-description">
1083
1104
  <p>
1084
- The <a href="GetText.html#M000091">npgettext</a> is similar to the <a
1085
- href="GetText.html#M000094">nsgettext</a> function.
1105
+ The <a href="GetText.html#M000092">npgettext</a> is similar to the <a
1106
+ href="GetText.html#M000095">nsgettext</a> function.
1086
1107
  </p>
1087
1108
  <pre>
1088
1109
  e.g.) np_(&quot;Special&quot;, &quot;An apple&quot;, &quot;%{num} Apples&quot;, num) == ns_(&quot;Special|An apple&quot;, &quot;%{num} Apples&quot;, num)
@@ -1106,17 +1127,31 @@ plural-rule) or msgid. &quot;plural-rule&quot; is defined in po-file.
1106
1127
  </li>
1107
1128
  </ul>
1108
1129
  <p><a class="source-toggle" href="#"
1109
- onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
1110
- <div class="method-source-code" id="M000091-source">
1130
+ onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
1131
+ <div class="method-source-code" id="M000092-source">
1111
1132
  <pre>
1112
1133
  <span class="ruby-comment cmt"># File lib/gettext.rb, line 358</span>
1113
- 358: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">npgettext</span>(<span class="ruby-identifier">msgctxt</span>, <span class="ruby-identifier">arg1</span>, <span class="ruby-identifier">arg2</span> = <span class="ruby-keyword kw">nil</span>)
1134
+ 358: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">npgettext</span>(<span class="ruby-identifier">msgctxt</span>, <span class="ruby-identifier">arg1</span>, <span class="ruby-identifier">arg2</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">arg3</span> = <span class="ruby-keyword kw">nil</span>)
1114
1135
  359: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg1</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Array</span>)
1115
- 360: <span class="ruby-identifier">nsgettext</span>(<span class="ruby-identifier">msgctxt</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\004&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">arg1</span>[<span class="ruby-value">0</span>], <span class="ruby-identifier">arg1</span>[<span class="ruby-value">1</span>], <span class="ruby-identifier">arg2</span>, <span class="ruby-keyword kw">nil</span>)
1116
- 361: <span class="ruby-keyword kw">else</span>
1117
- 362: <span class="ruby-identifier">nsgettext</span>(<span class="ruby-identifier">msgctxt</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\004&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">arg1</span>, <span class="ruby-identifier">arg2</span>, <span class="ruby-identifier">arg3</span>, <span class="ruby-keyword kw">nil</span>)
1118
- 363: <span class="ruby-keyword kw">end</span>
1119
- 364: <span class="ruby-keyword kw">end</span>
1136
+ 360: <span class="ruby-identifier">msgid</span> = <span class="ruby-identifier">arg1</span>[<span class="ruby-value">0</span>]
1137
+ 361: <span class="ruby-identifier">msgid_ctxt</span> = <span class="ruby-node">&quot;#{msgctxt}\004#{msgid}&quot;</span>
1138
+ 362: <span class="ruby-identifier">msgid_plural</span> = <span class="ruby-identifier">arg1</span>[<span class="ruby-value">1</span>]
1139
+ 363: <span class="ruby-identifier">opt1</span> = <span class="ruby-identifier">arg2</span>
1140
+ 364: <span class="ruby-identifier">opt2</span> = <span class="ruby-identifier">arg3</span>
1141
+ 365: <span class="ruby-keyword kw">else</span>
1142
+ 366: <span class="ruby-identifier">msgid</span> = <span class="ruby-identifier">arg1</span>
1143
+ 367: <span class="ruby-identifier">msgid_ctxt</span> = <span class="ruby-node">&quot;#{msgctxt}\004#{msgid}&quot;</span>
1144
+ 368: <span class="ruby-identifier">msgid_plural</span> = <span class="ruby-identifier">arg2</span>
1145
+ 369: <span class="ruby-identifier">opt1</span> = <span class="ruby-identifier">arg3</span>
1146
+ 370: <span class="ruby-identifier">opt2</span> = <span class="ruby-keyword kw">nil</span>
1147
+ 371: <span class="ruby-keyword kw">end</span>
1148
+ 372: <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">nsgettext</span>(<span class="ruby-identifier">msgid_ctxt</span>, <span class="ruby-identifier">msgid_plural</span>, <span class="ruby-identifier">opt1</span>, <span class="ruby-identifier">opt2</span>)
1149
+ 373:
1150
+ 374: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ret</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">msgid_ctxt</span>
1151
+ 375: <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">msgid</span>
1152
+ 376: <span class="ruby-keyword kw">end</span>
1153
+ 377: <span class="ruby-identifier">ret</span>
1154
+ 378: <span class="ruby-keyword kw">end</span>
1120
1155
  </pre>
1121
1156
  </div>
1122
1157
  </div>
@@ -1131,16 +1166,16 @@ plural-rule) or msgid. &quot;plural-rule&quot; is defined in po-file.
1131
1166
 
1132
1167
  <div class="method-description">
1133
1168
  <p>
1134
- Alias for <a href="GetText.html#M000094">nsgettext</a>
1169
+ Alias for <a href="GetText.html#M000095">nsgettext</a>
1135
1170
  </p>
1136
1171
  </div>
1137
1172
  </div>
1138
1173
 
1139
- <div id="method-M000094" class="method-detail">
1140
- <a name="M000094"></a>
1174
+ <div id="method-M000095" class="method-detail">
1175
+ <a name="M000095"></a>
1141
1176
 
1142
1177
  <div class="method-heading">
1143
- <a href="#M000094" class="method-signature">
1178
+ <a href="#M000095" class="method-signature">
1144
1179
  <span class="method-name">nsgettext(msgid, msgid_plural, n, div = "|")<br />
1145
1180
  nsgettext(msgids, n, div = "|") # msgids = [msgid, msgid_plural]<br />
1146
1181
  n_(msgid, msgid_plural, n, div = "|")<br />
@@ -1151,8 +1186,8 @@ n_(msgids, n, div = "|") # msgids = [msgid, msgid_plural]<br />
1151
1186
 
1152
1187
  <div class="method-description">
1153
1188
  <p>
1154
- The <a href="GetText.html#M000094">nsgettext</a> is similar to the <a
1155
- href="GetText.html#M000090">ngettext</a>. But if there are no localized
1189
+ The <a href="GetText.html#M000095">nsgettext</a> is similar to the <a
1190
+ href="GetText.html#M000091">ngettext</a>. But if there are no localized
1156
1191
  text, it returns a last part of msgid separeted &quot;div&quot;.
1157
1192
  </p>
1158
1193
  <ul>
@@ -1172,112 +1207,112 @@ plural-rule) or msgid. &quot;plural-rule&quot; is defined in po-file.
1172
1207
  </li>
1173
1208
  </ul>
1174
1209
  <p><a class="source-toggle" href="#"
1175
- onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
1176
- <div class="method-source-code" id="M000094-source">
1210
+ onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
1211
+ <div class="method-source-code" id="M000095-source">
1177
1212
  <pre>
1178
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 397</span>
1179
- 397: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nsgettext</span>(<span class="ruby-identifier">arg1</span>, <span class="ruby-identifier">arg2</span>, <span class="ruby-identifier">arg3</span> = <span class="ruby-value str">&quot;|&quot;</span>, <span class="ruby-identifier">arg4</span> = <span class="ruby-value str">&quot;|&quot;</span>)
1180
- 398: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg1</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Array</span>)
1181
- 399: <span class="ruby-identifier">msgid</span> = <span class="ruby-identifier">arg1</span>[<span class="ruby-value">0</span>]
1182
- 400: <span class="ruby-identifier">msgid_plural</span> = <span class="ruby-identifier">arg1</span>[<span class="ruby-value">1</span>]
1183
- 401: <span class="ruby-identifier">n</span> = <span class="ruby-identifier">arg2</span>
1184
- 402: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg3</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">arg3</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>
1185
- 403: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-identifier">_</span>(<span class="ruby-value str">&quot;3rd parmeter is wrong: value = %{number}&quot;</span>) <span class="ruby-operator">%</span> {<span class="ruby-identifier">:number</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">arg3</span>}
1186
- 404: <span class="ruby-keyword kw">end</span>
1187
- 405: <span class="ruby-identifier">div</span> = <span class="ruby-identifier">arg3</span>
1188
- 406: <span class="ruby-keyword kw">else</span>
1189
- 407: <span class="ruby-identifier">msgid</span> = <span class="ruby-identifier">arg1</span>
1190
- 408: <span class="ruby-identifier">msgid_plural</span> = <span class="ruby-identifier">arg2</span>
1191
- 409: <span class="ruby-identifier">n</span> = <span class="ruby-identifier">arg3</span>
1192
- 410: <span class="ruby-identifier">div</span> = <span class="ruby-identifier">arg4</span>
1193
- 411: <span class="ruby-keyword kw">end</span>
1194
- 412:
1195
- 413: <span class="ruby-identifier">cached_key</span> = [<span class="ruby-identifier">bound_target</span>, <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">current</span>, <span class="ruby-identifier">msgid</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\000&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">msgid_plural</span>]
1196
- 414: <span class="ruby-identifier">msgs</span> = <span class="ruby-keyword kw">nil</span>
1197
- 415: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@__cached</span>
1198
- 416: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@__cache_nmsgids</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">cached_key</span>)
1199
- 417: <span class="ruby-identifier">msgs</span> = <span class="ruby-ivar">@@__cache_nmsgids</span>[<span class="ruby-identifier">cached_key</span>] <span class="ruby-comment cmt"># [msgstr, cond_as_string]</span>
1213
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 411</span>
1214
+ 411: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nsgettext</span>(<span class="ruby-identifier">arg1</span>, <span class="ruby-identifier">arg2</span>, <span class="ruby-identifier">arg3</span> = <span class="ruby-value str">&quot;|&quot;</span>, <span class="ruby-identifier">arg4</span> = <span class="ruby-value str">&quot;|&quot;</span>)
1215
+ 412: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg1</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Array</span>)
1216
+ 413: <span class="ruby-identifier">msgid</span> = <span class="ruby-identifier">arg1</span>[<span class="ruby-value">0</span>]
1217
+ 414: <span class="ruby-identifier">msgid_plural</span> = <span class="ruby-identifier">arg1</span>[<span class="ruby-value">1</span>]
1218
+ 415: <span class="ruby-identifier">n</span> = <span class="ruby-identifier">arg2</span>
1219
+ 416: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg3</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">arg3</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>
1220
+ 417: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-identifier">_</span>(<span class="ruby-value str">&quot;3rd parmeter is wrong: value = %{number}&quot;</span>) <span class="ruby-operator">%</span> {<span class="ruby-identifier">:number</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">arg3</span>}
1200
1221
  418: <span class="ruby-keyword kw">end</span>
1201
- 419: <span class="ruby-keyword kw">end</span>
1202
- 420: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">msgs</span>
1203
- 421: <span class="ruby-comment cmt"># Use &quot;for&quot;(not &quot;each&quot;) to support JRuby 1.1.0.</span>
1204
- 422: <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">target</span> <span class="ruby-keyword kw">in</span> <span class="ruby-identifier">bound_targets</span>(<span class="ruby-keyword kw">self</span>)
1205
- 423: <span class="ruby-identifier">manager</span> = <span class="ruby-ivar">@@__textdomainmanagers</span>[<span class="ruby-identifier">target</span>]
1206
- 424: <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">textdomain</span> <span class="ruby-keyword kw">in</span> <span class="ruby-identifier">manager</span>.<span class="ruby-identifier">textdomains</span>
1207
- 425: <span class="ruby-identifier">msgs</span> = <span class="ruby-identifier">textdomain</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">ngettext_data</span>(<span class="ruby-identifier">msgid</span>, <span class="ruby-identifier">msgid_plural</span>)
1208
- 426: <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">msgs</span>
1209
- 427: <span class="ruby-keyword kw">end</span>
1210
- 428: <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">msgs</span>
1211
- 429: <span class="ruby-keyword kw">end</span>
1212
- 430: <span class="ruby-identifier">msgs</span> = [[<span class="ruby-identifier">msgid</span>, <span class="ruby-identifier">msgid_plural</span>], <span class="ruby-value str">&quot;n != 1&quot;</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">msgs</span>
1213
- 431: <span class="ruby-ivar">@@__cache_nmsgids</span>[<span class="ruby-identifier">cached_key</span>] = <span class="ruby-identifier">msgs</span>
1214
- 432: <span class="ruby-keyword kw">end</span>
1215
- 433: <span class="ruby-identifier">msgstrs</span> = <span class="ruby-identifier">msgs</span>[<span class="ruby-value">0</span>]
1216
- 434: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">msgstrs</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">msgid</span>
1217
- 435: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span> = <span class="ruby-identifier">msgstrs</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">rindex</span>(<span class="ruby-identifier">div</span>)
1218
- 436: <span class="ruby-identifier">msgstrs</span>[<span class="ruby-value">0</span>] = <span class="ruby-identifier">msgstrs</span>[<span class="ruby-value">0</span>][(<span class="ruby-identifier">index</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>)<span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
1219
- 437: <span class="ruby-keyword kw">end</span>
1220
- 438: <span class="ruby-keyword kw">end</span>
1221
- 439: <span class="ruby-identifier">plural</span> = <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">msgs</span>[<span class="ruby-value">1</span>])
1222
- 440: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">plural</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Numeric</span>)
1223
- 441: <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">msgstrs</span>[<span class="ruby-identifier">plural</span>]
1224
- 442: <span class="ruby-keyword kw">else</span>
1225
- 443: <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">plural</span> <span class="ruby-value">? </span><span class="ruby-identifier">msgstrs</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">msgstrs</span>[<span class="ruby-value">0</span>]
1226
- 444: <span class="ruby-keyword kw">end</span>
1227
- 445: <span class="ruby-identifier">ret</span>
1228
- 446: <span class="ruby-keyword kw">end</span>
1222
+ 419: <span class="ruby-identifier">div</span> = <span class="ruby-identifier">arg3</span>
1223
+ 420: <span class="ruby-keyword kw">else</span>
1224
+ 421: <span class="ruby-identifier">msgid</span> = <span class="ruby-identifier">arg1</span>
1225
+ 422: <span class="ruby-identifier">msgid_plural</span> = <span class="ruby-identifier">arg2</span>
1226
+ 423: <span class="ruby-identifier">n</span> = <span class="ruby-identifier">arg3</span>
1227
+ 424: <span class="ruby-identifier">div</span> = <span class="ruby-identifier">arg4</span>
1228
+ 425: <span class="ruby-keyword kw">end</span>
1229
+ 426:
1230
+ 427: <span class="ruby-identifier">cached_key</span> = [<span class="ruby-identifier">bound_target</span>, <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">current</span>, <span class="ruby-identifier">msgid</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\000&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">msgid_plural</span>]
1231
+ 428: <span class="ruby-identifier">msgs</span> = <span class="ruby-keyword kw">nil</span>
1232
+ 429: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@__cached</span>
1233
+ 430: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@__cache_nmsgids</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">cached_key</span>)
1234
+ 431: <span class="ruby-identifier">msgs</span> = <span class="ruby-ivar">@@__cache_nmsgids</span>[<span class="ruby-identifier">cached_key</span>] <span class="ruby-comment cmt"># [msgstr, cond_as_string]</span>
1235
+ 432: <span class="ruby-keyword kw">end</span>
1236
+ 433: <span class="ruby-keyword kw">end</span>
1237
+ 434: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">msgs</span>
1238
+ 435: <span class="ruby-comment cmt"># Use &quot;for&quot;(not &quot;each&quot;) to support JRuby 1.1.0.</span>
1239
+ 436: <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">target</span> <span class="ruby-keyword kw">in</span> <span class="ruby-identifier">bound_targets</span>(<span class="ruby-keyword kw">self</span>)
1240
+ 437: <span class="ruby-identifier">manager</span> = <span class="ruby-ivar">@@__textdomainmanagers</span>[<span class="ruby-identifier">target</span>]
1241
+ 438: <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">textdomain</span> <span class="ruby-keyword kw">in</span> <span class="ruby-identifier">manager</span>.<span class="ruby-identifier">textdomains</span>
1242
+ 439: <span class="ruby-identifier">msgs</span> = <span class="ruby-identifier">textdomain</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">ngettext_data</span>(<span class="ruby-identifier">msgid</span>, <span class="ruby-identifier">msgid_plural</span>)
1243
+ 440: <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">msgs</span>
1244
+ 441: <span class="ruby-keyword kw">end</span>
1245
+ 442: <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">msgs</span>
1246
+ 443: <span class="ruby-keyword kw">end</span>
1247
+ 444: <span class="ruby-identifier">msgs</span> = [[<span class="ruby-identifier">msgid</span>, <span class="ruby-identifier">msgid_plural</span>], <span class="ruby-value str">&quot;n != 1&quot;</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">msgs</span>
1248
+ 445: <span class="ruby-ivar">@@__cache_nmsgids</span>[<span class="ruby-identifier">cached_key</span>] = <span class="ruby-identifier">msgs</span>
1249
+ 446: <span class="ruby-keyword kw">end</span>
1250
+ 447: <span class="ruby-identifier">msgstrs</span> = <span class="ruby-identifier">msgs</span>[<span class="ruby-value">0</span>]
1251
+ 448: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">msgstrs</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">msgid</span>
1252
+ 449: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span> = <span class="ruby-identifier">msgstrs</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">rindex</span>(<span class="ruby-identifier">div</span>)
1253
+ 450: <span class="ruby-identifier">msgstrs</span>[<span class="ruby-value">0</span>] = <span class="ruby-identifier">msgstrs</span>[<span class="ruby-value">0</span>][(<span class="ruby-identifier">index</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>)<span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
1254
+ 451: <span class="ruby-keyword kw">end</span>
1255
+ 452: <span class="ruby-keyword kw">end</span>
1256
+ 453: <span class="ruby-identifier">plural</span> = <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">msgs</span>[<span class="ruby-value">1</span>])
1257
+ 454: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">plural</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Numeric</span>)
1258
+ 455: <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">msgstrs</span>[<span class="ruby-identifier">plural</span>]
1259
+ 456: <span class="ruby-keyword kw">else</span>
1260
+ 457: <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">plural</span> <span class="ruby-value">? </span><span class="ruby-identifier">msgstrs</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">msgstrs</span>[<span class="ruby-value">0</span>]
1261
+ 458: <span class="ruby-keyword kw">end</span>
1262
+ 459: <span class="ruby-identifier">ret</span>
1263
+ 460: <span class="ruby-keyword kw">end</span>
1229
1264
  </pre>
1230
1265
  </div>
1231
1266
  </div>
1232
1267
  </div>
1233
1268
 
1234
- <div id="method-M000100" class="method-detail">
1235
- <a name="M000100"></a>
1269
+ <div id="method-M000101" class="method-detail">
1270
+ <a name="M000101"></a>
1236
1271
 
1237
1272
  <div class="method-heading">
1238
- <a href="#M000100" class="method-signature">
1273
+ <a href="#M000101" class="method-signature">
1239
1274
  <span class="method-name">output_charset</span><span class="method-args">()</span>
1240
1275
  </a>
1241
1276
  </div>
1242
1277
 
1243
1278
  <div class="method-description">
1244
1279
  <p>
1245
- Gets the current <a href="GetText.html#M000100">output_charset</a> which is
1246
- set using <a href="GetText.html#M000098">GetText.set_output_charset</a>.
1280
+ Gets the current <a href="GetText.html#M000101">output_charset</a> which is
1281
+ set using <a href="GetText.html#M000099">GetText.set_output_charset</a>.
1247
1282
  </p>
1248
1283
  <ul>
1249
- <li>Returns: <a href="GetText.html#M000100">output_charset</a>.
1284
+ <li>Returns: <a href="GetText.html#M000101">output_charset</a>.
1250
1285
 
1251
1286
  </li>
1252
1287
  </ul>
1253
1288
  <p><a class="source-toggle" href="#"
1254
- onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
1255
- <div class="method-source-code" id="M000100-source">
1289
+ onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
1290
+ <div class="method-source-code" id="M000101-source">
1256
1291
  <pre>
1257
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 537</span>
1258
- 537: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_charset</span>
1259
- 538: <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">charset</span>
1260
- 539: <span class="ruby-keyword kw">end</span>
1292
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 551</span>
1293
+ 551: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_charset</span>
1294
+ 552: <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">charset</span>
1295
+ 553: <span class="ruby-keyword kw">end</span>
1261
1296
  </pre>
1262
1297
  </div>
1263
1298
  </div>
1264
1299
  </div>
1265
1300
 
1266
- <div id="method-M000099" class="method-detail">
1267
- <a name="M000099"></a>
1301
+ <div id="method-M000100" class="method-detail">
1302
+ <a name="M000100"></a>
1268
1303
 
1269
1304
  <div class="method-heading">
1270
- <a href="#M000099" class="method-signature">
1305
+ <a href="#M000100" class="method-signature">
1271
1306
  <span class="method-name">output_charset=</span><span class="method-args">(charset)</span>
1272
1307
  </a>
1273
1308
  </div>
1274
1309
 
1275
1310
  <div class="method-description">
1276
1311
  <p>
1277
- Same as <a href="GetText.html#M000098">GetText.set_output_charset</a>
1312
+ Same as <a href="GetText.html#M000099">GetText.set_output_charset</a>
1278
1313
  </p>
1279
1314
  <ul>
1280
- <li>charset: an <a href="GetText.html#M000100">output_charset</a>
1315
+ <li>charset: an <a href="GetText.html#M000101">output_charset</a>
1281
1316
 
1282
1317
  </li>
1283
1318
  <li>Returns: charset
@@ -1285,20 +1320,20 @@ Same as <a href="GetText.html#M000098">GetText.set_output_charset</a>
1285
1320
  </li>
1286
1321
  </ul>
1287
1322
  <p><a class="source-toggle" href="#"
1288
- onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
1289
- <div class="method-source-code" id="M000099-source">
1323
+ onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
1324
+ <div class="method-source-code" id="M000100-source">
1290
1325
  <pre>
1291
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 531</span>
1292
- 531: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_charset=</span>(<span class="ruby-identifier">charset</span>)
1293
- 532: <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span> = <span class="ruby-identifier">charset</span>
1294
- 533: <span class="ruby-keyword kw">end</span>
1326
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 545</span>
1327
+ 545: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_charset=</span>(<span class="ruby-identifier">charset</span>)
1328
+ 546: <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span> = <span class="ruby-identifier">charset</span>
1329
+ 547: <span class="ruby-keyword kw">end</span>
1295
1330
  </pre>
1296
1331
  </div>
1297
1332
  </div>
1298
1333
  </div>
1299
1334
 
1300
- <div id="method-M000109" class="method-detail">
1301
- <a name="M000109"></a>
1335
+ <div id="method-M000112" class="method-detail">
1336
+ <a name="M000112"></a>
1302
1337
 
1303
1338
  <div class="method-heading">
1304
1339
  <span class="method-name">p_</span><span class="method-args">(msgctxt, msgid)</span>
@@ -1306,16 +1341,16 @@ Same as <a href="GetText.html#M000098">GetText.set_output_charset</a>
1306
1341
 
1307
1342
  <div class="method-description">
1308
1343
  <p>
1309
- Alias for <a href="GetText.html#M000089">pgettext</a>
1344
+ Alias for <a href="GetText.html#M000090">pgettext</a>
1310
1345
  </p>
1311
1346
  </div>
1312
1347
  </div>
1313
1348
 
1314
- <div id="method-M000089" class="method-detail">
1315
- <a name="M000089"></a>
1349
+ <div id="method-M000090" class="method-detail">
1350
+ <a name="M000090"></a>
1316
1351
 
1317
1352
  <div class="method-heading">
1318
- <a href="#M000089" class="method-signature">
1353
+ <a href="#M000090" class="method-signature">
1319
1354
  <span class="method-name">pgettext(msgctxt, msgid)<br />
1320
1355
  p_(msgctxt, msgid)<br />
1321
1356
  </span>
@@ -1325,7 +1360,7 @@ p_(msgctxt, msgid)<br />
1325
1360
  <div class="method-description">
1326
1361
  <p>
1327
1362
  Translates msgid with msgctxt. This methods is similer with <a
1328
- href="GetText.html#M000108">s_</a>().
1363
+ href="GetText.html#M000109">s_</a>().
1329
1364
  </p>
1330
1365
  <pre>
1331
1366
  e.g.) p_(&quot;File&quot;, &quot;New&quot;) == s_(&quot;File|New&quot;)
@@ -1348,8 +1383,8 @@ See: <a
1348
1383
  href="http://www.gnu.org/software/autoconf/manual/gettext/Contexts.html">www.gnu.org/software/autoconf/manual/gettext/Contexts.html</a>
1349
1384
  </p>
1350
1385
  <p><a class="source-toggle" href="#"
1351
- onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
1352
- <div class="method-source-code" id="M000089-source">
1386
+ onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
1387
+ <div class="method-source-code" id="M000090-source">
1353
1388
  <pre>
1354
1389
  <span class="ruby-comment cmt"># File lib/gettext.rb, line 320</span>
1355
1390
  320: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pgettext</span>(<span class="ruby-identifier">msgctxt</span>, <span class="ruby-identifier">msgid</span>)
@@ -1360,11 +1395,11 @@ href="http://www.gnu.org/software/autoconf/manual/gettext/Contexts.html">www.gnu
1360
1395
  </div>
1361
1396
  </div>
1362
1397
 
1363
- <div id="method-M000104" class="method-detail">
1364
- <a name="M000104"></a>
1398
+ <div id="method-M000105" class="method-detail">
1399
+ <a name="M000105"></a>
1365
1400
 
1366
1401
  <div class="method-heading">
1367
- <a href="#M000104" class="method-signature">
1402
+ <a href="#M000105" class="method-signature">
1368
1403
  <span class="method-name">remove_all_textdomains</span><span class="method-args">()</span>
1369
1404
  </a>
1370
1405
  </div>
@@ -1374,24 +1409,24 @@ href="http://www.gnu.org/software/autoconf/manual/gettext/Contexts.html">www.gnu
1374
1409
  for testing.
1375
1410
  </p>
1376
1411
  <p><a class="source-toggle" href="#"
1377
- onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
1378
- <div class="method-source-code" id="M000104-source">
1412
+ onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
1413
+ <div class="method-source-code" id="M000105-source">
1379
1414
  <pre>
1380
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 583</span>
1381
- 583: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_all_textdomains</span>
1382
- 584: <span class="ruby-identifier">clear_cache</span>
1383
- 585: <span class="ruby-ivar">@@__textdomainmanagers</span> = {}
1384
- 586: <span class="ruby-keyword kw">end</span>
1415
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 597</span>
1416
+ 597: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_all_textdomains</span>
1417
+ 598: <span class="ruby-identifier">clear_cache</span>
1418
+ 599: <span class="ruby-ivar">@@__textdomainmanagers</span> = {}
1419
+ 600: <span class="ruby-keyword kw">end</span>
1385
1420
  </pre>
1386
1421
  </div>
1387
1422
  </div>
1388
1423
  </div>
1389
1424
 
1390
- <div id="method-M000074" class="method-detail">
1391
- <a name="M000074"></a>
1425
+ <div id="method-M000075" class="method-detail">
1426
+ <a name="M000075"></a>
1392
1427
 
1393
1428
  <div class="method-heading">
1394
- <a href="#M000074" class="method-signature">
1429
+ <a href="#M000075" class="method-signature">
1395
1430
  <span class="method-name">rgettext</span><span class="method-args">(targetfiles = nil, out = STDOUT)</span>
1396
1431
  </a>
1397
1432
  </div>
@@ -1422,24 +1457,24 @@ configure the config/database.xml correctly before execute this function.
1422
1457
  </li>
1423
1458
  </ul>
1424
1459
  <p><a class="source-toggle" href="#"
1425
- onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
1426
- <div class="method-source-code" id="M000074-source">
1460
+ onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
1461
+ <div class="method-source-code" id="M000075-source">
1427
1462
  <pre>
1428
- <span class="ruby-comment cmt"># File lib/gettext/rgettext.rb, line 264</span>
1429
- 264: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rgettext</span>(<span class="ruby-identifier">targetfiles</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">out</span> = <span class="ruby-constant">STDOUT</span>)
1430
- 265: <span class="ruby-constant">RGetText</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">targetfiles</span>, <span class="ruby-identifier">out</span>)
1431
- 266: <span class="ruby-keyword kw">self</span>
1432
- 267: <span class="ruby-keyword kw">end</span>
1463
+ <span class="ruby-comment cmt"># File lib/gettext/rgettext.rb, line 265</span>
1464
+ 265: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rgettext</span>(<span class="ruby-identifier">targetfiles</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">out</span> = <span class="ruby-constant">STDOUT</span>)
1465
+ 266: <span class="ruby-constant">RGetText</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">targetfiles</span>, <span class="ruby-identifier">out</span>)
1466
+ 267: <span class="ruby-keyword kw">self</span>
1467
+ 268: <span class="ruby-keyword kw">end</span>
1433
1468
  </pre>
1434
1469
  </div>
1435
1470
  </div>
1436
1471
  </div>
1437
1472
 
1438
- <div id="method-M000075" class="method-detail">
1439
- <a name="M000075"></a>
1473
+ <div id="method-M000076" class="method-detail">
1474
+ <a name="M000076"></a>
1440
1475
 
1441
1476
  <div class="method-heading">
1442
- <a href="#M000075" class="method-signature">
1477
+ <a href="#M000076" class="method-signature">
1443
1478
  <span class="method-name">rmsgfmt</span><span class="method-args">(targetfile = nil, output_path = nil)</span>
1444
1479
  </a>
1445
1480
  </div>
@@ -1448,7 +1483,7 @@ configure the config/database.xml correctly before execute this function.
1448
1483
  <p>
1449
1484
  Creates a mo-file from a targetfile(po-file), then output the result to
1450
1485
  out. If no parameter is set, it behaves same as command line tools(<a
1451
- href="GetText.html#M000075">rmsgfmt</a>).
1486
+ href="GetText.html#M000076">rmsgfmt</a>).
1452
1487
  </p>
1453
1488
  <ul>
1454
1489
  <li>targetfile: An Array of po-files or nil.
@@ -1462,8 +1497,8 @@ href="GetText.html#M000075">rmsgfmt</a>).
1462
1497
  </li>
1463
1498
  </ul>
1464
1499
  <p><a class="source-toggle" href="#"
1465
- onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
1466
- <div class="method-source-code" id="M000075-source">
1500
+ onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
1501
+ <div class="method-source-code" id="M000076-source">
1467
1502
  <pre>
1468
1503
  <span class="ruby-comment cmt"># File lib/gettext/rmsgfmt.rb, line 79</span>
1469
1504
  79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rmsgfmt</span>(<span class="ruby-identifier">targetfile</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">output_path</span> = <span class="ruby-keyword kw">nil</span>)
@@ -1474,11 +1509,11 @@ href="GetText.html#M000075">rmsgfmt</a>).
1474
1509
  </div>
1475
1510
  </div>
1476
1511
 
1477
- <div id="method-M000079" class="method-detail">
1478
- <a name="M000079"></a>
1512
+ <div id="method-M000080" class="method-detail">
1513
+ <a name="M000080"></a>
1479
1514
 
1480
1515
  <div class="method-heading">
1481
- <a href="#M000079" class="method-signature">
1516
+ <a href="#M000080" class="method-signature">
1482
1517
  <span class="method-name">rmsgmerge</span><span class="method-args">(reference = nil, definition = nil, out = STDOUT)</span>
1483
1518
  </a>
1484
1519
  </div>
@@ -1488,8 +1523,8 @@ href="GetText.html#M000075">rmsgfmt</a>).
1488
1523
  Experimental
1489
1524
  </p>
1490
1525
  <p><a class="source-toggle" href="#"
1491
- onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
1492
- <div class="method-source-code" id="M000079-source">
1526
+ onclick="toggleCode('M000080-source');return false;">[Source]</a></p>
1527
+ <div class="method-source-code" id="M000080-source">
1493
1528
  <pre>
1494
1529
  <span class="ruby-comment cmt"># File lib/gettext/rmsgmerge.rb, line 489</span>
1495
1530
  489: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rmsgmerge</span>(<span class="ruby-identifier">reference</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">definition</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">out</span> = <span class="ruby-constant">STDOUT</span>)
@@ -1500,8 +1535,8 @@ Experimental
1500
1535
  </div>
1501
1536
  </div>
1502
1537
 
1503
- <div id="method-M000108" class="method-detail">
1504
- <a name="M000108"></a>
1538
+ <div id="method-M000109" class="method-detail">
1539
+ <a name="M000109"></a>
1505
1540
 
1506
1541
  <div class="method-heading">
1507
1542
  <span class="method-name">s_</span><span class="method-args">(msgid, div = '|')</span>
@@ -1509,16 +1544,16 @@ Experimental
1509
1544
 
1510
1545
  <div class="method-description">
1511
1546
  <p>
1512
- Alias for <a href="GetText.html#M000088">sgettext</a>
1547
+ Alias for <a href="GetText.html#M000089">sgettext</a>
1513
1548
  </p>
1514
1549
  </div>
1515
1550
  </div>
1516
1551
 
1517
- <div id="method-M000076" class="method-detail">
1518
- <a name="M000076"></a>
1552
+ <div id="method-M000077" class="method-detail">
1553
+ <a name="M000077"></a>
1519
1554
 
1520
1555
  <div class="method-heading">
1521
- <a href="#M000076" class="method-signature">
1556
+ <a href="#M000077" class="method-signature">
1522
1557
  <span class="method-name">set_cgi</span><span class="method-args">(cgi_)</span>
1523
1558
  </a>
1524
1559
  </div>
@@ -1536,8 +1571,8 @@ Sets a CGI object.
1536
1571
  </li>
1537
1572
  </ul>
1538
1573
  <p><a class="source-toggle" href="#"
1539
- onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
1540
- <div class="method-source-code" id="M000076-source">
1574
+ onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
1575
+ <div class="method-source-code" id="M000077-source">
1541
1576
  <pre>
1542
1577
  <span class="ruby-comment cmt"># File lib/gettext/cgi.rb, line 22</span>
1543
1578
  22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_cgi</span>(<span class="ruby-identifier">cgi_</span>)
@@ -1548,26 +1583,26 @@ Sets a CGI object.
1548
1583
  </div>
1549
1584
  </div>
1550
1585
 
1551
- <div id="method-M000095" class="method-detail">
1552
- <a name="M000095"></a>
1586
+ <div id="method-M000096" class="method-detail">
1587
+ <a name="M000096"></a>
1553
1588
 
1554
1589
  <div class="method-heading">
1555
- <a href="#M000095" class="method-signature">
1590
+ <a href="#M000096" class="method-signature">
1556
1591
  <span class="method-name">set_locale</span><span class="method-args">(locale, this_target_only = false)</span>
1557
1592
  </a>
1558
1593
  </div>
1559
1594
 
1560
1595
  <div class="method-description">
1561
1596
  <p>
1562
- Sets the current <a href="GetText.html#M000101">locale</a> to the current
1597
+ Sets the current <a href="GetText.html#M000102">locale</a> to the current
1563
1598
  class/module
1564
1599
  </p>
1565
1600
  <p>
1566
1601
  Notice that you shouldn&#8216;t use this for your own Libraries.
1567
1602
  </p>
1568
1603
  <ul>
1569
- <li><a href="GetText.html#M000101">locale</a>: a <a
1570
- href="GetText.html#M000101">locale</a> string or <a
1604
+ <li><a href="GetText.html#M000102">locale</a>: a <a
1605
+ href="GetText.html#M000102">locale</a> string or <a
1571
1606
  href="Locale/Object.html">Locale::Object</a>.
1572
1607
 
1573
1608
  </li>
@@ -1576,7 +1611,7 @@ href="Locale/Object.html">Locale::Object</a>.
1576
1611
  </li>
1577
1612
  </ul>
1578
1613
  <p>
1579
- Otherwise, this changes the <a href="GetText.html#M000101">locale</a> of
1614
+ Otherwise, this changes the <a href="GetText.html#M000102">locale</a> of
1580
1615
  the current class/module and its ancestors. Default is false.
1581
1616
  </p>
1582
1617
  <ul>
@@ -1585,63 +1620,63 @@ the current class/module and its ancestors. Default is false.
1585
1620
  </li>
1586
1621
  </ul>
1587
1622
  <p><a class="source-toggle" href="#"
1588
- onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
1589
- <div class="method-source-code" id="M000095-source">
1623
+ onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
1624
+ <div class="method-source-code" id="M000096-source">
1590
1625
  <pre>
1591
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 456</span>
1592
- 456: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_locale</span>(<span class="ruby-identifier">locale</span>, <span class="ruby-identifier">this_target_only</span> = <span class="ruby-keyword kw">false</span>)
1593
- 457: <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">nil</span>
1594
- 458: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">locale</span>
1595
- 459: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>
1596
- 460: <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">locale</span>
1597
- 461: <span class="ruby-keyword kw">else</span>
1598
- 462: <span class="ruby-identifier">ret</span> = <span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">locale</span>.<span class="ruby-identifier">to_s</span>)
1599
- 463: <span class="ruby-keyword kw">end</span>
1600
- 464: <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">charset</span> = <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span>
1601
- 465: <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">ret</span>)
1602
- 466: <span class="ruby-keyword kw">else</span>
1603
- 467: <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">set</span>(<span class="ruby-keyword kw">nil</span>)
1604
- 468: <span class="ruby-identifier">ret</span> = <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">get</span>
1605
- 469: <span class="ruby-keyword kw">end</span>
1606
- 470: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">this_target_only</span>
1607
- 471: <span class="ruby-identifier">manager</span> = <span class="ruby-ivar">@@__textdomainmanagers</span>[<span class="ruby-identifier">bound_target</span>]
1608
- 472: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">manager</span>
1609
- 473: <span class="ruby-identifier">manager</span>.<span class="ruby-identifier">set_locale</span>(<span class="ruby-identifier">ret</span>, <span class="ruby-operator">!</span> <span class="ruby-identifier">cached?</span>)
1610
- 474: <span class="ruby-keyword kw">end</span>
1611
- 475: <span class="ruby-keyword kw">else</span>
1612
- 476: <span class="ruby-identifier">each_textdomain</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">textdomain</span><span class="ruby-operator">|</span>
1613
- 477: <span class="ruby-identifier">textdomain</span>.<span class="ruby-identifier">set_locale</span>(<span class="ruby-identifier">ret</span>, <span class="ruby-operator">!</span> <span class="ruby-identifier">cached?</span>)
1614
- 478: }
1615
- 479: <span class="ruby-keyword kw">end</span>
1616
- 480: <span class="ruby-keyword kw">self</span>
1617
- 481: <span class="ruby-keyword kw">end</span>
1626
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 470</span>
1627
+ 470: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_locale</span>(<span class="ruby-identifier">locale</span>, <span class="ruby-identifier">this_target_only</span> = <span class="ruby-keyword kw">false</span>)
1628
+ 471: <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">nil</span>
1629
+ 472: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">locale</span>
1630
+ 473: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>
1631
+ 474: <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">locale</span>
1632
+ 475: <span class="ruby-keyword kw">else</span>
1633
+ 476: <span class="ruby-identifier">ret</span> = <span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">locale</span>.<span class="ruby-identifier">to_s</span>)
1634
+ 477: <span class="ruby-keyword kw">end</span>
1635
+ 478: <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">charset</span> = <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span>
1636
+ 479: <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">ret</span>)
1637
+ 480: <span class="ruby-keyword kw">else</span>
1638
+ 481: <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">set</span>(<span class="ruby-keyword kw">nil</span>)
1639
+ 482: <span class="ruby-identifier">ret</span> = <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">get</span>
1640
+ 483: <span class="ruby-keyword kw">end</span>
1641
+ 484: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">this_target_only</span>
1642
+ 485: <span class="ruby-identifier">manager</span> = <span class="ruby-ivar">@@__textdomainmanagers</span>[<span class="ruby-identifier">bound_target</span>]
1643
+ 486: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">manager</span>
1644
+ 487: <span class="ruby-identifier">manager</span>.<span class="ruby-identifier">set_locale</span>(<span class="ruby-identifier">ret</span>, <span class="ruby-operator">!</span> <span class="ruby-identifier">cached?</span>)
1645
+ 488: <span class="ruby-keyword kw">end</span>
1646
+ 489: <span class="ruby-keyword kw">else</span>
1647
+ 490: <span class="ruby-identifier">each_textdomain</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">textdomain</span><span class="ruby-operator">|</span>
1648
+ 491: <span class="ruby-identifier">textdomain</span>.<span class="ruby-identifier">set_locale</span>(<span class="ruby-identifier">ret</span>, <span class="ruby-operator">!</span> <span class="ruby-identifier">cached?</span>)
1649
+ 492: }
1650
+ 493: <span class="ruby-keyword kw">end</span>
1651
+ 494: <span class="ruby-keyword kw">self</span>
1652
+ 495: <span class="ruby-keyword kw">end</span>
1618
1653
  </pre>
1619
1654
  </div>
1620
1655
  </div>
1621
1656
  </div>
1622
1657
 
1623
- <div id="method-M000096" class="method-detail">
1624
- <a name="M000096"></a>
1658
+ <div id="method-M000097" class="method-detail">
1659
+ <a name="M000097"></a>
1625
1660
 
1626
1661
  <div class="method-heading">
1627
- <a href="#M000096" class="method-signature">
1662
+ <a href="#M000097" class="method-signature">
1628
1663
  <span class="method-name">set_locale_all</span><span class="method-args">(locale)</span>
1629
1664
  </a>
1630
1665
  </div>
1631
1666
 
1632
1667
  <div class="method-description">
1633
1668
  <p>
1634
- Sets current <a href="GetText.html#M000101">locale</a> to the all
1669
+ Sets current <a href="GetText.html#M000102">locale</a> to the all
1635
1670
  textdomains.
1636
1671
  </p>
1637
1672
  <p>
1638
1673
  Note that you shouldn&#8216;t use this for your own Libraries.
1639
1674
  </p>
1640
1675
  <ul>
1641
- <li><a href="GetText.html#M000101">locale</a>: a <a
1642
- href="GetText.html#M000101">locale</a> string or <a
1676
+ <li><a href="GetText.html#M000102">locale</a>: a <a
1677
+ href="GetText.html#M000102">locale</a> string or <a
1643
1678
  href="Locale/Object.html">Locale::Object</a>, otherwise nil to use default
1644
- <a href="GetText.html#M000101">locale</a>.
1679
+ <a href="GetText.html#M000102">locale</a>.
1645
1680
 
1646
1681
  </li>
1647
1682
  <li>Returns: self
@@ -1649,38 +1684,38 @@ href="Locale/Object.html">Locale::Object</a>, otherwise nil to use default
1649
1684
  </li>
1650
1685
  </ul>
1651
1686
  <p><a class="source-toggle" href="#"
1652
- onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
1653
- <div class="method-source-code" id="M000096-source">
1687
+ onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
1688
+ <div class="method-source-code" id="M000097-source">
1654
1689
  <pre>
1655
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 488</span>
1656
- 488: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_locale_all</span>(<span class="ruby-identifier">locale</span>)
1657
- 489: <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">nil</span>
1658
- 490: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">locale</span>
1659
- 491: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>
1660
- 492: <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">locale</span>
1661
- 493: <span class="ruby-keyword kw">else</span>
1662
- 494: <span class="ruby-identifier">ret</span> = <span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">locale</span>.<span class="ruby-identifier">to_s</span>)
1663
- 495: <span class="ruby-keyword kw">end</span>
1664
- 496: <span class="ruby-keyword kw">else</span>
1665
- 497: <span class="ruby-identifier">ret</span> = <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">default</span>
1666
- 498: <span class="ruby-keyword kw">end</span>
1667
- 499: <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">charset</span> = <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span>
1668
- 500: <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">set_current</span>(<span class="ruby-identifier">ret</span>)
1669
- 501: <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">each_all</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">textdomain</span><span class="ruby-operator">|</span>
1670
- 502: <span class="ruby-identifier">textdomain</span>.<span class="ruby-identifier">set_locale</span>(<span class="ruby-identifier">ret</span>, <span class="ruby-operator">!</span> <span class="ruby-identifier">cached?</span>)
1671
- 503: }
1672
- 504: <span class="ruby-keyword kw">self</span>
1673
- 505: <span class="ruby-keyword kw">end</span>
1690
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 502</span>
1691
+ 502: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_locale_all</span>(<span class="ruby-identifier">locale</span>)
1692
+ 503: <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">nil</span>
1693
+ 504: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">locale</span>
1694
+ 505: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>
1695
+ 506: <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">locale</span>
1696
+ 507: <span class="ruby-keyword kw">else</span>
1697
+ 508: <span class="ruby-identifier">ret</span> = <span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">locale</span>.<span class="ruby-identifier">to_s</span>)
1698
+ 509: <span class="ruby-keyword kw">end</span>
1699
+ 510: <span class="ruby-keyword kw">else</span>
1700
+ 511: <span class="ruby-identifier">ret</span> = <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">default</span>
1701
+ 512: <span class="ruby-keyword kw">end</span>
1702
+ 513: <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">charset</span> = <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span>
1703
+ 514: <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">set_current</span>(<span class="ruby-identifier">ret</span>)
1704
+ 515: <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">each_all</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">textdomain</span><span class="ruby-operator">|</span>
1705
+ 516: <span class="ruby-identifier">textdomain</span>.<span class="ruby-identifier">set_locale</span>(<span class="ruby-identifier">ret</span>, <span class="ruby-operator">!</span> <span class="ruby-identifier">cached?</span>)
1706
+ 517: }
1707
+ 518: <span class="ruby-keyword kw">self</span>
1708
+ 519: <span class="ruby-keyword kw">end</span>
1674
1709
  </pre>
1675
1710
  </div>
1676
1711
  </div>
1677
1712
  </div>
1678
1713
 
1679
- <div id="method-M000098" class="method-detail">
1680
- <a name="M000098"></a>
1714
+ <div id="method-M000099" class="method-detail">
1715
+ <a name="M000099"></a>
1681
1716
 
1682
1717
  <div class="method-heading">
1683
- <a href="#M000098" class="method-signature">
1718
+ <a href="#M000099" class="method-signature">
1684
1719
  <span class="method-name">set_output_charset</span><span class="method-args">(charset)</span>
1685
1720
  </a>
1686
1721
  </div>
@@ -1692,7 +1727,7 @@ Sets charset(<a href="String.html">String</a>) such as &quot;euc-jp&quot;,
1692
1727
  shouldn&#8216;t use this in your own Libraries.
1693
1728
  </p>
1694
1729
  <ul>
1695
- <li>charset: an <a href="GetText.html#M000100">output_charset</a>
1730
+ <li>charset: an <a href="GetText.html#M000101">output_charset</a>
1696
1731
 
1697
1732
  </li>
1698
1733
  <li>Returns: charset
@@ -1700,21 +1735,21 @@ shouldn&#8216;t use this in your own Libraries.
1700
1735
  </li>
1701
1736
  </ul>
1702
1737
  <p><a class="source-toggle" href="#"
1703
- onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
1704
- <div class="method-source-code" id="M000098-source">
1738
+ onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
1739
+ <div class="method-source-code" id="M000099-source">
1705
1740
  <pre>
1706
- <span class="ruby-comment cmt"># File lib/gettext.rb, line 523</span>
1707
- 523: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_output_charset</span>(<span class="ruby-identifier">charset</span>)
1708
- 524: <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span> = <span class="ruby-identifier">charset</span>
1709
- 525: <span class="ruby-keyword kw">self</span>
1710
- 526: <span class="ruby-keyword kw">end</span>
1741
+ <span class="ruby-comment cmt"># File lib/gettext.rb, line 537</span>
1742
+ 537: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_output_charset</span>(<span class="ruby-identifier">charset</span>)
1743
+ 538: <span class="ruby-constant">TextDomainManager</span>.<span class="ruby-identifier">output_charset</span> = <span class="ruby-identifier">charset</span>
1744
+ 539: <span class="ruby-keyword kw">self</span>
1745
+ 540: <span class="ruby-keyword kw">end</span>
1711
1746
  </pre>
1712
1747
  </div>
1713
1748
  </div>
1714
1749
  </div>
1715
1750
 
1716
- <div id="method-M000105" class="method-detail">
1717
- <a name="M000105"></a>
1751
+ <div id="method-M000106" class="method-detail">
1752
+ <a name="M000106"></a>
1718
1753
 
1719
1754
  <div class="method-heading">
1720
1755
  <span class="method-name">setlocale</span><span class="method-args">(locale)</span>
@@ -1722,16 +1757,16 @@ shouldn&#8216;t use this in your own Libraries.
1722
1757
 
1723
1758
  <div class="method-description">
1724
1759
  <p>
1725
- Alias for <a href="GetText.html#M000101">locale</a>=
1760
+ Alias for <a href="GetText.html#M000102">locale</a>=
1726
1761
  </p>
1727
1762
  </div>
1728
1763
  </div>
1729
1764
 
1730
- <div id="method-M000088" class="method-detail">
1731
- <a name="M000088"></a>
1765
+ <div id="method-M000089" class="method-detail">
1766
+ <a name="M000089"></a>
1732
1767
 
1733
1768
  <div class="method-heading">
1734
- <a href="#M000088" class="method-signature">
1769
+ <a href="#M000089" class="method-signature">
1735
1770
  <span class="method-name">sgettext(msgid, div = '|')<br />
1736
1771
  s_(msgid, div = '|')<br />
1737
1772
  </span>
@@ -1760,8 +1795,8 @@ See: <a
1760
1795
  href="http://www.gnu.org/software/gettext/manual/html_mono/gettext.html#SEC151">www.gnu.org/software/gettext/manual/html_mono/gettext.html#SEC151</a>
1761
1796
  </p>
1762
1797
  <p><a class="source-toggle" href="#"
1763
- onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
1764
- <div class="method-source-code" id="M000088-source">
1798
+ onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
1799
+ <div class="method-source-code" id="M000089-source">
1765
1800
  <pre>
1766
1801
  <span class="ruby-comment cmt"># File lib/gettext.rb, line 279</span>
1767
1802
  279: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sgettext</span>(<span class="ruby-identifier">msgid</span>, <span class="ruby-identifier">div</span> = <span class="ruby-value str">'|'</span>)
@@ -1796,27 +1831,27 @@ href="http://www.gnu.org/software/gettext/manual/html_mono/gettext.html#SEC151">
1796
1831
  </div>
1797
1832
  </div>
1798
1833
 
1799
- <div id="method-M000085" class="method-detail">
1800
- <a name="M000085"></a>
1834
+ <div id="method-M000086" class="method-detail">
1835
+ <a name="M000086"></a>
1801
1836
 
1802
1837
  <div class="method-heading">
1803
- <a href="#M000085" class="method-signature">
1838
+ <a href="#M000086" class="method-signature">
1804
1839
  <span class="method-name">textdomain</span><span class="method-args">(domainname)</span>
1805
1840
  </a>
1806
1841
  </div>
1807
1842
 
1808
1843
  <div class="method-description">
1809
1844
  <p>
1810
- Binds a existed <a href="GetText.html#M000085">textdomain</a> to your
1845
+ Binds a existed <a href="GetText.html#M000086">textdomain</a> to your
1811
1846
  program. This is the same function with <a
1812
- href="GetText.html#M000083">GetText.bindtextdomain</a> but simpler(and
1813
- faster) than <a href="GetText.html#M000083">bindtextdomain</a>. Notice that
1814
- you need to call <a href="GetText.html#M000083">GetText.bindtextdomain</a>
1847
+ href="GetText.html#M000084">GetText.bindtextdomain</a> but simpler(and
1848
+ faster) than <a href="GetText.html#M000084">bindtextdomain</a>. Notice that
1849
+ you need to call <a href="GetText.html#M000084">GetText.bindtextdomain</a>
1815
1850
  first. If the domainname hasn&#8216;t bound yet, raises <a
1816
1851
  href="GetText/NoboundTextDomainError.html">GetText::NoboundTextDomainError</a>.
1817
1852
  </p>
1818
1853
  <ul>
1819
- <li>domainname: a <a href="GetText.html#M000085">textdomain</a> name.
1854
+ <li>domainname: a <a href="GetText.html#M000086">textdomain</a> name.
1820
1855
 
1821
1856
  </li>
1822
1857
  <li>Returns: the <a
@@ -1825,8 +1860,8 @@ href="GetText/TextDomainManager.html">GetText::TextDomainManager</a>.
1825
1860
  </li>
1826
1861
  </ul>
1827
1862
  <p><a class="source-toggle" href="#"
1828
- onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
1829
- <div class="method-source-code" id="M000085-source">
1863
+ onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
1864
+ <div class="method-source-code" id="M000086-source">
1830
1865
  <pre>
1831
1866
  <span class="ruby-comment cmt"># File lib/gettext.rb, line 128</span>
1832
1867
  128: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">textdomain</span>(<span class="ruby-identifier">domainname</span>)
@@ -1847,11 +1882,11 @@ href="GetText/TextDomainManager.html">GetText::TextDomainManager</a>.
1847
1882
  </div>
1848
1883
  </div>
1849
1884
 
1850
- <div id="method-M000086" class="method-detail">
1851
- <a name="M000086"></a>
1885
+ <div id="method-M000087" class="method-detail">
1886
+ <a name="M000087"></a>
1852
1887
 
1853
1888
  <div class="method-heading">
1854
- <a href="#M000086" class="method-signature">
1889
+ <a href="#M000087" class="method-signature">
1855
1890
  <span class="method-name">textdomain_to</span><span class="method-args">(klass, domainname)</span>
1856
1891
  </a>
1857
1892
  </div>
@@ -1859,20 +1894,20 @@ href="GetText/TextDomainManager.html">GetText::TextDomainManager</a>.
1859
1894
  <div class="method-description">
1860
1895
  <p>
1861
1896
  Includes <a href="GetText.html">GetText</a> module and bind an exsited <a
1862
- href="GetText.html#M000085">textdomain</a> to a class. See <a
1863
- href="GetText.html#M000085">textdomain</a> for more detail.
1897
+ href="GetText.html#M000086">textdomain</a> to a class. See <a
1898
+ href="GetText.html#M000086">textdomain</a> for more detail.
1864
1899
  </p>
1865
1900
  <ul>
1866
1901
  <li>klass: the target ruby class.
1867
1902
 
1868
1903
  </li>
1869
- <li>domainname: the <a href="GetText.html#M000085">textdomain</a> name.
1904
+ <li>domainname: the <a href="GetText.html#M000086">textdomain</a> name.
1870
1905
 
1871
1906
  </li>
1872
1907
  </ul>
1873
1908
  <p><a class="source-toggle" href="#"
1874
- onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
1875
- <div class="method-source-code" id="M000086-source">
1909
+ onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
1910
+ <div class="method-source-code" id="M000087-source">
1876
1911
  <pre>
1877
1912
  <span class="ruby-comment cmt"># File lib/gettext.rb, line 146</span>
1878
1913
  146: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">textdomain_to</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">domainname</span>)
@@ -1888,11 +1923,11 @@ href="GetText.html#M000085">textdomain</a> for more detail.
1888
1923
  </div>
1889
1924
  </div>
1890
1925
 
1891
- <div id="method-M000073" class="method-detail">
1892
- <a name="M000073"></a>
1926
+ <div id="method-M000074" class="method-detail">
1927
+ <a name="M000074"></a>
1893
1928
 
1894
1929
  <div class="method-heading">
1895
- <a href="#M000073" class="method-signature">
1930
+ <a href="#M000074" class="method-signature">
1896
1931
  <span class="method-name">update_pofiles</span><span class="method-args">(textdomain, files, app_version, po_root = &quot;po&quot;, refpot = &quot;tmp.pot&quot;)</span>
1897
1932
  </a>
1898
1933
  </div>
@@ -1900,13 +1935,13 @@ href="GetText.html#M000085">textdomain</a> for more detail.
1900
1935
  <div class="method-description">
1901
1936
  <p>
1902
1937
  At first, this creates the #{po_root}/#{domainname}.pot file using <a
1903
- href="GetText.html#M000074">GetText.rgettext</a>. Since 2nd time, this
1938
+ href="GetText.html#M000075">GetText.rgettext</a>. Since 2nd time, this
1904
1939
  updates(merges) the #{po_root}/#{domainname}.pot and all of the
1905
1940
  #{po_root}/#{lang}/#{domainname}.po files under &quot;po_root&quot; using
1906
- &quot;<a href="GetText.html#M000071">msgmerge</a>&quot;.
1941
+ &quot;<a href="GetText.html#M000072">msgmerge</a>&quot;.
1907
1942
  </p>
1908
1943
  <p>
1909
- <b>Note</b> &quot;<a href="GetText.html#M000071">msgmerge</a>&quot; tool is
1944
+ <b>Note</b> &quot;<a href="GetText.html#M000072">msgmerge</a>&quot; tool is
1910
1945
  included in GNU <a href="GetText.html">GetText</a>. So you need to install
1911
1946
  GNU <a href="GetText.html">GetText</a>.
1912
1947
  </p>
@@ -1916,11 +1951,11 @@ href="http://www.yotabanana.com/hiki/ruby-gettext-howto-manage.html">www.yotaban
1916
1951
  for more detals.
1917
1952
  </p>
1918
1953
  <ul>
1919
- <li>domainname: the <a href="GetText.html#M000085">textdomain</a> name.
1954
+ <li>domainname: the <a href="GetText.html#M000086">textdomain</a> name.
1920
1955
 
1921
1956
  </li>
1922
1957
  <li>targetfiles: An Array of target files or nil (See <a
1923
- href="GetText.html#M000074">GetText.rgettext</a> for more details).
1958
+ href="GetText.html#M000075">GetText.rgettext</a> for more details).
1924
1959
 
1925
1960
  </li>
1926
1961
  <li>app_version: the application information which appears
@@ -1939,15 +1974,15 @@ be removed).
1939
1974
  (e.g.) GetText.update_pofiles(&quot;myapp&quot;, Dir.glob(&quot;lib/*.rb&quot;), &quot;myapp 1.0.0&quot;)
1940
1975
  </pre>
1941
1976
  <p><a class="source-toggle" href="#"
1942
- onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
1943
- <div class="method-source-code" id="M000073-source">
1977
+ onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
1978
+ <div class="method-source-code" id="M000074-source">
1944
1979
  <pre>
1945
- <span class="ruby-comment cmt"># File lib/gettext/utils.rb, line 131</span>
1946
- 131: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_pofiles</span>(<span class="ruby-identifier">textdomain</span>, <span class="ruby-identifier">files</span>, <span class="ruby-identifier">app_version</span>, <span class="ruby-identifier">po_root</span> = <span class="ruby-value str">&quot;po&quot;</span>, <span class="ruby-identifier">refpot</span> = <span class="ruby-value str">&quot;tmp.pot&quot;</span>)
1947
- 132: <span class="ruby-identifier">rgettext</span>(<span class="ruby-identifier">files</span>, <span class="ruby-identifier">refpot</span>)
1948
- 133: <span class="ruby-identifier">msgmerge_all</span>(<span class="ruby-identifier">textdomain</span>, <span class="ruby-identifier">app_version</span>, <span class="ruby-identifier">po_root</span>, <span class="ruby-identifier">refpot</span>)
1949
- 134: <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">refpot</span>)
1950
- 135: <span class="ruby-keyword kw">end</span>
1980
+ <span class="ruby-comment cmt"># File lib/gettext/utils.rb, line 145</span>
1981
+ 145: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_pofiles</span>(<span class="ruby-identifier">textdomain</span>, <span class="ruby-identifier">files</span>, <span class="ruby-identifier">app_version</span>, <span class="ruby-identifier">po_root</span> = <span class="ruby-value str">&quot;po&quot;</span>, <span class="ruby-identifier">refpot</span> = <span class="ruby-value str">&quot;tmp.pot&quot;</span>)
1982
+ 146: <span class="ruby-identifier">rgettext</span>(<span class="ruby-identifier">files</span>, <span class="ruby-identifier">refpot</span>)
1983
+ 147: <span class="ruby-identifier">msgmerge_all</span>(<span class="ruby-identifier">textdomain</span>, <span class="ruby-identifier">app_version</span>, <span class="ruby-identifier">po_root</span>, <span class="ruby-identifier">refpot</span>)
1984
+ 148: <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">refpot</span>)
1985
+ 149: <span class="ruby-keyword kw">end</span>
1951
1986
  </pre>
1952
1987
  </div>
1953
1988
  </div>