gettext 1.92.0 → 1.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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/po/zh/rgettext.po CHANGED
@@ -1,18 +1,18 @@
1
1
  # translation of rgettext.po to Simplified Chinese
2
- #
2
+ #
3
3
  # a po-file for Ruby-GetText-Package
4
- #
4
+ #
5
5
  # Copyright (C) 2006-2008 Masao Mutoh
6
- #
6
+ #
7
7
  # This file is distributed under the same license as the Ruby-GetText-Package.
8
- #
8
+ #
9
9
  # Yang Bob <bob.yang.dev at gmail.com>, 2006-2008.
10
10
  # Yingfeng <blogyingfeng at gmail.com>, 2006.
11
- #
11
+ #
12
12
  msgid ""
13
13
  msgstr ""
14
14
  "Project-Id-Version: ruby-gettext 1.92.0\n"
15
- "POT-Creation-Date: 2008-07-13 12:12+0900\n"
15
+ "POT-Creation-Date: 2008-09-14 01:48+0900\n"
16
16
  "PO-Revision-Date: 2006-04-15 13:11+0300\n"
17
17
  "Last-Translator: Yang Bob <bob.yang.dev at gmail.com>\n"
18
18
  "Language-Team: Simplified Chinese\n"
@@ -22,15 +22,21 @@ msgstr ""
22
22
  "Plural-Forms: nplurals=1; plural=0;\n"
23
23
  "X-Generator: KBabel 1.9.1\n"
24
24
 
25
- #: lib/gettext/utils.rb:66
25
+ #: lib/gettext/utils.rb:68
26
+ msgid ""
27
+ "`%{cmd}' may not be found. \n"
28
+ "Install GNU Gettext then set PATH or MSGMERGE_PATH correctly."
29
+ msgstr ""
30
+
31
+ #: lib/gettext/utils.rb:80
26
32
  msgid "Failed to merge with %{defpo}"
27
33
  msgstr "不能与 %{defpo} 合并"
28
34
 
29
- #: lib/gettext/utils.rb:67
35
+ #: lib/gettext/utils.rb:81
30
36
  msgid "New .pot was copied to %{failed_filename}"
31
37
  msgstr "新的 .pot 被复制到 %{failed_filename} 去了"
32
38
 
33
- #: lib/gettext/utils.rb:68
39
+ #: lib/gettext/utils.rb:82
34
40
  msgid "Check these po/pot-files. It may have syntax errors or something wrong."
35
41
  msgstr "检查这些 po/pot-文件。它们可能有语法或者其他错误。"
36
42
 
@@ -38,42 +44,42 @@ msgstr "检查这些 po/pot-文件。它们可能有语法或者其他错误。"
38
44
  msgid "'%{klass}' is ignored."
39
45
  msgstr "'%{klass}'被忽略。"
40
46
 
41
- #: lib/gettext/rgettext.rb:183
47
+ #: lib/gettext/rgettext.rb:189
42
48
  msgid "Usage: %s input.rb [-r parser.rb] [-o output.pot]"
43
49
  msgstr "使用方法:%s input.rb [-r parser.rb] [-o output.pot]"
44
50
 
45
- #: lib/gettext/rgettext.rb:185
51
+ #: lib/gettext/rgettext.rb:191
46
52
  msgid "Extract translatable strings from given input files."
47
53
  msgstr "从给定输入文件中提取翻译字符串。"
48
54
 
49
- #: lib/gettext/rgettext.rb:187 lib/gettext/rmsgfmt.rb:51
55
+ #: lib/gettext/rgettext.rb:193 lib/gettext/rmsgfmt.rb:51
50
56
  #: lib/gettext/rmsgmerge.rb:408
51
57
  msgid "Specific options:"
52
58
  msgstr "具体选项:"
53
59
 
54
- #: lib/gettext/rgettext.rb:189 lib/gettext/rmsgfmt.rb:53
60
+ #: lib/gettext/rgettext.rb:195 lib/gettext/rmsgfmt.rb:53
55
61
  #: lib/gettext/rmsgmerge.rb:410
56
62
  msgid "write output to specified file"
57
63
  msgstr "输出到指定文件"
58
64
 
59
- #: lib/gettext/rgettext.rb:193
65
+ #: lib/gettext/rgettext.rb:199
60
66
  msgid "File '%s' already exists."
61
67
  msgstr "文件'%s'已经存在。"
62
68
 
63
- #: lib/gettext/rgettext.rb:198
69
+ #: lib/gettext/rgettext.rb:204
64
70
  msgid "require the library before executing rgettext"
