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
@@ -9,7 +9,7 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: gettext_plugin 1.2.0\n"
12
- "POT-Creation-Date: 2006-05-31 02:06+0900\n"
12
+ "POT-Creation-Date: 2008-09-15 00:40+0900\n"
13
13
  "PO-Revision-Date: 2005-12-17 10:12-0300\n"
14
14
  "Last-Translator: Joao Pedrosa <joaopedrosa@gmail.com>\n"
15
15
  "Language-Team: Portuguese(Brazil)\n"
@@ -18,10 +18,10 @@ msgstr ""
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
20
 
21
- #: lib/gettext_plugin.rb:18
21
+ #: lib/gettext_plugin.rb:16
22
22
  msgid "Select locale"
23
23
  msgstr "Selecione o 'locale'"
24
24
 
25
- #: lib/gettext_plugin.rb:30
25
+ #: lib/gettext_plugin.rb:29
26
26
  msgid "Cookie &quot;lang&quot; is set: %s"
27
27
  msgstr "Cookie &quot;lang&quot; está configurado: %s"
@@ -7,7 +7,7 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: gettext_plugin 1.2.0\n"
10
- "POT-Creation-Date: 2006-05-31 02:06+0900\n"
10
+ "POT-Creation-Date: 2008-09-15 00:40+0900\n"
11
11
  "PO-Revision-Date: 2006-04-17 20:09+0300\n"
12
12
  "Last-Translator: Yuri Kozlov <kozlov.y@gmail.com>\n"
13
13
  "Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
@@ -16,10 +16,10 @@ msgstr ""
16
16
  "Content-Transfer-Encoding: 8bit\n"
17
17
  "X-Generator: KBabel 1.9.1\n"
18
18
 
19
- #: lib/gettext_plugin.rb:18
19
+ #: lib/gettext_plugin.rb:16
20
20
  msgid "Select locale"
21
21
  msgstr "Выбор локали"
22
22
 
23
- #: lib/gettext_plugin.rb:30
23
+ #: lib/gettext_plugin.rb:29
24
24
  msgid "Cookie &quot;lang&quot; is set: %s"
25
25
  msgstr "Для куки &quot;lang&quot; установлено значение: %s"
@@ -9,7 +9,7 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: gettext_plugin 1.2.0\n"
12
- "POT-Creation-Date: 2006-05-31 02:06+0900\n"
12
+ "POT-Creation-Date: 2008-09-15 00:40+0900\n"
13
13
  "PO-Revision-Date: 2008-06-05 23:02+0200\n"
14
14
  "Last-Translator: Slobodan Paunović <slobodan.paunovic at gmail.com>\n"
15
15
  "Language-Team: Serbian\n"
@@ -19,10 +19,10 @@ msgstr ""
19
19
  "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
20
20
  "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
21
21
 
22
- #: lib/gettext_plugin.rb:18
22
+ #: lib/gettext_plugin.rb:16
23
23
  msgid "Select locale"
24
24
  msgstr "Изаберите језик"
25
25
 
26
- #: lib/gettext_plugin.rb:30
27
- msgid "Куки &quot;lang&quot; is set: %s"
26
+ #: lib/gettext_plugin.rb:29
27
+ msgid "Cookie &quot;lang&quot; is set: %s"
28
28
  msgstr "Куки &quot;lang&quot; је подешен: %s"
@@ -9,7 +9,7 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: gettext_plugin 1.2.0\n"
12
- "POT-Creation-Date: 2006-05-31 02:06+0900\n"
12
+ "POT-Creation-Date: 2008-09-15 00:40+0900\n"
13
13
  "PO-Revision-Date: 2007-12-23 13:59+0200\n"
14
14
  "Last-Translator: Alex Rootoff <rootoff at pisem.net>\n"
15
15
  "Language-Team: Ukrainian\n"
@@ -21,10 +21,10 @@ msgstr ""
21
21
  "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
22
22
  "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
23
23
 
