gettext 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (384) hide show
  1. data/COPYING +55 -0
  2. data/COPYING.ja +51 -0
  3. data/ChangeLog +492 -0
  4. data/NEWS +99 -0
  5. data/README +112 -0
  6. data/README.ja +115 -0
  7. data/Rakefile +170 -0
  8. data/bin/rgettext +22 -0
  9. data/bin/rmsgfmt +22 -0
  10. data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
  11. data/data/locale/de/LC_MESSAGES/rmsgfmt.mo +0 -0
  12. data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
  13. data/data/locale/es/LC_MESSAGES/rmsgfmt.mo +0 -0
  14. data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
  15. data/data/locale/fr/LC_MESSAGES/rmsgfmt.mo +0 -0
  16. data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
  17. data/data/locale/it/LC_MESSAGES/rmsgfmt.mo +0 -0
  18. data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
  19. data/data/locale/ja/LC_MESSAGES/rmsgfmt.mo +0 -0
  20. data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
  21. data/data/locale/ko/LC_MESSAGES/rmsgfmt.mo +0 -0
  22. data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
  23. data/data/locale/pt_BR/LC_MESSAGES/rmsgfmt.mo +0 -0
  24. data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
  25. data/data/locale/sv/LC_MESSAGES/rmsgfmt.mo +0 -0
  26. data/ext/gettext/gettext/MANIFEST +3 -0
  27. data/ext/gettext/gettext/_locale.c +86 -0
  28. data/ext/gettext/gettext/extconf.rb +20 -0
  29. data/lib/gettext.rb +127 -0
  30. data/lib/gettext/cgi.rb +83 -0
  31. data/lib/gettext/container.rb +30 -0
  32. data/lib/gettext/erb.rb +28 -0
  33. data/lib/gettext/iconv.rb +80 -0
  34. data/lib/gettext/locale.rb +71 -0
  35. data/lib/gettext/locale_default.rb +35 -0
  36. data/lib/gettext/locale_table_win32.rb +192 -0
  37. data/lib/gettext/locale_win32.rb +35 -0
  38. data/lib/gettext/mo.rb +262 -0
  39. data/lib/gettext/parser/erb.rb +34 -0
  40. data/lib/gettext/parser/glade.rb +98 -0
  41. data/lib/gettext/parser/ruby.rb +211 -0
  42. data/lib/gettext/rails.rb +40 -0
  43. data/lib/gettext/rgettext.rb +181 -0
  44. data/lib/gettext/rmsgfmt.rb +363 -0
  45. data/lib/gettext/textdomain.rb +168 -0
  46. data/lib/gettext/version.rb +12 -0
  47. data/po/de/rgettext.po +49 -0
  48. data/po/de/rmsgfmt.po +45 -0
  49. data/po/es/rgettext.po +47 -0
  50. data/po/es/rmsgfmt.po +43 -0
  51. data/po/fr/rgettext.po +47 -0
  52. data/po/fr/rmsgfmt.po +43 -0
  53. data/po/it/rgettext.po +47 -0
  54. data/po/it/rmsgfmt.po +44 -0
  55. data/po/ja/rgettext.po +49 -0
  56. data/po/ja/rmsgfmt.po +43 -0
  57. data/po/ko/rgettext.po +46 -0
  58. data/po/ko/rmsgfmt.po +40 -0
  59. data/po/pt_BR/rgettext.po +47 -0
  60. data/po/pt_BR/rmsgfmt.po +42 -0
  61. data/po/rgettext.pot +45 -0
  62. data/po/rmsgfmt.pot +40 -0
  63. data/po/sv/rgettext.po +48 -0
  64. data/po/sv/rmsgfmt.po +43 -0
  65. data/post-setup.rb +12 -0
  66. data/pre-setup.rb +12 -0
  67. data/samples/README +20 -0
  68. data/samples/cgi/README +43 -0
  69. data/samples/cgi/Rakefile +9 -0
  70. data/samples/cgi/cookie.cgi +57 -0
  71. data/samples/cgi/gettext.css +116 -0
  72. data/samples/cgi/helloerb.rhtml +27 -0
  73. data/samples/cgi/helloerb1.cgi +47 -0
  74. data/samples/cgi/helloerb2.cgi +41 -0
  75. data/samples/cgi/hellolib.rb +21 -0
  76. data/samples/cgi/http.rb +54 -0
  77. data/samples/cgi/index.cgi +104 -0
  78. data/samples/cgi/locale/de/LC_MESSAGES/helloerb1.mo +0 -0
  79. data/samples/cgi/locale/de/LC_MESSAGES/helloerb2.mo +0 -0
  80. data/samples/cgi/locale/de/LC_MESSAGES/hellolib.mo +0 -0
  81. data/samples/cgi/locale/de/LC_MESSAGES/main.mo +0 -0
  82. data/samples/cgi/locale/es/LC_MESSAGES/helloerb1.mo +0 -0
  83. data/samples/cgi/locale/es/LC_MESSAGES/helloerb2.mo +0 -0
  84. data/samples/cgi/locale/es/LC_MESSAGES/hellolib.mo +0 -0
  85. data/samples/cgi/locale/es/LC_MESSAGES/main.mo +0 -0
  86. data/samples/cgi/locale/fr/LC_MESSAGES/helloerb1.mo +0 -0
  87. data/samples/cgi/locale/fr/LC_MESSAGES/helloerb2.mo +0 -0
  88. data/samples/cgi/locale/fr/LC_MESSAGES/hellolib.mo +0 -0
  89. data/samples/cgi/locale/fr/LC_MESSAGES/main.mo +0 -0
  90. data/samples/cgi/locale/it/LC_MESSAGES/helloerb1.mo +0 -0
  91. data/samples/cgi/locale/it/LC_MESSAGES/helloerb2.mo +0 -0
  92. data/samples/cgi/locale/it/LC_MESSAGES/hellolib.mo +0 -0
  93. data/samples/cgi/locale/it/LC_MESSAGES/main.mo +0 -0
  94. data/samples/cgi/locale/ja/LC_MESSAGES/helloerb1.mo +0 -0
  95. data/samples/cgi/locale/ja/LC_MESSAGES/helloerb2.mo +0 -0
  96. data/samples/cgi/locale/ja/LC_MESSAGES/hellolib.mo +0 -0
  97. data/samples/cgi/locale/ja/LC_MESSAGES/main.mo +0 -0
  98. data/samples/cgi/locale/ko/LC_MESSAGES/helloerb1.mo +0 -0
  99. data/samples/cgi/locale/ko/LC_MESSAGES/helloerb2.mo +0 -0
  100. data/samples/cgi/locale/ko/LC_MESSAGES/hellolib.mo +0 -0
  101. data/samples/cgi/locale/ko/LC_MESSAGES/main.mo +0 -0
  102. data/samples/cgi/other.rhtml +20 -0
  103. data/samples/cgi/po/de/helloerb1.po +60 -0
  104. data/samples/cgi/po/de/helloerb2.po +52 -0
  105. data/samples/cgi/po/de/hellolib.po +23 -0
  106. data/samples/cgi/po/de/main.po +76 -0
  107. data/samples/cgi/po/es/helloerb1.po +59 -0
  108. data/samples/cgi/po/es/helloerb2.po +50 -0
  109. data/samples/cgi/po/es/hellolib.po +22 -0
  110. data/samples/cgi/po/es/main.po +74 -0
  111. data/samples/cgi/po/fr/helloerb1.po +59 -0
  112. data/samples/cgi/po/fr/helloerb2.po +51 -0
  113. data/samples/cgi/po/fr/hellolib.po +22 -0
  114. data/samples/cgi/po/fr/main.po +75 -0
  115. data/samples/cgi/po/helloerb1.pot +60 -0
  116. data/samples/cgi/po/helloerb2.pot +52 -0
  117. data/samples/cgi/po/hellolib.pot +23 -0
  118. data/samples/cgi/po/it/helloerb1.po +61 -0
  119. data/samples/cgi/po/it/helloerb2.po +52 -0
  120. data/samples/cgi/po/it/hellolib.po +24 -0
  121. data/samples/cgi/po/it/main.po +76 -0
  122. data/samples/cgi/po/ja/helloerb1.po +59 -0
  123. data/samples/cgi/po/ja/helloerb2.po +52 -0
  124. data/samples/cgi/po/ja/hellolib.po +23 -0
  125. data/samples/cgi/po/ja/main.po +76 -0
  126. data/samples/cgi/po/ko/helloerb1.po +58 -0
  127. data/samples/cgi/po/ko/helloerb2.po +52 -0
  128. data/samples/cgi/po/ko/hellolib.po +22 -0
  129. data/samples/cgi/po/ko/main.po +74 -0
  130. data/samples/cgi/po/main.pot +76 -0
  131. data/samples/cgi/ruby.bat +4 -0
  132. data/samples/hello.rb +12 -0
  133. data/samples/hello2.rb +15 -0
  134. data/samples/hello_noop.rb +18 -0
  135. data/samples/hello_plural.rb +15 -0
  136. data/samples/hello_textdomain.rb +12 -0
  137. data/samples/helloglade2.glade +70 -0
  138. data/samples/helloglade2.rb +24 -0
  139. data/samples/hellogtk.rb +26 -0
  140. data/samples/hellogtk2.rb +28 -0
  141. data/samples/hellotk.rb +18 -0
  142. data/samples/locale/de/LC_MESSAGES/hello.mo +0 -0
  143. data/samples/locale/de/LC_MESSAGES/hello2.mo +0 -0
  144. data/samples/locale/de/LC_MESSAGES/hello_noop.mo +0 -0
  145. data/samples/locale/de/LC_MESSAGES/hello_plural.mo +0 -0
  146. data/samples/locale/de/LC_MESSAGES/helloglade2.mo +0 -0
  147. data/samples/locale/de/LC_MESSAGES/hellogtk.mo +0 -0
  148. data/samples/locale/de/LC_MESSAGES/hellotk.mo +0 -0
  149. data/samples/locale/es/LC_MESSAGES/hello.mo +0 -0
  150. data/samples/locale/es/LC_MESSAGES/hello2.mo +0 -0
  151. data/samples/locale/es/LC_MESSAGES/hello_noop.mo +0 -0
  152. data/samples/locale/es/LC_MESSAGES/hello_plural.mo +0 -0
  153. data/samples/locale/es/LC_MESSAGES/helloglade2.mo +0 -0
  154. data/samples/locale/es/LC_MESSAGES/hellogtk.mo +0 -0
  155. data/samples/locale/es/LC_MESSAGES/hellotk.mo +0 -0
  156. data/samples/locale/fr/LC_MESSAGES/hello.mo +0 -0
  157. data/samples/locale/fr/LC_MESSAGES/hello2.mo +0 -0
  158. data/samples/locale/fr/LC_MESSAGES/hello_noop.mo +0 -0
  159. data/samples/locale/fr/LC_MESSAGES/hello_plural.mo +0 -0
  160. data/samples/locale/fr/LC_MESSAGES/helloglade2.mo +0 -0
  161. data/samples/locale/fr/LC_MESSAGES/hellogtk.mo +0 -0
  162. data/samples/locale/fr/LC_MESSAGES/hellotk.mo +0 -0
  163. data/samples/locale/it/LC_MESSAGES/hello.mo +0 -0
  164. data/samples/locale/it/LC_MESSAGES/hello2.mo +0 -0
  165. data/samples/locale/it/LC_MESSAGES/hello_noop.mo +0 -0
  166. data/samples/locale/it/LC_MESSAGES/hello_plural.mo +0 -0
  167. data/samples/locale/it/LC_MESSAGES/helloglade2.mo +0 -0
  168. data/samples/locale/it/LC_MESSAGES/hellogtk.mo +0 -0
  169. data/samples/locale/it/LC_MESSAGES/hellotk.mo +0 -0
  170. data/samples/locale/ja/LC_MESSAGES/hello.mo +0 -0
  171. data/samples/locale/ja/LC_MESSAGES/hello2.mo +0 -0
  172. data/samples/locale/ja/LC_MESSAGES/hello_noop.mo +0 -0
  173. data/samples/locale/ja/LC_MESSAGES/hello_plural.mo +0 -0
  174. data/samples/locale/ja/LC_MESSAGES/helloglade2.mo +0 -0
  175. data/samples/locale/ja/LC_MESSAGES/hellogtk.mo +0 -0
  176. data/samples/locale/ja/LC_MESSAGES/hellotk.mo +0 -0
  177. data/samples/locale/ko/LC_MESSAGES/hello.mo +0 -0
  178. data/samples/locale/ko/LC_MESSAGES/hello2.mo +0 -0
  179. data/samples/locale/ko/LC_MESSAGES/hello_noop.mo +0 -0
  180. data/samples/locale/ko/LC_MESSAGES/hello_plural.mo +0 -0
  181. data/samples/locale/ko/LC_MESSAGES/helloglade2.mo +0 -0
  182. data/samples/locale/ko/LC_MESSAGES/hellogtk.mo +0 -0
  183. data/samples/locale/ko/LC_MESSAGES/hellotk.mo +0 -0
  184. data/samples/locale/pt_BR/LC_MESSAGES/hello.mo +0 -0
  185. data/samples/locale/pt_BR/LC_MESSAGES/hello2.mo +0 -0
  186. data/samples/locale/pt_BR/LC_MESSAGES/hello_noop.mo +0 -0
  187. data/samples/locale/pt_BR/LC_MESSAGES/hello_plural.mo +0 -0
  188. data/samples/locale/pt_BR/LC_MESSAGES/helloglade2.mo +0 -0
  189. data/samples/locale/pt_BR/LC_MESSAGES/hellogtk.mo +0 -0
  190. data/samples/locale/pt_BR/LC_MESSAGES/hellotk.mo +0 -0
  191. data/samples/locale/sv/LC_MESSAGES/hello.mo +0 -0
  192. data/samples/locale/sv/LC_MESSAGES/hello2.mo +0 -0
  193. data/samples/locale/sv/LC_MESSAGES/hello_noop.mo +0 -0
  194. data/samples/locale/sv/LC_MESSAGES/hello_plural.mo +0 -0
  195. data/samples/locale/sv/LC_MESSAGES/helloglade2.mo +0 -0
  196. data/samples/locale/sv/LC_MESSAGES/hellogtk.mo +0 -0
  197. data/samples/locale/sv/LC_MESSAGES/hellotk.mo +0 -0
  198. data/samples/makemo.rb +3 -0
  199. data/samples/po/de/hello.po +20 -0
  200. data/samples/po/de/hello2.po +28 -0
  201. data/samples/po/de/hello_noop.po +24 -0
  202. data/samples/po/de/hello_plural.po +22 -0
  203. data/samples/po/de/helloglade2.po +27 -0
  204. data/samples/po/de/hellogtk.po +20 -0
  205. data/samples/po/de/hellotk.po +20 -0
  206. data/samples/po/es/hello.po +21 -0
  207. data/samples/po/es/hello2.po +28 -0
  208. data/samples/po/es/hello_noop.po +24 -0
  209. data/samples/po/es/hello_plural.po +23 -0
  210. data/samples/po/es/helloglade2.po +28 -0
  211. data/samples/po/es/hellogtk.po +20 -0
  212. data/samples/po/es/hellotk.po +20 -0
  213. data/samples/po/fr/hello.po +18 -0
  214. data/samples/po/fr/hello2.po +26 -0
  215. data/samples/po/fr/hello_noop.po +22 -0
  216. data/samples/po/fr/hello_plural.po +21 -0
  217. data/samples/po/fr/helloglade2.po +27 -0
  218. data/samples/po/fr/hellogtk.po +18 -0
  219. data/samples/po/fr/hellotk.po +18 -0
  220. data/samples/po/hello.pot +20 -0
  221. data/samples/po/hello2.pot +28 -0
  222. data/samples/po/hello_noop.pot +24 -0
  223. data/samples/po/hello_plural.pot +22 -0
  224. data/samples/po/helloglade2.pot +27 -0
  225. data/samples/po/hellogtk.pot +20 -0
  226. data/samples/po/hellotk.pot +20 -0
  227. data/samples/po/it/hello.po +20 -0
  228. data/samples/po/it/hello2.po +28 -0
  229. data/samples/po/it/hello_noop.po +24 -0
  230. data/samples/po/it/hello_plural.po +24 -0
  231. data/samples/po/it/helloglade2.po +28 -0
  232. data/samples/po/it/hellogtk.po +21 -0
  233. data/samples/po/it/hellotk.po +21 -0
  234. data/samples/po/ja/hello.po +20 -0
  235. data/samples/po/ja/hello2.po +28 -0
  236. data/samples/po/ja/hello_noop.po +23 -0
  237. data/samples/po/ja/hello_plural.po +22 -0
  238. data/samples/po/ja/helloglade2.po +26 -0
  239. data/samples/po/ja/hellogtk.po +19 -0
  240. data/samples/po/ja/hellotk.po +19 -0
  241. data/samples/po/ko/hello.po +19 -0
  242. data/samples/po/ko/hello2.po +27 -0
  243. data/samples/po/ko/hello_noop.po +23 -0
  244. data/samples/po/ko/hello_plural.po +23 -0
  245. data/samples/po/ko/helloglade2.po +29 -0
  246. data/samples/po/ko/hellogtk.po +19 -0
  247. data/samples/po/ko/hellotk.po +20 -0
  248. data/samples/po/pt_BR/hello.po +20 -0
  249. data/samples/po/pt_BR/hello2.po +28 -0
  250. data/samples/po/pt_BR/hello_noop.po +24 -0
  251. data/samples/po/pt_BR/hello_plural.po +23 -0
  252. data/samples/po/pt_BR/helloglade2.po +28 -0
  253. data/samples/po/pt_BR/hellogtk.po +20 -0
  254. data/samples/po/pt_BR/hellotk.po +20 -0
  255. data/samples/po/sv/hello.po +20 -0
  256. data/samples/po/sv/hello2.po +28 -0
  257. data/samples/po/sv/hello_noop.po +24 -0
  258. data/samples/po/sv/hello_plural.po +23 -0
  259. data/samples/po/sv/helloglade2.po +28 -0
  260. data/samples/po/sv/hellogtk.po +20 -0
  261. data/samples/po/sv/hellotk.po +20 -0
  262. data/samples/rails/README +79 -0
  263. data/samples/rails/Rakefile +212 -0
  264. data/samples/rails/app/controllers/application.rb +37 -0
  265. data/samples/rails/app/controllers/blog_controller.rb +62 -0
  266. data/samples/rails/app/helpers/application_helper.rb +3 -0
  267. data/samples/rails/app/helpers/blog_helper.rb +61 -0
  268. data/samples/rails/app/models/article.rb +2 -0
  269. data/samples/rails/app/views/blog/_form.rhtml +25 -0
  270. data/samples/rails/app/views/blog/edit.rhtml +22 -0
  271. data/samples/rails/app/views/blog/list.rhtml +30 -0
  272. data/samples/rails/app/views/blog/new.rhtml +21 -0
  273. data/samples/rails/app/views/blog/show.rhtml +18 -0
  274. data/samples/rails/app/views/layouts/blog.rhtml +36 -0
  275. data/samples/rails/config/database.yml +32 -0
  276. data/samples/rails/config/environment.rb +88 -0
  277. data/samples/rails/config/environments/development.rb +14 -0
  278. data/samples/rails/config/environments/production.rb +8 -0
  279. data/samples/rails/config/environments/test.rb +17 -0
  280. data/samples/rails/config/routes.rb +19 -0
  281. data/samples/rails/db/mysql.sql +8 -0
  282. data/samples/rails/db/postgresql.sql +7 -0
  283. data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
  284. data/samples/rails/locale/de/LC_MESSAGES/lang_helper.mo +0 -0
  285. data/samples/rails/locale/es/LC_MESSAGES/blog.mo +0 -0
  286. data/samples/rails/locale/es/LC_MESSAGES/lang_helper.mo +0 -0
  287. data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
  288. data/samples/rails/locale/fr/LC_MESSAGES/lang_helper.mo +0 -0
  289. data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
  290. data/samples/rails/locale/ja/LC_MESSAGES/lang_helper.mo +0 -0
  291. data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
  292. data/samples/rails/locale/ko/LC_MESSAGES/lang_helper.mo +0 -0
  293. data/samples/rails/po/blog.pot +90 -0
  294. data/samples/rails/po/de/blog.po +91 -0
  295. data/samples/rails/po/de/lang_helper.po +28 -0
  296. data/samples/rails/po/es/blog.po +90 -0
  297. data/samples/rails/po/es/lang_helper.po +28 -0
  298. data/samples/rails/po/fr/blog.po +89 -0
  299. data/samples/rails/po/fr/lang_helper.po +27 -0
  300. data/samples/rails/po/ja/blog.po +89 -0
  301. data/samples/rails/po/ja/lang_helper.po +28 -0
  302. data/samples/rails/po/ko/blog.po +87 -0
  303. data/samples/rails/po/ko/lang_helper.po +26 -0
  304. data/samples/rails/po/lang_helper.pot +28 -0
  305. data/samples/rails/public/404.html +8 -0
  306. data/samples/rails/public/500.html +8 -0
  307. data/samples/rails/public/dispatch.cgi +10 -0
  308. data/samples/rails/public/dispatch.fcgi +24 -0
  309. data/samples/rails/public/dispatch.rb +10 -0
  310. data/samples/rails/public/favicon.ico +0 -0
  311. data/samples/rails/public/index.html +78 -0
  312. data/samples/rails/public/javascripts/controls.js +446 -0
  313. data/samples/rails/public/javascripts/dragdrop.js +537 -0
  314. data/samples/rails/public/javascripts/effects.js +612 -0
  315. data/samples/rails/public/javascripts/prototype.js +1038 -0
  316. data/samples/rails/public/stylesheets/blog.css +132 -0
  317. data/samples/rails/public/stylesheets/scaffold.css +74 -0
  318. data/samples/rails/script/benchmarker +19 -0
  319. data/samples/rails/script/breakpointer +4 -0
  320. data/samples/rails/script/console +23 -0
  321. data/samples/rails/script/destroy +7 -0
  322. data/samples/rails/script/generate +7 -0
  323. data/samples/rails/script/profiler +34 -0
  324. data/samples/rails/script/runner +29 -0
  325. data/samples/rails/script/server +49 -0
  326. data/samples/rails/test/fixtures/articles.yml +5 -0
  327. data/samples/rails/test/functional/blog_controller_test.rb +88 -0
  328. data/samples/rails/test/test_helper.rb +26 -0
  329. data/samples/rails/test/unit/article_test.rb +14 -0
  330. data/samples/rails/vendor/lang_helper.rb +49 -0
  331. data/setup.rb +1360 -0
  332. data/src/rmsgfmt.ry +233 -0
  333. data/test/README +10 -0
  334. data/test/gettext_runner.rb +18 -0
  335. data/test/gettext_test.rb +202 -0
  336. data/test/gettext_test_parser.rb +80 -0
  337. data/test/locale/cr/LC_MESSAGES/plural.mo +0 -0
  338. data/test/locale/da/LC_MESSAGES/plural.mo +0 -0
  339. data/test/locale/da/LC_MESSAGES/plural_error.mo +0 -0
  340. data/test/locale/fr/LC_MESSAGES/plural.mo +0 -0
  341. data/test/locale/fr/LC_MESSAGES/plural_error.mo +0 -0
  342. data/test/locale/fr/LC_MESSAGES/test1.mo +0 -0
  343. data/test/locale/fr/LC_MESSAGES/test2.mo +0 -0
  344. data/test/locale/ir/LC_MESSAGES/plural.mo +0 -0
  345. data/test/locale/ja/LC_MESSAGES/plural.mo +0 -0
  346. data/test/locale/ja/LC_MESSAGES/plural_error.mo +0 -0
  347. data/test/locale/ja/LC_MESSAGES/test1.mo +0 -0
  348. data/test/locale/ja/LC_MESSAGES/test2.mo +0 -0
  349. data/test/locale/ja/LC_MESSAGES/test_rubyparser.mo +0 -0
  350. data/test/locale/ja/LC_MESSAGES/test_sgettext.mo +0 -0
  351. data/test/locale/la/LC_MESSAGES/plural.mo +0 -0
  352. data/test/locale/li/LC_MESSAGES/plural.mo +0 -0
  353. data/test/locale/po/LC_MESSAGES/plural.mo +0 -0
  354. data/test/locale/sl/LC_MESSAGES/plural.mo +0 -0
  355. data/test/po/cr/plural.po +23 -0
  356. data/test/po/da/plural.po +22 -0
  357. data/test/po/da/plural_error.po +20 -0
  358. data/test/po/fr/plural.po +22 -0
  359. data/test/po/fr/plural_error.po +19 -0
  360. data/test/po/fr/test1.po +23 -0
  361. data/test/po/fr/test2.po +19 -0
  362. data/test/po/ir/plural.po +23 -0
  363. data/test/po/ja/plural.po +22 -0
  364. data/test/po/ja/plural_error.po +20 -0
  365. data/test/po/ja/test1.po +23 -0
  366. data/test/po/ja/test2.po +19 -0
  367. data/test/po/ja/test_rubyparser.po +43 -0
  368. data/test/po/ja/test_sgettext.po +47 -0
  369. data/test/po/la/plural.po +23 -0
  370. data/test/po/li/plural.po +23 -0
  371. data/test/po/po/plural.po +23 -0
  372. data/test/po/sl/plural.po +24 -0
  373. data/test/test.sh +7 -0
  374. data/test/test_erb.rhtml +15 -0
  375. data/test/test_gladeparser.glade +183 -0
  376. data/test/test_rubyparser.rb +77 -0
  377. data/test/test_rubyparser_N.rb +66 -0
  378. data/test/test_rubyparser_n.rb +64 -0
  379. data/test/test_sgettext.rb +48 -0
  380. data/test/testlib1.rb +20 -0
  381. data/test/testlib2.rb +11 -0
  382. data/test/testlib3.rb +12 -0
  383. data/test/testlib4.rb +11 -0
  384. metadata +580 -0