65
71
  msgstr "在执行 rgettext 之前需要一个库"
66
72
 
67
- #: lib/gettext/rgettext.rb:202
73
+ #: lib/gettext/rgettext.rb:208
68
74
  msgid "run in debugging mode"
69
75
  msgstr "运行于调试模式"
70
76
 
71
- #: lib/gettext/rgettext.rb:206 lib/gettext/rmsgfmt.rb:57
77
+ #: lib/gettext/rgettext.rb:212 lib/gettext/rmsgfmt.rb:57
72
78
  #: lib/gettext/rmsgmerge.rb:421
73
79
  msgid "display version information and exit"
74
80
  msgstr "显示版本信息并退出"
75
81
 
76
- #: lib/gettext/rgettext.rb:230 lib/gettext/rmsgfmt.rb:31
82
+ #: lib/gettext/rgettext.rb:236 lib/gettext/rmsgfmt.rb:31
77
83
  msgid "no input files"
78
84
  msgstr "没有输入文件"
79
85
 
@@ -122,18 +128,18 @@ msgstr "'%{file}'被忽略,请先解决依赖关系。"
122
128
  msgid "No database is available."
123
129
  msgstr "没有可用的数据库。"
124
130
 
125
- #: lib/gettext/parser/active_record.rb:138
131
+ #: lib/gettext/parser/active_record.rb:140
126
132
  msgid "rubygems are not found."
127
133
  msgstr "未找到rubygems"
128
134
 
129
- #: lib/gettext.rb:364
135
+ #: lib/gettext.rb:417
130
136
  msgid "3rd parmeter is wrong: value = %{number}"
131
137
  msgstr "第三个参数错误:value = %{number}"
132
138
 
133
- #: src/poparser.ry:26 src/poparser.ry:41
139
+ #: src/poparser.ry:38 src/poparser.ry:55
134
140
  msgid "Warning: fuzzy message was ignored.\n"
135
141
  msgstr "警告:不明确信息(fuzzy message)已被忽略。"
136
142
 
137
- #: src/poparser.ry:129
143
+ #: src/poparser.ry:148
138
144
  msgid "Warning: obsolete msgid exists.\n"
139
145
  msgstr "警告:存在过期的msgid。"
data/po/zh_TW/rails.po CHANGED
@@ -11,7 +11,7 @@
11
11
  msgid ""
12
12
  msgstr ""
13
13
  "Project-Id-Version: ruby-gettext 1.92.0\n"
14
- "POT-Creation-Date: 2008-07-13 12:12+0900\n"
14
+ "POT-Creation-Date: 2008-09-14 01:48+0900\n"
15
15
  "PO-Revision-Date: 2006-08-21 09:27+0800\n"
16
16
  "Last-Translator: Yang Bob <bob.yang.dev at gmail.com>\n"
17
17
  "Language-Team: zh_TW <xmarsh at gmail.com>\n"
@@ -22,65 +22,65 @@ msgstr ""
22
22
  "X-Poedit-Country: TAIWAN\n"
23
23
  "Plural-Forms: nplurals=1; plural=0;\n"
24
24
 
25
- #: lib/gettext/rails.rb:308
25
+ #: lib/gettext/rails.rb:327
26
26
  msgid "%{num} error prohibited this %{record} from being saved"
27
27
  msgid_plural "%{num} errors prohibited this %{record} from being saved"
28
28
  msgstr[0] "有%{num}個錯誤發生,“%{record}”無法儲存"
29
29
 
30
- #: lib/gettext/rails.rb:310
30
+ #: lib/gettext/rails.rb:329
31
31
  msgid "There was a problem with the following field:"
32
32
  msgid_plural "There were problems with the following fields:"
33
33
  msgstr[0] "下面欄位有問題:"
34
34
 
35
- #: lib/gettext/rails.rb:416
35
+ #: lib/gettext/rails.rb:435
36
36
  msgid "less than 5 seconds"
37
37
  msgstr "少於五秒"
38
38
 
39
- #: lib/gettext/rails.rb:416
39
+ #: lib/gettext/rails.rb:435
40
40
  msgid "less than 10 seconds"
41
41
  msgstr "少於十秒"
42
42
 
43
- #: lib/gettext/rails.rb:416
43
+ #: lib/gettext/rails.rb:435
44
44
  msgid "less than 20 seconds"
45
45
  msgstr "少於二十秒"
46
46
 