24
- #: lib/gettext_plugin.rb:18
24
+ #: lib/gettext_plugin.rb:16
25
25
  msgid "Select locale"
26
26
  msgstr "Оберіть локаль"
27
27
 
28
- #: lib/gettext_plugin.rb:30
28
+ #: lib/gettext_plugin.rb:29
29
29
  msgid "Cookie &quot;lang&quot; is set: %s"
30
30
  msgstr "Cookie &quot;lang&quot; встановлено: %s"
@@ -9,7 +9,7 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: gettext_plugin 1.2.0\n"
12
- "POT-Creation-Date: 2006-05-31 02:06+0900\n"
12
+ "POT-Creation-Date: 2008-09-15 00:40+0900\n"
13
13
  "PO-Revision-Date: 2007-03-21 10:13+0900\n"
14
14
  "Last-Translator: Ngoc DAO Thanh <ngocdaothanh at gmail.com>\n"
15
15
  "Language-Team: Vietnamese\n"
@@ -18,11 +18,10 @@ msgstr ""
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
20
 
21
- #: lib/gettext_plugin.rb:18
21
+ #: lib/gettext_plugin.rb:16
22
22
  msgid "Select locale"
23
23
  msgstr "Chọn ngôn ngữ"
24
24
 
25
- #: lib/gettext_plugin.rb:30
25
+ #: lib/gettext_plugin.rb:29
26
26
  msgid "Cookie &quot;lang&quot; is set: %s"
27
27
  msgstr "Cookie &quot;lang&quot; được đặt là: %s"
28
-
@@ -9,7 +9,7 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: gettext_plugin 1.2.0\n"
12
- "POT-Creation-Date: 2006-05-31 02:06+0900\n"
12
+ "POT-Creation-Date: 2008-09-15 00:40+0900\n"
13
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
14
  "Last-Translator: Yingfeng <blogyingfeng at gmail.com>\n"
15
15
  "Language-Team: Simplified Chinese\n"
@@ -18,10 +18,10 @@ msgstr ""
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Plural-Forms: nplurals=1; plural=0;\n"
20
20
 
21
- #: lib/gettext_plugin.rb:18
21
+ #: lib/gettext_plugin.rb:16
22
22
  msgid "Select locale"
23
23
  msgstr "选择国家"
24
24
 
25
- #: lib/gettext_plugin.rb:30
25
+ #: lib/gettext_plugin.rb:29
26
26
  msgid "Cookie &quot;lang&quot; is set: %s"
27
27
  msgstr "Cookie &quot;语言&quot;设置为:%s"
@@ -9,7 +9,7 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: gettext_plugin 1.2.0\n"
12
- "POT-Creation-Date: 2006-05-31 02:06+0900\n"
12
+ "POT-Creation-Date: 2008-09-15 00:40+0900\n"
13
13
  "PO-Revision-Date: 2006-08-18 14:43+0800\n"
14
14
  "Last-Translator: LIN CHUNG-YI <xmarsh at gmail.com>\n"
15
15
  "Language-Team: zh_TW <xmarsh at gmail.com>\n"
@@ -20,11 +20,10 @@ msgstr ""
20
20
  "X-Poedit-Language: Chinese\n"
21
21
  "X-Poedit-Country: TAIWAN\n"
22
22
 
23
- #: lib/gettext_plugin.rb:18
23
+ #: lib/gettext_plugin.rb:16
24
24
  msgid "Select locale"
25
25
  msgstr "選擇字集"
26
26
 
27
- #: lib/gettext_plugin.rb:30
27
+ #: lib/gettext_plugin.rb:29
28
28
  msgid "Cookie &quot;lang&quot; is set: %s"
29
29
  msgstr "Cookie &quot;lang&quot; 已被設定 : %s"
30
-
@@ -7,7 +7,7 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: active_record 1.0.0\n"
10
- "POT-Creation-Date: 2008-07-19 13:45+0900\n"
10
+ "POT-Creation-Date: 2008-08-03 02:19+0900\n"
11
11
  "PO-Revision-Date: 2006-08-09 01:51+0900\n"