data/COPYING ADDED
@@ -0,0 +1,55 @@
1
+ You can redistribute this program and/or modify it under either the terms of
2
+ the LGPL (see the file LGPL), or the conditions below:
3
+
4
+ 1. You may make and give away verbatim copies of the source form of the
5
+ software without restriction, provided that you duplicate all of the
6
+ original copyright notices and associated disclaimers.
7
+
8
+ 2. You may modify your copy of the software in any way, provided that
9
+ you do at least ONE of the following:
10
+
11
+ a) place your modifications in the Public Domain or otherwise
12
+ make them Freely Available, such as by posting said
13
+ modifications to Usenet or an equivalent medium, or by allowing
14
+ the author to include your modifications in the software.
15
+
16
+ b) use the modified software only within your corporation or
17
+ organization.
18
+
19
+ c) rename any non-standard executables so the names do not conflict
20
+ with standard executables, which must also be provided.
21
+
22
+ d) make other distribution arrangements with the author.
23
+
24
+ 3. You may distribute the software in object code or executable
25
+ form, provided that you do at least ONE of the following:
26
+
27
+ a) distribute the executables and library files of the software,
28
+ together with instructions (in the manual page or equivalent)
29
+ on where to get the original distribution.
30
+
31
+ b) accompany the distribution with the machine-readable source of
32
+ the software.
33
+
34
+ c) give non-standard executables non-standard names, with
35
+ instructions on where to get the original software distribution.
36
+
37
+ d) make other distribution arrangements with the author.
38
+
39
+ 4. You may modify and include the part of the software into any other
40
+ software (possibly commercial). But some files in the distribution
41
+ are not written by the author, so that they are not under these terms.
42
+
43
+ For the list of those files and their copying conditions, see the
44
+ file LEGAL.
45
+
46
+ 5. The scripts and library files supplied as input to or produced as
47
+ output from the software do not automatically fall under the
48
+ copyright of the software, but belong to whomever generated them,
49
+ and may be sold commercially, and may be aggregated with this
50
+ software.
51
+
52
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
53
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
54
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
55
+ PURPOSE.
data/COPYING.ja ADDED
@@ -0,0 +1,51 @@
1
+ $BK\%W%m%0%i%`$O%U%j!<%=%U%H%&%'%"$G$9!%(BGPL(the GNU General
2
+ Public License)$B$^$?$O0J2<$K<($9>r7o$GK\%W%m%0%i%`$r:FG[I[$G(B
3
+ $B$-$^$9!%(BGPL$B$K$D$$$F$O(BGPL$B%U%!%$%k$r;2>H$7$F2<$5$$!%(B
4
+
5
+ 1. $BJ#@=$O@)8B$J$/<+M3$G$9!%(B
6
+
7
+ 2. $B0J2<$N>r7o$N$$$:$l$+$rK~$?$9;~$KK\%W%m%0%i%`$N%=!<%9$r(B
8
+ $B<+M3$KJQ99$G$-$^$9!%(B
9
+
10
+ (a) $B%M%C%H%K%e!<%:$K%]%9%H$7$?$j!$:n<T$KJQ99$rAwIU$9$k(B
11
+ $B$J$I$NJ}K!$G!$JQ99$r8x3+$9$k!%(B
12
+
13
+ (b) $BJQ99$7$?K\%W%m%0%i%`$r<+J,$N=jB0$9$kAH?%FbIt$@$1$G(B
14
+ $B;H$&!%(B
15
+
16
+ (c) $BJQ99E@$rL@<($7$?$&$(!$%=%U%H%&%'%"$NL>A0$rJQ99$9$k!%(B
17
+ $B$=$N%=%U%H%&%'%"$rG[I[$9$k;~$K$OJQ99A0$NK\%W%m%0%i(B
18
+ $B%`$bF1;~$KG[I[$9$k!%$^$?$OJQ99A0$NK\%W%m%0%i%`$N%=!<(B
19
+ $B%9$NF~<jK!$rL@<($9$k!%(B
20
+
21
+ (d) $B$=$NB>$NJQ99>r7o$r:n<T$H9g0U$9$k!%(B
22
+
23
+ 3. $B0J2<$N>r7o$N$$$:$l$+$rK~$?$9;~$KK\%W%m%0%i%`$r%3%s%Q%$(B
24
+ $B%k$7$?%*%V%8%'%/%H%3!<%I$d<B9T7A<0$G$bG[I[$G$-$^$9!%(B
25
+
26
+ (a) $B%P%$%J%j$r<u$1<h$C$??M$,%=!<%9$rF~<j$G$-$k$h$&$K!$(B
27
+ $B%=!<%9$NF~<jK!$rL@<($9$k!%(B
28
+
29
+ (b) $B5!3#2DFI$J%=!<%9%3!<%I$rE:IU$9$k!%(B
30
+
31
+ (c) $BJQ99$r9T$C$?%P%$%J%j$OL>A0$rJQ99$7$?$&$(!$%*%j%8%J(B
32
+ $B%k$N%=!<%9%3!<%I$NF~<jK!$rL@<($9$k!%(B
33
+
34
+ (d) $B$=$NB>$NG[I[>r7o$r:n<T$H9g0U$9$k!%(B
35
+
36
+ 4. $BB>$N%W%m%0%i%`$X$N0zMQ$O$$$+$J$kL\E*$G$"$l<+M3$G$9!%$?(B
37
+ $B$@$7!$K\%W%m%0%i%`$K4^$^$l$kB>$N:n<T$K$h$k%3!<%I$O!$$=(B
38
+ $B$l$>$l$N:n<T$N0U8~$K$h$k@)8B$,2C$($i$l$k>l9g$,$"$j$^$9!%(B
39
+
40
+ $B$=$l$i%U%!%$%k$N0lMw$H$=$l$>$l$NG[I[>r7o$J$I$KIU$$$F$O(B
41
+ LEGAL$B%U%!%$%k$r;2>H$7$F$/$@$5$$!%(B
42
+
43
+ 5. $BK\%W%m%0%i%`$X$NF~NO$H$J$k%9%/%j%W%H$*$h$S!$K\%W%m%0%i(B
44
+ $B%`$+$i$N=PNO$N8"Mx$OK\%W%m%0%i%`$N:n<T$G$O$J$/!$$=$l$>(B
45
+ $B$l$NF~=PNO$r@8@.$7$??M$KB0$7$^$9!%$^$?!$K\%W%m%0%i%`$K(B
46
+ $BAH$_9~$^$l$k$?$a$N3HD%%i%$%V%i%j$K$D$$$F$bF1MM$G$9!%(B
47
+
48
+ 6. $BK\%W%m%0%i%`$OL5J]>Z$G$9!%:n<T$OK\%W%m%0%i%`$r%5%]!<%H(B
49
+ $B$9$k0U;V$O$"$j$^$9$,!$%W%m%0%i%`<+?H$N%P%0$"$k$$$OK\%W(B
50
+ $B%m%0%i%`$N<B9T$J$I$+$iH/@8$9$k$$$+$J$kB;32$KBP$7$F$b@U(B
51
+ $BG$$r;}$A$^$;$s!%(B
data/ChangeLog ADDED
@@ -0,0 +1,492 @@
1
+ 2005-09-03 Masao Mutoh <mutoh@highway.ne.jp>
2
+
3
+ * src/rmsgfmt.ry: Fixed VERSION info.
4
+ * Rakefile: Update to make package correctly. Call create_mofiles
5
+ for test/po/
6
+ Add test task.
7
+ Create win32 package correctly on Win32.
8
+ * test/makemo.rb: Removed. Use rake makemo instead.
9
+ * NEWS: Added.
10
+ * 1.0.0 released.
11
+
12
+ 2005-08-31 Masao Mutoh <mutoh@highway.ne.jp>
13
+
14
+ * samples/cgi/Rakefile: Added.
15
+ * samples/cgi/README: Modified.
16
+ * samples/README: Modified.
17
+ * samples/po/ko/*.po: Added Korean by Gyoung-Yoon Noh.
18
+ * src/rmsgfmt.ry, po/**/rmsgfmt.po: Fix a typo.
19
+ * samples/makemo.rb: Re-add for creating mo-files.
20
+ * po/es/*.po: Updated by David Espada.
21
+ * po/samples/rails/es/*.po: Added by David Espada.
22
+ * po/de/*.po: Updated by Sven Herzberg.
23
+ * po/samples/rails/de/*.po: Added by Sven Herzberg.
24
+ * po/fr/*.po: Updated by Laurent Sansonetti.
25
+ * po/samples/rails/fr/*.po: Added by Laurent Sansonetti.
26
+ * README, README.ja: Updated.
27
+ * samples/rails/*.[rb|rhtml]: Modified header informations.
28
+ * lib/gettext/version.rb: Modified header information.
29
+ * samples/rails/README: Revised.
30
+ * samples/rails/db/postgresql.sql: Added.
31
+
32
+ 2005-08-30 Masao Mutoh <mutoh@highway.ne.jp>
33
+
34
+ * po/ko/*.po, samples/cgi/po/ko/*.po, samples/rails/po/ko/*.po:
35
+ Added Korean by Gyoung-Yoon Noh.
36
+ * lib/gettext/textdomain.rb: Improve to print error message when
37
+ No mo files were found.
38
+
39
+ 2005-08-28 Masao Mutoh <mutoh@highway.ne.jp>
40
+
41
+ * samples/rails/*: Added a sample for Ruby on Rails.
42
+
43
+ 2005-08-27 Masao Mutoh <mutoh@highway.ne.jp>
44
+
45
+ * lib/gettext/textdomain.rb: Added search mo-path:
46
+ #{gems_path}/#{app}/locale/#{lang}/
47
+ * lib/gettext/cgi.rb: Fix an alias bug(set_cgi is an
48
+ alias of cgi=, not cgi).
49
+
50
+ 2005-08-23 Masao Mutoh <mutoh@highway.ne.jp>
51
+
52
+ * samples/cgi/helloerb1.cgi, helloerb2.cgi:
53
+ Set @domainname obviously.
54
+ * pre-clean.rb: Removed.
55
+ * samples/makemo.rb, samples/cgi/makemo.rb:
56
+ Removed. Use "rake makemo" instead.
57
+ * post-setup.rb: Added "lib" to library path.
58
+ * lib/gettext/locale.rb: Added pseudo Locale module when
59
+ no _locale.so is found.(installation time by rake only)
60
+
61
+ 2005-08-21 Masao Mutoh <mutoh@highway.ne.jp>
62
+
63
+ * src/rmsgfmt.ry: Added GetText.create_mofiles.
64
+ * test/gettext_test.rb, testlib4.rb: Added tests for
65
+ GetText.textdomain.
66
+ * samples/hello_textdomain.rb: Added a sample for
67
+ GetText.textdomain.
68
+ * lib/gettext/locale_default.rb: Call setlocale first.
69
+ * lib/gettext.rb: Added GetText.textdomain.
70
+ Added NoboundTextDomainError.
71
+ * lib/gettext/textdomain.rb: Added TextDomain#charset.
72
+ * lib/gettext/container.rb: Rename @domainname to
73
+ @gettext_container_domainname.
74
+ Pointed out by speakillof.
75
+ * pre-setup.rb: call rake setup.
76
+
77
+ 2005-08-20 Masao Mutoh <mutoh@highway.ne.jp>
78
+
79
+ * lib/gettext/locale.rb: require '_locale' if 'gettext/_locale'
80
+ failed to load(for rubygems).
81
+
82
+ 2005-08-18 Masao Mutoh <mutoh@highway.ne.jp>
83
+
84
+ * lib/gettext/textdomain.rb: Add Gem paths as search paths.
85
+
86
+ 2005-08-15 Masao Mutoh <mutoh@highway.ne.jp>
87
+
88
+ * bin/rmsgfmt: Move methods to src/rmsgfmt.ry.
89
+ * src/rmsgfmt.ry: Improved. Added GetText.rmsgfmt.
90
+
91
+ 2005-08-14 Masao Mutoh <mutoh@highway.ne.jp>
92
+
93
+ * Rakefile: Added.
94
+ * lib/gettext/version.rb: Added.
95
+ * lib/pre-setup.rb: Removed.
96
+ * lib/gettext/rgettext.rb: Added. Added GetText.rgettext.
97
+
98
+ 2005-08-13 Masao Mutoh <mutoh@highway.ne.jp>
99
+
100
+ * README, REAMDE.ja: Updated informations.
101
+ * The project moves to rubyforge.
102
+
103
+ 2005-05-01 Masao Mutoh <mutoh@highway.ne.jp>
104
+
105
+ * lib/gettext/locale_win32.rb: Added pseudo constants of setlocale.
106
+ * samples/cgi/ruby.bat: Added for Win32.
107
+ * samples/cgi/README: Modified.
108
+ * samples/cgi/http.rb: Support Win32.
109
+ * 0.9.0 released.
110
+
111
+ 2005-04-30 Masao Mutoh <mutoh@highway.ne.jp>
112
+
113
+ * lib/gettext/cgi.rb: Added Locale.set_cgi() as alias of .cgi=.
114
+
115
+ 2005-04-25 Masao Mutoh <mutoh@highway.ne.jp>
116
+
117
+ * samples/cgi/po/de/: Translated by Detlef Reichl.
118
+ * samples/cgi/po/es/: Translated by David Moreno Garza.
119
+ * samples/cgi/po/it/: Translated by Gabriele Renzi.
120
+ * samples/po/it/: Translated by Gabriele Renzi.
121
+
122
+ 2005-04-24 Masao Mutoh <mutoh@highway.ne.jp>
123
+
124
+ * po/de/*.po : Translated by Detlef Reichl.
125
+ * po/it/*.po : Translated by Gabriele Renzi.
126
+
127
+ 2005-04-23 Masao Mutoh <mutoh@highway.ne.jp>
128
+
129
+ * src/rmsgfmt.ry: Fix a bug not to unesacpe '"'.
130
+ Support new transltations.
131
+ * samples/cgi/*: Updated.
132
+ * samples/cgi/po/fr/*: Translated by Laurent Sansonetti.
133
+
134
+ 2005-04-22 Masao Mutoh <mutoh@highway.ne.jp>
135
+
136
+ * lib/gettext/cgi.rb: Locale.get checks the cookie value.
137
+ The search priority is:
138
+ query_string(lang) > cookie(lang) > HTTP_ACCEPT_LANGUAGE > "en".
139
+
140
+ 2005-04-21 Masao Mutoh <mutoh@highway.ne.jp>
141
+
142
+ * lib/gettext/cgi.rb: Added Locale.cgi=, .cgi,
143
+ GetText.cgi=, .cgi, .set_cgi.
144
+
145
+ 2005-04-20 Masao Mutoh <mutoh@highway.ne.jp>
146
+
147
+ * lib/gettext.rb: Defined domain name as @domainname.
148
+ Added GetText.set_output_charset as alias of .output_charset=.
149
+ * lib/gettext/container.rb: Added.
150
+ * lib/gettext/erb.rb: Make ErbContainer a module not a class
151
+ and includes GetText::Container.
152
+ * samples/erb/*: Follow this changes.
153
+ * samples/cgi/, erb/: Move erb/ to cgi/.
154
+
155
+ 2005-04-19 Masao Mutoh <mutoh@highway.ne.jp>
156
+
157
+ * samples/erb/*: Added sample for CGI/ERB.
158
+
159
+ 2005-04-18 Masao Mutoh <mutoh@highway.ne.jp>
160
+
161
+ * lib/gettext/erb.rb: Added for ERB support.
162
+ * lib/gettext/cgi.rb: Added for CGI support.
163
+ * lib/gettext.rb: Add GetText.output_charset=.
164
+
165
+ 2005-04-11 Masao Mutoh <mutoh@highway.ne.jp>
166
+
167
+ * lib/gettext.rb: Add GetText.set_locale, set_charset.
168
+
169
+ 2005-04-10 Masao Mutoh <mutoh@highway.ne.jp>
170
+
171
+ * src/rmsgfmt.ry: Remove comment_old which isn't used anymore.
172
+
173
+ 2005-04-09 Masao Mutoh <mutoh@highway.ne.jp>
174
+
175
+ * lib/gettext/gettext.rb, locale.rb, locale_default.rb:
176
+ Fix bugs that Locale.get, Locale.codeset return wrong values.
177
+ * test/gettext_text.rb: Add test for Locale module.
178
+
179
+ 2005-04-02 Masao Mutoh <mutoh@highway.ne.jp>
180
+
181
+ * test/gettext_test_parser.rb, test_erb.rhtml:
182
+ Added tests for erb parser.
183
+ * lib/gettext/textdomain.rb: print debug message to
184
+ $stderr, not $stdout.
185
+ * lib/gettext/parser/erb.rb: Added.
186
+ rgettext support ERB. Inspired by Sascha Ebach.
187
+ * lib/gettext/parser/*.rb, bin/rgettext: Code clean up.
188
+
189
+ 2005-03-31 Masao Mutoh <mutoh@highway.ne.jp>
190
+
191
+ * lib/gettext.rb, lib/gettext/textdomain.rb:
192
+ reimplement sgettext.
193
+ * lib/gettext.rb: Improve GetText.bindtextdomain
194
+ * test/makemo.rb, samples/makemo.rb: Improve to run rmsgfmt.
195
+ * pre-setup.rb: Improve to run racc.
196
+
197
+ 2005-03-28 Masao Mutoh <mutoh@highway.ne.jp>
198
+
199
+ * ext/gettext/gettext/_locale.c: Locale.codeset calls
200
+ setlocale(LC_CTYPE, "") not LC_ALL.
201
+ * lib/gettext.rb: Update VERSION info.
202
+ * lib/gettext/locale.rb: Remove to read LC_CTYPE.
203
+ Now, this uses the environment variables LC_ALL,
204
+ LC_MESSAGES and LANG (in that order) same as GNU GetText.
205
+ Point outed by Dafydd Harries.
206
+ * samples/helloglade2.rb: Run correctly on the samples directory.
207
+ * 0.8.1 released.
208
+
209
+ 2005-03-20 Masao Mutoh <mutoh@highway.ne.jp>
210
+
211
+ * src/rmsgfmt.ry: Fix a problem with \r, \t, \n.
212
+ Reported by Guillaume Cottenceau.
213
+
214
+ 2004-11-27 Masao Mutoh <mutoh@highway.ne.jp>
215
+
216
+ * src/rmsgfmt.ry: Fix an error when #~ lines are existed.
217
+ Pointed out by Patrick GUNDLACH.
218
+ * lib/gettext/parser/ruby.rb: Fix rgettext ignore "\#" by Kazuhiro NISHIYAMA.
219
+ * test/test_rubyparser.rb, gettext_test_parser.rb: Added test for "\#".
220
+
221
+ 2004-11-07 Masao Mutoh <mutoh@highway.ne.jp>
222
+
223
+ * po/pt_BR/*.po, samples/po/pt_BR/*.po: Added. Translated by Joao Pedrosa.
224
+
225
+ 2004-11-06 Masao Mutoh <mutoh@highway.ne.jp>
226
+
227
+ * README, README.ja: Revised.
228
+ * po/sv/*.po, samples/po/sv/*.po: Added. Translated by Nikolai Weibull.
229
+ * po/es/*.po, samples/po/es/*.po: Added. Translated by David Espada.
230
+ * 0.8.0 released.
231
+
232
+ 2004-11-05 Masao Mutoh <mutoh@highway.ne.jp>
233
+
234
+ * po/fr/*.po, samples/po/fr/*.po: Added. Translated by Laurent Sansonetti.
235
+ * test/test_rubyparser_N.rb: Added.
236
+ * test/test_rubyparser.rb: Added a test.
237
+ * lib/gettext.rb: Increment minor version.
238
+
239
+ 2004-11-04 Masao Mutoh <mutoh@highway.ne.jp>
240
+
241
+ * test/gettext_test_parser.rb: Added test for n_().
242
+ * lib/gettext/parser/ruby.rb: Improved to parse n_().
243
+ * test/test_rubyparser_n.rb: Added.
244
+
245
+ 2004-11-03 Masao Mutoh <mutoh@highway.ne.jp>
246
+
247
+ * lib/gettext/parser/ruby.rb: Support _("a" + "b") pattern as "ab".
248
+
249
+ 2004-10-23 Masao Mutoh <mutoh@highway.ne.jp>
250
+
251
+ * setup.rb: Update to setup.rb-3.3.1.
252
+ * README, README.ja: Modified.
253
+ * 0.7.0 released.
254
+
255
+ 2004-10-22 Masao Mutoh <mutoh@highway.ne.jp>
256
+
257
+ * lib/gettext/iconv.rb: Added.
258
+ * lib/gettext/mo.rb: Requires 'gettext/iconv' instead of 'iconv'.
259
+
260
+ 2004-10-21 Masao Mutoh <mutoh@highway.ne.jp>
261
+
262
+ * lib/gettext.rb: every methods don't raise error when
263
+ GetText.bindtextdomain isn't called first.
264
+
265
+ 2004-10-12 Masao Mutoh <mutoh@highway.ne.jp>
266
+
267
+ * bin/rgettext: Modified header like as GNU GetText.
268
+ Escape double quote correctly.
269
+ * test/gettext_test_parser.rb: Added tests for GetText::GladeParser.
270
+ * test/test_gladeparser.rb: Added.
271
+
272
+ 2004-10-11 Masao Mutoh <mutoh@highway.ne.jp>
273
+
274
+ * lib/gettext/textdomain.rb: Added GETTEXT_PATH environment variable
275
+ for searching path. This is for testing/debugging.
276
+ Improved GetText::TextDomain#set_locale.
277
+ Reported by Dafydd Harries from Debian Bug Tracking System #275010.
278
+ * lib/gettext.rb, lib/gettext/textdomain.rb: Separate
279
+ GetText::Domain to lib/gettext/textdomain.rb.
280
+ * lib/gettext.rb: Increment GetText::VERSION.
281
+
282
+ 2004-08-12 Masao Mutoh <mutoh@highway.ne.jp>
283
+
284
+ * lib/gettext.rb: Add GetText.sgettext(msgid), .s_(msgid) .
285
+ * bin/rgettext: Support GetText.sgettext, .s_.
286
+ * test/gettext_test.rb, test_sgettext.rb, test/po/ja/test_sgettext.po:
287
+ Added for GetText.sgettext, .s_ tests.
288
+
289
+ 2004-07-21 Masao Mutoh <mutoh@highway.ne.jp>
290
+
291
+ * README, README.ja: Modified some old descriptions.
292
+ * lib/gettext.rb: Incremented revision.
293
+ * 0.6.1 released.
294
+
295
+ 2004-07-11 Masao Mutoh <mutoh@highway.ne.jp>
296
+
297
+ * lib/gettext/parser/glade.rb: Fixed a bug for empty-string value.
298
+ * post-setup.rb: Fixed a install problem reported by wwp.
299
+
300
+ 2004-07-04 Masao Mutoh <mutoh@highway.ne.jp>
301
+
302
+ * post-setup.rb, pre-clean.rb, pre-setup.rb: Improved
303
+ by Nobu Nakada.
304
+ * setup.rb: Replaced install.rb. Pointed out by Nobu Nakada.
305
+ * README, README.ja: Follow above changes.
306
+
307
+ 2004-07-03 Masao Mutoh <mutoh@highway.ne.jp>
308
+
309
+ * test/gettext_test.rb: Added some complex cases.
310
+ * test/gettext_runner.rb: Added.
311
+ * test/po/ja/test_rubyparser.po: Added.
312
+ * lib/gettext.rb: Added GetText::VERSION.
313
+ * docs/*: Removed. See website instead.
314
+ * 0.6.0 released.
315
+
316
+ 2004-06-27 Masao Mutoh <mutoh@highway.ne.jp>
317
+
318
+ * bin/rgettext: Support Glade-2 XML file.
319
+ * po/ja/rgettext.po: Ditto.
320
+ * lib/gettext/parser/ruby.rb, glade.rb: Added.
321
+ * test/gettext_test_parser.rb, test_rubyparser.rb: Added.
322
+ * lib/gettext/parser/ruby.rb: Improved to parse complex strings.
323
+
324
+ 2004-06-23 Masao Mutoh <mutoh@highway.ne.jp>
325
+
326
+ * lib/gettext/mo.rb: Fix a bug to save data to a file.
327
+
328
+ 2004-06-15 Masao Mutoh <mutoh@highway.ne.jp>
329
+
330
+ * src/rmsgfmt.ry: Force override if the file exist. This is the same
331
+ behavior as GNU msgfmt.
332
+ * lib/gettext/mo.rb: Fixed a bug that "Plural-Forms"
333
+ part isn't defined in po-file but has plural part.
334
+ Reported by Dafydd Harries.
335
+ * test/po/[fr|ja|de]/plural_error.po: Added for a test of plural forms.
336
+ * test/gettext_test.rb: ditto.
337
+
338
+ 2004-03-26 Masao Mutoh <mutoh@highway.ne.jp>
339
+
340
+ * lib/gettext.rb: Fixed to return empty strings
341
+ when translated strings are empty.
342
+ * 0.5.5 released.
343
+
344
+ 2004-02-14 Masao Mutoh <mutoh@highway.ne.jp>
345
+
346
+ * lib/gettext/locale.rb: Changes PLATFORM to RUBY_PLATFORM for ruby-1.9.
347
+ * 0.5.4 released.
348
+
349
+ 2003-12-02 Masao Mutoh <mutoh@highway.ne.jp>
350
+
351
+ * lib/gettext.rb: Improve the initial speed.
352
+ * 0.5.3 released.
353
+
354
+ 2003-11-27 Masao Mutoh <mutoh@highway.ne.jp>
355
+
356
+ * bin/rgettext: Fix bugs when \M or \C are given.
357
+
358
+ 2003-11-12 Masao Mutoh <mutoh@highway.ne.jp>
359
+
360
+ * ext/gettext/gettext/_locale.c: Fix bugs for Win32.
361
+ Pointed out by Nobu Nakada.
362
+ * docs/config.rb: Removed.
363
+ * docs/rd/*/ruby-gettext.rd: Modified.
364
+ * 0.5.2 released.
365
+
366
+ 2003-07-05 Masao Mutoh <mutoh@highway.ne.jp>
367
+
368
+ * ext/gettext/gettext/_locale.c: Define Locale.setlocale() and LC_* constants.
369
+ * lib/gettext.rb, lib/gettext/*.rb: Code cleanup.
370
+ * post-setup.rb: Fix mo files had not been compiled.
371
+ * 0.5.1 released.
372
+
373
+ 2003-07-04 Masao Mutoh <mutoh@highway.ne.jp>
374
+
375
+ * samples/hello2.rb: Fix warning for ruby-1.8.x.
376
+ * ext/gettext/gettext/_locale.c: Call setlocale(LC_NUMERIC, "C")
377
+ for some locales which doesn't use "." as decimal-point.
378
+ * pre-setup.rb: Removed.
379
+ * post-setup.rb: Fix some bugs.
380
+
381
+ 2003-01-07 Masao Mutoh <mutoh@highway.ne.jp>
382
+
383
+ * samples/hellogtk2.rb: Support Ruby/GTK2.
384
+ * gettext/mo.rb: Fix for bad mo files which don't include header part.
385
+ * bin/rgettext: Remove ",fuzzy" for header part. Set default charset to UTF-8.
386
+ * src/rmsgfmt.ry, po/rmsgfmt.pot, po/ja/rmsgfmt.po: Add files.
387
+ * 0.5.0 released.
388
+
389
+ 2002-10-21 Masao Mutoh <mutoh@highway.ne.jp>
390
+
391
+ * Support ngettext(alias name is n_).
392
+ * Change directory structure.
393
+ * Remove *.mo from tar-ball(they are created automatically in installing).
394
+ * bin/rgettext, po/rgettext.pot, po/ja/rgettext.po: Revise help message.
395
+ * bin/rgettext: Fix POT-Creation-Date was localized.
396
+ * samples/hello_plural.rb: Add a sample.
397
+ * test/*: Add test for ngettext.
398
+ * 0.4.0 released.
399
+
400
+ 2002-10-18 Masao Mutoh <mutoh@highway.ne.jp>
401
+
402
+ * lib/gettext/mo.rb: Fix bad return value when msgstr is not existed.
403
+ Pointed out by Shinobu TAKANASHI <sino@e-turi.net>
404
+ * test/*: Change RubyUnit to Test::Unit.
405
+ * 0.3.2 released.
406
+
407
+ 2002-07-06 Masao Mutoh <mutoh@highway.ne.jp>
408
+
409
+ * lib/locale.rb: Support MinGW.
410
+ * lib/mo.rb: Support platforms which do not support Iconv.
411
+ * 0.3.1 released.
412
+
413
+ 2002-07-02 WATANABE Hirofumi <eban@os.rim.or.jp>
414
+
415
+ * ext/gettext/gettext/extconf.rb:Support MinGW.
416
+
417
+ 2002-07-01 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
418
+
419
+ * ext/gettext/gettext/_locale.c: Code cleanup.
420
+ * po/ja.po: Fix typo.
421
+ * pre-install.rb: Code cleanup.
422
+
423
+ 2002-06-30 Masao Mutoh <mutoh@highway.ne.jp>
424
+
425
+ * Support to convert output strings with charset(codeset).
426
+ - Add 4th parameter to GetText.bindtextdomain for charset
427
+ - Add GetText.charset=().
428
+ - Support Environment variable OUTPUT_CHARSET.
429
+ * samples/po/makemo.rb: support Ruby-1.6.x.
430
+ Reported by KUMAGAI Hidetake <ggb03124@nifty.ne.jp>
431
+ * 0.3.0 released.
432
+
433
+ 2002-02-22 Masao Mutoh <mutoh@highway.ne.jp>
434
+
435
+ * docs/rd/[ja|en]/ruby-gettext.rd: Some modified.
436
+ * lib/gettext.rb: show more informations in debug mode(-d)
437
+ * bin/rgettext: BugFix for bad implementation of GetText.N_(msg).
438
+ by Masahiro Sakai<zvm01052@nifty.ne.jp>
439
+ * po/ja.po: change charset from iso-2022-jp to euc-jp.
440
+ by Masahiro Sakai<zvm01052@nifty.ne.jp>
441
+ * 0.2.1 released.
442
+
443
+ 2002-02-21 Masao Mutoh <mutoh@highway.ne.jp>
444
+
445
+ * lib/gettext.rb: Implement GetText.N_(msg)
446
+ * bin/rgettext: Apply to GetText.N_(msg)
447
+ * samples/hello_noop.rb: Add a sample for GetText.N_(msg).
448
+ * test/gettext_test.rb: Add test_noop.
449
+ * docs/rd/[ja|en]/ruby-gettext.rd: Add an explanation of GetText.N_(msg).
450
+ * 0.2.0 released.
451
+
452
+ 2002-02-13 Masao Mutoh <mutoh@highway.ne.jp>
453
+ * ruby-gettext-package:
454
+ Move pre-clean.rb to pre-install.rb.
455
+ Reported by Yoshifumi Hiramatsu<hiramatu@boreas.dti.ne.jp>
456
+ * lib/gettext.rb: Improve search-path(@locale_dirs).
457
+ * bin/rgettext, samples/*.rb:
458
+ Improve first line(Add #! line or change #!/usr/bin/env ruby to
459
+ #!/usr/local/bin/ruby).
460
+ * samples/hellotk.rb: add new sample for Ruby/Tk
461
+ * 0.1.2 released.
462
+
463
+ 2002-02-03 Masao Mutoh <mutoh@highway.ne.jp>
464
+
465
+ * lib/gettext.rb: BugFix to occur an error
466
+ when all of locale is not set.
467
+ * README, README.ja: Modified about Bad explanation
468
+ in Install section. Reported by
469
+ Yoshifumi Hiramatsu<hiramatu@boreas.dti.ne.jp>
470
+ * docs/rd/*/ruby-gettext.rd: Some improvements.
471
+ * docs/yard2html.rb: Some improvements.
472
+ * 0.1.1 released.
473
+
474
+ 2002-01-06 Masao Mutoh <mutoh@highway.ne.jp>
475
+
476
+ * lib/gettext.rb: Bugfix for bad scope.
477
+ * bin/rgettext: Sort by file, lineno.
478
+ * test/: Add one test.
479
+ * docs/rd/*/ruby-gettext.rd: Modified about rgettext.
480
+ * 0.1.0 released.
481
+
482
+ 2002-01-01 Masao Mutoh <mutoh@highway.ne.jp>
483
+
484
+ * docs/: Add english document and some improvements.
485
+ * test/: Add one test.
486
+ * samples/: Add hello2.rb.
487
+ * 0.0.2 released.
488
+
489
+ 2001-12-24 Masao Mutoh <mutoh@highway.ne.jp>
490
+
491
+ * test release
492
+