47
- #: lib/gettext/rails.rb:417
47
+ #: lib/gettext/rails.rb:436
48
48
  msgid "half a minute"
49
49
  msgstr "半分鐘"
50
50
 
51
- #: lib/gettext/rails.rb:417
51
+ #: lib/gettext/rails.rb:436
52
52
  msgid "less than a minute"
53
53
  msgstr "少於一分鐘"
54
54
 
55
- #: lib/gettext/rails.rb:417
55
+ #: lib/gettext/rails.rb:436
56
56
  msgid "about 1 month"
57
57
  msgstr "大約%{num}个月"
58
58
 
59
- #: lib/gettext/rails.rb:418
59
+ #: lib/gettext/rails.rb:437
60
60
  msgid "about 1 year"
61
61
  msgstr "大約%{num}年"
62
62
 
63
- #: lib/gettext/rails.rb:419
63
+ #: lib/gettext/rails.rb:438
64
64
  msgid "1 minute"
65
65
  msgid_plural "%{num} minutes"
66
66
  msgstr[0] "%{num}分鐘"
67
67
 
68
- #: lib/gettext/rails.rb:420
68
+ #: lib/gettext/rails.rb:439
69
69
  msgid "about 1 hour"
70
70
  msgid_plural "about %{num} hours"
71
71
  msgstr[0] "大約%{num}小時"
72
72
 
73
- #: lib/gettext/rails.rb:421
73
+ #: lib/gettext/rails.rb:440
74
74
  msgid "1 day"
75
75
  msgid_plural "%{num} days"
76
76
  msgstr[0] "%{num}天"
77
77
 
78
- #: lib/gettext/rails.rb:422
78
+ #: lib/gettext/rails.rb:441
79
79
  msgid "1 month"
80
80
  msgid_plural "%{num} months"
81
81
  msgstr[0] "%{num}个月"
82
82
 
83
- #: lib/gettext/rails.rb:423
83
+ #: lib/gettext/rails.rb:442
84
84
  msgid "over 1 year"
85
85
  msgid_plural "over %{num} years"
86
86
  msgstr[0] "超过%{num}年"
@@ -89,78 +89,78 @@ msgstr[0] "超过%{num}年"
89
89
  msgid "Validation failed: %{error_messages}"
90
90
  msgstr "校驗失敗:%{error_messages}"
91
91
 
92
- #: lib/gettext/active_record.rb:219
92
+ #: lib/gettext/active_record.rb:247
93
93
  msgid "%{fn} is not included in the list"
94
94
  msgstr "%{fn}沒有包含在列表中"
95
95
 
96
- #: lib/gettext/active_record.rb:220
96
+ #: lib/gettext/active_record.rb:248
97
97
  msgid "%{fn} is reserved"
98
98
  msgstr "%{fn}被保留"
99
99
 
100
- #: lib/gettext/active_record.rb:221
100
+ #: lib/gettext/active_record.rb:249
101
101
  msgid "%{fn} is invalid"
102
102
  msgstr "%{fn}是無效"
103
103
 
104
- #: lib/gettext/active_record.rb:222
104
+ #: lib/gettext/active_record.rb:250
105
105
  msgid "%{fn} doesn't match confirmation"
106
106
  msgstr "%{fn}不符和確認標準"
107
107
 
108
- #: lib/gettext/active_record.rb:223
108
+ #: lib/gettext/active_record.rb:251
109
109
  msgid "%{fn} must be accepted"
110
110
  msgstr "%{fn}必須接受"
111
111
 
112
- #: lib/gettext/active_record.rb:224
112
+ #: lib/gettext/active_record.rb:252
113
113
  msgid "%{fn} can't be empty"
114
114
  msgstr "%{fn}不能是空白"
115
115
 
116
- #: lib/gettext/active_record.rb:225
116
+ #: lib/gettext/active_record.rb:253
117
117
  msgid "%{fn} can't be blank"
118
118
  msgstr "%{fn}不能是空白"
119
119
 
120
- #: lib/gettext/active_record.rb:226
120
+ #: lib/gettext/active_record.rb:254
121
121
  msgid "%{fn} is too long (maximum is %d characters)"
122
122
  msgstr "%{fn}太長 (最長是%d个字)"
123
123
 
124
- #: lib/gettext/active_record.rb:227
124
+ #: lib/gettext/active_record.rb:255
125
125
  msgid "%{fn} is too short (minimum is %d characters)"
126
126
  msgstr "%{fn}太短 (最短是%d个字)"
127
127
 