12
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -316,65 +316,78 @@ msgstr ""
316
316
  msgid "option %{val} is restricted"
317
317
  msgstr ""
318
318
 
319
- #: test_active_record.rb:1124 test_active_record.rb:1160
319
+ #: test_active_record.rb:1136 test_active_record.rb:1172
320
320
  msgid "my string(%{fn}) is too short: %d"
321
321
  msgstr ""
322
322
 
323
- #: test_active_record.rb:1124 test_active_record.rb:1160
323
+ #: test_active_record.rb:1136 test_active_record.rb:1172
324
324
  msgid "my string(%{fn}) is too long: %d"
325
325
  msgstr ""
326
326
 
327
- #: test_active_record.rb:1142 test_active_record.rb:1186
327
+ #: test_active_record.rb:1154 test_active_record.rb:1198
328
328
  msgid "my string is too short: %d"
329
329
  msgstr ""
330
330
 
331
- #: test_active_record.rb:1142 test_active_record.rb:1186
331
+ #: test_active_record.rb:1154 test_active_record.rb:1198
332
332
  msgid "my string is too long: %d"
333
333
  msgstr ""
334
334
 
335
- #: test_active_record.rb:1237
335
+ #: test_active_record.rb:1257
336
336
  msgid "%{fn} %d dayo"
337
337
  msgstr ""
338
338
 
339
- #: test_active_record.rb:1254
339
+ #: test_active_record.rb:1274
340
340
  msgid "%d dayo"
341
341
  msgstr ""
342
342
 
343
- #: test_active_record.rb:1271 test_active_record.rb:1305
344
- #: test_active_record.rb:1341 test_active_record.rb:1376
345
- #: test_active_record.rb:1412 test_active_record.rb:1949
346
- #: test_active_record.rb:1985 test_active_record.rb:2024
343
+ #: test_active_record.rb:1300 test_active_record.rb:1334
344
+ #: test_active_record.rb:1370 test_active_record.rb:1405
345
+ #: test_active_record.rb:1441 test_active_record.rb:2016
346
+ #: test_active_record.rb:2054 test_active_record.rb:2117
347
+ #: test_active_record.rb:2157 test_active_record.rb:2183
348
+ #: test_active_record.rb:2241 test_active_record.rb:2280
347
349
  msgid "%{fn} hoo %d"
348
350
  msgstr ""
349
351
 
350
- #: test_active_record.rb:1288 test_active_record.rb:1323
351
- #: test_active_record.rb:1359 test_active_record.rb:1394
352
- #: test_active_record.rb:1429 test_active_record.rb:1446
353
- #: test_active_record.rb:1463 test_active_record.rb:1967
354
- #: test_active_record.rb:2004 test_active_record.rb:2044
352
+ #: test_active_record.rb:1317 test_active_record.rb:1352
353
+ #: test_active_record.rb:1388 test_active_record.rb:1423
354
+ #: test_active_record.rb:1458 test_active_record.rb:1475
355
+ #: test_active_record.rb:1492 test_active_record.rb:2035
356
+ #: test_active_record.rb:2073 test_active_record.rb:2098
357
+ #: test_active_record.rb:2137 test_active_record.rb:2203
358
+ #: test_active_record.rb:2223 test_active_record.rb:2260
359
+ #: test_active_record.rb:2300
355
360
  msgid "hoo %d"
356
361
  msgstr ""
357
362
 
358
- #: test_active_record.rb:1480
363
+ #: test_active_record.rb:1532
359
364
  msgid "%{fn} will never be valid"
360
365
  msgstr ""
361
366
 
362
- #: test_active_record.rb:1497
367
+ #: test_active_record.rb:1549
363
368
  msgid "will never be valid"
364
369
  msgstr ""
365
370
 