128
- #: lib/gettext/active_record.rb:228
128
+ #: lib/gettext/active_record.rb:256
129
129
  msgid "%{fn} is the wrong length (should be %d characters)"
130
130
  msgstr "%{fn}字數錯誤 (應該是%d個字)"
131
131
 
132
- #: lib/gettext/active_record.rb:229
132
+ #: lib/gettext/active_record.rb:257
133
133
  msgid "%{fn} has already been taken"
134
134
  msgstr "%{fn}已被使用"
135
135
 
136
- #: lib/gettext/active_record.rb:230
136
+ #: lib/gettext/active_record.rb:258
137
137
  msgid "%{fn} is not a number"
138
138
  msgstr "%{fn}不是數字"
139
139
 
140
- #: lib/gettext/active_record.rb:231
140
+ #: lib/gettext/active_record.rb:259
141
141
  msgid "%{fn} must be greater than %d"
142
142
  msgstr "%{fn}必須大於"
143
143
 
144
- #: lib/gettext/active_record.rb:232
144
+ #: lib/gettext/active_record.rb:260
145
145
  msgid "%{fn} must be greater than or equal to %d"
146
146
  msgstr "%{fn}必須大於等於"
147
147
 
148
- #: lib/gettext/active_record.rb:233
148
+ #: lib/gettext/active_record.rb:261
149
149
  msgid "%{fn} must be equal to %d"
150
150
  msgstr "%{fn}必須等於"
151
151
 
152
- #: lib/gettext/active_record.rb:234
152
+ #: lib/gettext/active_record.rb:262
153
153
  msgid "%{fn} must be less than %d"
154
154
  msgstr "%{fn}必須小於"
155
155
 
156
- #: lib/gettext/active_record.rb:235
156
+ #: lib/gettext/active_record.rb:263
157
157
  msgid "%{fn} must be less than or equal to %d"
158
158
  msgstr "%{fn}必須小於等於"
159
159
 
160
- #: lib/gettext/active_record.rb:236
160
+ #: lib/gettext/active_record.rb:264
161
161
  msgid "%{fn} must be odd"
162
162
  msgstr "%{fn}必須是奇数"
163
163
 
164
- #: lib/gettext/active_record.rb:237
164
+ #: lib/gettext/active_record.rb:265
165
165
  msgid "%{fn} must be even"
166
166
  msgstr "%{fn}必須是偶数"
data/po/zh_TW/rgettext.po CHANGED
@@ -1,16 +1,16 @@
1
- #
1
+ #
2
2
  # a po-file for Ruby-GetText-Package
3
- #
3
+ #
4
4
  # Copyright (C) 2004-2008 Masao Mutoh
5
5
  # This file is distributed under the same license as the Ruby-GetText-Package.
6
- #
6
+ #
7
7
  # Yang Bob <bob.yang.dev at gmail.com>, 2006-2008.
8
8
  # LIN CHUNG-YI <xmarsh at gmail.com>, 2006.
9
- #
9
+ #
10
10
  msgid ""
11
11
  msgstr ""
12
12
  "Project-Id-Version: ruby-gettext 1.92.0\n"
13
- "POT-Creation-Date: 2008-07-13 12:12+0900\n"
13
+ "POT-Creation-Date: 2008-09-14 01:48+0900\n"
14
14
  "PO-Revision-Date: 2006-08-21 09:39+0800\n"
15
15
  "Last-Translator: Yang Bob <bob.yang.dev at gmail.com>\n"
16
16
  "Language-Team: zh_TW <xmarsh at gmail.com>\n"
@@ -21,15 +21,21 @@ msgstr ""
21
21
  "X-Poedit-Language: Chinese\n"
22
22
  "X-Poedit-Country: TAIWAN\n"
23
23
 
24
- #: lib/gettext/utils.rb:66
24
+ #: lib/gettext/utils.rb:68
25
+ msgid ""
26
+ "`%{cmd}' may not be found. \n"
27
+ "Install GNU Gettext then set PATH or MSGMERGE_PATH correctly."
28
+ msgstr ""
29
+
30
+ #: lib/gettext/utils.rb:80
25
31
  msgid "Failed to merge with %{defpo}"
26
32
  msgstr "不能與 %{defpo} 合併"
27
33
 
28
- #: lib/gettext/utils.rb:67
34
+ #: lib/gettext/utils.rb:81
29
35
  msgid "New .pot was copied to %{failed_filename}"
30
36
  msgstr "新的 .pot 被复制為 %{failed_filename} 了"
31
37
 