366
- #: test_active_record.rb:1514 test_active_record.rb:1560
367
- #: test_active_record.rb:1643 test_active_record.rb:1689
368
- #: test_active_record.rb:1728 test_active_record.rb:1766
369
- #: test_active_record.rb:1811 test_active_record.rb:1847
370
- #: test_active_record.rb:1894
371
+ #: test_active_record.rb:1573 test_active_record.rb:1619
372
+ #: test_active_record.rb:1702 test_active_record.rb:1748
373
+ #: test_active_record.rb:1787 test_active_record.rb:1825
374
+ #: test_active_record.rb:1870 test_active_record.rb:1906
375
+ #: test_active_record.rb:1953
371
376
  msgid "%{fn} contains 'single' and \"double\" quotes"
372
377
  msgstr ""
373
378
 
374
- #: test_active_record.rb:1537 test_active_record.rb:1585
375
- #: test_active_record.rb:1666 test_active_record.rb:1712
376
- #: test_active_record.rb:1750 test_active_record.rb:1788
377
- #: test_active_record.rb:1834 test_active_record.rb:1871
378
- #: test_active_record.rb:1925
379
+ #: test_active_record.rb:1596 test_active_record.rb:1644
380
+ #: test_active_record.rb:1725 test_active_record.rb:1771
381
+ #: test_active_record.rb:1809 test_active_record.rb:1847
382
+ #: test_active_record.rb:1893 test_active_record.rb:1930
383
+ #: test_active_record.rb:1984
379
384
  msgid "This string contains 'single' and \"double\" quotes"
380
385
  msgstr ""
386
+
387
+ #: test_active_record.rb:2558
388
+ msgid "smaller than %d"
389
+ msgstr ""
390
+
391
+ #: test_active_record.rb:2565
392
+ msgid "greater than %d"
393
+ msgstr ""
@@ -6,7 +6,7 @@
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: active_record 1.0.0\n"
9
- "POT-Creation-Date: 2008-07-19 13:45+0900\n"
9
+ "POT-Creation-Date: 2008-08-03 02:19+0900\n"
10
10
  "PO-Revision-Date: 2006-08-09 02:17+0900\n"
11
11
  "Last-Translator: Masao Mutoh <mutoh@highway.ne.jp>\n"
12
12
  "Language-Team: Japanese\n"
@@ -315,65 +315,78 @@ msgstr "オプション%{fn}%{val}は制限されています。"
315
315
  msgid "option %{val} is restricted"
316
316
  msgstr "オプション%{val}は制限されています。"
317
317
 
318
- #: test_active_record.rb:1124 test_active_record.rb:1160
318
+ #: test_active_record.rb:1136 test_active_record.rb:1172
319
319
  msgid "my string(%{fn}) is too short: %d"
320
320
  msgstr "文字列:%{fn}は短すぎ: %d"
321
321
 
322
- #: test_active_record.rb:1124 test_active_record.rb:1160
322
+ #: test_active_record.rb:1136 test_active_record.rb:1172
323
323
  msgid "my string(%{fn}) is too long: %d"
324
324
  msgstr "文字列:%{fn}は長すぎ: %d"
325
325
 
326
- #: test_active_record.rb:1142 test_active_record.rb:1186
326
+ #: test_active_record.rb:1154 test_active_record.rb:1198
327
327
  msgid "my string is too short: %d"
328
328
  msgstr "文字列は短すぎ: %d"
329
329
 
330
- #: test_active_record.rb:1142 test_active_record.rb:1186
330
+ #: test_active_record.rb:1154 test_active_record.rb:1198
331
331
  msgid "my string is too long: %d"
332
332
  msgstr "文字列は長すぎ: %d"
333
333
 
334
- #: test_active_record.rb:1237
334
+ #: test_active_record.rb:1257
335
335
  msgid "%{fn} %d dayo"
336
336
  msgstr "%{fn}は%d以上だよ。"
337
337
 
338
- #: test_active_record.rb:1254
338
+ #: test_active_record.rb:1274
339
339
  msgid "%d dayo"