32
- #: lib/gettext/utils.rb:68
38
+ #: lib/gettext/utils.rb:82
33
39
  msgid "Check these po/pot-files. It may have syntax errors or something wrong."
34
40
  msgstr "檢査这些 po/pot-文件。它们可能有語法或者其他錯誤。"
35
41
 
@@ -37,42 +43,42 @@ msgstr "檢査这些 po/pot-文件。它们可能有語法或者其他錯誤。"
37
43
  msgid "'%{klass}' is ignored."
38
44
  msgstr "'%{klass}' 忽略"
39
45
 
40
- #: lib/gettext/rgettext.rb:183
46
+ #: lib/gettext/rgettext.rb:189
41
47
  msgid "Usage: %s input.rb [-r parser.rb] [-o output.pot]"
42
48
  msgstr "使用: %s input.rb [-r parser.rb] [-o output.pot]"
43
49
 
44
- #: lib/gettext/rgettext.rb:185
50
+ #: lib/gettext/rgettext.rb:191
45
51
  msgid "Extract translatable strings from given input files."
46
52
  msgstr "從輸入檔中取出翻譯字串"
47
53
 
48
- #: lib/gettext/rgettext.rb:187 lib/gettext/rmsgfmt.rb:51
54
+ #: lib/gettext/rgettext.rb:193 lib/gettext/rmsgfmt.rb:51
49
55
  #: lib/gettext/rmsgmerge.rb:408
50
56
  msgid "Specific options:"
51
57
  msgstr "特殊選項:"
52
58
 
53
- #: lib/gettext/rgettext.rb:189 lib/gettext/rmsgfmt.rb:53
59
+ #: lib/gettext/rgettext.rb:195 lib/gettext/rmsgfmt.rb:53
54
60
  #: lib/gettext/rmsgmerge.rb:410
55
61
  msgid "write output to specified file"
56
62
  msgstr "輸出到指定檔案"
57
63
 
58
- #: lib/gettext/rgettext.rb:193
64
+ #: lib/gettext/rgettext.rb:199
59
65
  msgid "File '%s' already exists."
60
66
  msgstr "檔案 '%s' 已經存在"
61
67
 
62
- #: lib/gettext/rgettext.rb:198
68
+ #: lib/gettext/rgettext.rb:204
63
69
  msgid "require the library before executing rgettext"
64
70
  msgstr "在執行 rgettext 之前需要一個庫"
65
71
 
66
- #: lib/gettext/rgettext.rb:202
72
+ #: lib/gettext/rgettext.rb:208
67
73
  msgid "run in debugging mode"
68
74
  msgstr "執行除錯模式"
69
75
 
70
- #: lib/gettext/rgettext.rb:206 lib/gettext/rmsgfmt.rb:57
76
+ #: lib/gettext/rgettext.rb:212 lib/gettext/rmsgfmt.rb:57
71
77
  #: lib/gettext/rmsgmerge.rb:421
72
78
  msgid "display version information and exit"
73
79
  msgstr "秀出版本資訊後退出"
74
80
 
75
- #: lib/gettext/rgettext.rb:230 lib/gettext/rmsgfmt.rb:31
81
+ #: lib/gettext/rgettext.rb:236 lib/gettext/rmsgfmt.rb:31
76
82
  msgid "no input files"
77
83
  msgstr "無輸入檔"
78
84
 
@@ -121,18 +127,18 @@ msgstr "忽略檔案 '%{file}'. 先解決相依問題。"
121
127
  msgid "No database is available."
122
128
  msgstr "無資料庫可用"
123
129
 
124
- #: lib/gettext/parser/active_record.rb:138
130
+ #: lib/gettext/parser/active_record.rb:140
125
131
  msgid "rubygems are not found."
126
132
  msgstr "找不到 rubygems"
127
133
 
128
- #: lib/gettext.rb:364
134
+ #: lib/gettext.rb:417
129
135
  msgid "3rd parmeter is wrong: value = %{number}"
130
136
  msgstr "第三个参数錯誤:value = %{number}"
131
137
 
132
- #: src/poparser.ry:26 src/poparser.ry:41
138
+ #: src/poparser.ry:38 src/poparser.ry:55
133
139
  msgid "Warning: fuzzy message was ignored.\n"
134
140
  msgstr "警告: fuzzy 訊息被忽略\n"
135
141
 
136
- #: src/poparser.ry:129
142
+ #: src/poparser.ry:148
137
143
  msgid "Warning: obsolete msgid exists.\n"
138
144
  msgstr "警告: 存在過時的 msgid.\n"