340
340
  msgstr "は%d以上だよ。"
341
341
 
342
- #: test_active_record.rb:1271 test_active_record.rb:1305
343
- #: test_active_record.rb:1341 test_active_record.rb:1376
344
- #: test_active_record.rb:1412 test_active_record.rb:1949
345
- #: test_active_record.rb:1985 test_active_record.rb:2024
342
+ #: test_active_record.rb:1300 test_active_record.rb:1334
343
+ #: test_active_record.rb:1370 test_active_record.rb:1405
344
+ #: test_active_record.rb:1441 test_active_record.rb:2016
345
+ #: test_active_record.rb:2054 test_active_record.rb:2117
346
+ #: test_active_record.rb:2157 test_active_record.rb:2183
347
+ #: test_active_record.rb:2241 test_active_record.rb:2280
346
348
  msgid "%{fn} hoo %d"
347
349
  msgstr "%{fn}ふー%d"
348
350
 
349
- #: test_active_record.rb:1288 test_active_record.rb:1323
350
- #: test_active_record.rb:1359 test_active_record.rb:1394
351
- #: test_active_record.rb:1429 test_active_record.rb:1446
352
- #: test_active_record.rb:1463 test_active_record.rb:1967
353
- #: test_active_record.rb:2004 test_active_record.rb:2044
351
+ #: test_active_record.rb:1317 test_active_record.rb:1352
352
+ #: test_active_record.rb:1388 test_active_record.rb:1423
353
+ #: test_active_record.rb:1458 test_active_record.rb:1475
354
+ #: test_active_record.rb:1492 test_active_record.rb:2035
355
+ #: test_active_record.rb:2073 test_active_record.rb:2098
356
+ #: test_active_record.rb:2137 test_active_record.rb:2203
357
+ #: test_active_record.rb:2223 test_active_record.rb:2260
358
+ #: test_active_record.rb:2300
354
359
  msgid "hoo %d"
355
360
  msgstr "ふー%d"
356
361
 
357
- #: test_active_record.rb:1480
362
+ #: test_active_record.rb:1532
358
363
  msgid "%{fn} will never be valid"
359
364
  msgstr "%{fn}は決して正しくならないでしょう。"
360
365
 
361
- #: test_active_record.rb:1497
366
+ #: test_active_record.rb:1549
362
367
  msgid "will never be valid"
363
368
  msgstr "は決して正しくならないでしょう。"
364
369
 
365
- #: test_active_record.rb:1514 test_active_record.rb:1560
366
- #: test_active_record.rb:1643 test_active_record.rb:1689
367
- #: test_active_record.rb:1728 test_active_record.rb:1766
368
- #: test_active_record.rb:1811 test_active_record.rb:1847
369
- #: test_active_record.rb:1894
370
+ #: test_active_record.rb:1573 test_active_record.rb:1619
371
+ #: test_active_record.rb:1702 test_active_record.rb:1748
372
+ #: test_active_record.rb:1787 test_active_record.rb:1825
373
+ #: test_active_record.rb:1870 test_active_record.rb:1906
374
+ #: test_active_record.rb:1953
370
375
  msgid "%{fn} contains 'single' and \"double\" quotes"
371
376
  msgstr "%{fn}は'シングル' \"ダブル\"クオートを含む。"
372
377
 
373
- #: test_active_record.rb:1537 test_active_record.rb:1585
374
- #: test_active_record.rb:1666 test_active_record.rb:1712
375
- #: test_active_record.rb:1750 test_active_record.rb:1788
376
- #: test_active_record.rb:1834 test_active_record.rb:1871
377
- #: test_active_record.rb:1925
378
+ #: test_active_record.rb:1596 test_active_record.rb:1644
379
+ #: test_active_record.rb:1725 test_active_record.rb:1771
380
+ #: test_active_record.rb:1809 test_active_record.rb:1847
381
+ #: test_active_record.rb:1893 test_active_record.rb:1930
382
+ #: test_active_record.rb:1984
378
383
  msgid "This string contains 'single' and \"double\" quotes"
379
384
  msgstr "この文字列は'シングル' \"ダブル\"クオートを含む。"
385
+
386
+ #: test_active_record.rb:2558
387
+ msgid "smaller than %d"
388
+ msgstr ""
389
+
390
+ #: test_active_record.rb:2565
391
+ msgid "greater than %d"
392
+ msgstr ""
@@ -0,0 +1,46 @@
1
+ # Japanese translations for PACKAGE package
2
+ # PACKAGE パッケージに対する英訳.
3
+ # Copyright (C) 2008 THE PACKAGE'S COPYRIGHT HOLDER
4
+ # This file is distributed under the same license as the PACKAGE package.
5
+ # Masao Mutoh <mutoh@highway.ne.jp>, 2008.
6
+ #
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "POT-Creation-Date: 2008-08-06 02:36+0900\n"
11
+ "PO-Revision-Date: 2008-08-06 02:36+0900\n"
12
+ "Last-Translator: Masao Mutoh <mutoh@highway.ne.jp>\n"
13
+ "Language-Team: Japanese\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ #: testlib/npgettext.rb:10 testlib/npgettext.rb:11 testlib/npgettext.rb:15
20
+ #: testlib/npgettext.rb:16
21
+ msgctxt "Magazine"
22
+ msgid "a book"
23
+ msgid_plural "%{num} books"
24
+ msgstr[0] "一つの本"
25
+ msgstr[1] "%{num}の本たち"
26
+
27
+ #: testlib/npgettext.rb:20 testlib/npgettext.rb:21
28
+ msgctxt "Hardcover"
29
+ msgid "a book"
30
+ msgid_plural "%{num} books"
31
+ msgstr[0] "一つのハードカバー本"
32
+ msgstr[1] "%{num}のハードカバー本たち"
33
+
34
+ #: testlib/npgettext.rb:25 testlib/npgettext.rb:26
35
+ msgctxt "Magaine"
36
+ msgid "I have a magazine"
37
+ msgid_plural "I have %{num} magazines"
38
+ msgstr[0] "マガジンを1冊持ってます。"
39
+ msgstr[0] "マガジンたちを%{num}冊持ってます。"
40
+
41
+ #: testlib/npgettext.rb:30 testlib/npgettext.rb:31
42
+ msgctxt "Hardcover"
43
+ msgid "a picture"
44
+ msgid_plural "%{num} pictures"
45
+ msgstr[0] ""
46
+ msgstr[1] ""
data/test/test_gettext.rb CHANGED
@@ -11,6 +11,7 @@ require 'testlib/gettext.rb'
11
11
  require 'testlib/sgettext.rb'
12
12
  require 'testlib/nsgettext.rb'
13
13
  require 'testlib/pgettext.rb'
14
+ require 'testlib/npgettext.rb'
14
15
 
15
16
  class TestGetText < Test::Unit::TestCase
16
17
  include GetText
@@ -151,6 +152,15 @@ DDD
151
152
  assert_equal("BBB", testlib6.test_5)
152
153
  assert_equal("BBB", testlib6.test_6)
153
154
  end
155
+ def test_npgettext
156
+ GetText.locale = nil
157
+ testlib7 = TestNPGetText.new
158
+ assert_equal(["一つの本", "%{num}の本たち"], testlib7.test_1)
159
+ assert_equal(["一つの本", "%{num}の本たち"], testlib7.test_2)
160
+ assert_equal(["一つのハードカバー本", "%{num}のハードカバー本たち"], testlib7.test_3)
161
+ assert_equal(["マガジンを1冊持ってます。", "マガジンたちを%{num}冊持ってます。"], testlib7.test_4)
162
+ assert_equal(["a picture", "%{num} pictures"], testlib7.test_5)
163
+ end
154
164
 
155
165
  def test_nsgettext
156
166
  GetText.locale = nil