gettext 1.0.0-mswin32 → 1.1.0-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (301) hide show
  1. data/ChangeLog +193 -0
  2. data/NEWS +51 -1
  3. data/README +29 -11
  4. data/Rakefile +70 -56
  5. data/bin/rgettext +2 -0
  6. data/bin/rmsgfmt +2 -0
  7. data/bin/rmsgmerge +24 -0
  8. data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
  9. data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
  10. data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
  11. data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
  12. data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
  13. data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
  14. data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
  15. data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
  16. data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
  17. data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
  18. data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
  19. data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
  20. data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
  21. data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
  22. data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
  23. data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
  24. data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
  25. data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
  26. data/ext/gettext/gettext/_locale.BAK +86 -0
  27. data/ext/gettext/gettext/_locale.c +1 -1
  28. data/ext/gettext/gettext/_locale.exp +0 -0
  29. data/ext/gettext/gettext/_locale.lib +0 -0
  30. data/ext/gettext/gettext/_locale.obj +0 -0
  31. data/ext/gettext/gettext/_locale.pdb +0 -0
  32. data/ext/gettext/gettext/_locale.so +0 -0
  33. data/ext/gettext/gettext/mkmf.log +4 -4
  34. data/ext/gettext/gettext/vc70.pdb +0 -0
  35. data/lib/_locale.so +0 -0
  36. data/lib/gettext.rb +17 -4
  37. data/lib/gettext/cgi.rb +34 -19
  38. data/lib/gettext/locale.rb +3 -13
  39. data/lib/gettext/locale_default.rb +2 -2
  40. data/lib/gettext/locale_win32.rb +27 -7
  41. data/lib/gettext/mo.rb +6 -1
  42. data/lib/gettext/parser/activerecord.rb +115 -0
  43. data/lib/gettext/parser/glade.rb +3 -1
  44. data/lib/gettext/parser/ruby.rb +56 -57
  45. data/lib/gettext/poparser.rb +297 -0
  46. data/lib/gettext/rails.rb +161 -3
  47. data/lib/gettext/rgettext.rb +19 -9
  48. data/lib/gettext/rmsgfmt.rb +95 -363
  49. data/lib/gettext/rmsgmerge.rb +381 -0
  50. data/lib/gettext/string.rb +26 -0
  51. data/lib/gettext/textdomain.rb +21 -18
  52. data/lib/gettext/utils.rb +55 -0
  53. data/lib/gettext/version.rb +1 -1
  54. data/po/cs/rails.po +83 -0
  55. data/po/cs/rgettext.po +104 -0
  56. data/po/de/rails.po +79 -0
  57. data/po/de/rgettext.po +72 -21
  58. data/po/es/rails.po +80 -0
  59. data/po/es/rgettext.po +75 -19
  60. data/po/fr/rails.po +81 -0
  61. data/po/fr/rgettext.po +75 -19
  62. data/po/it/rgettext.po +68 -17
  63. data/po/ja/rails.po +78 -0
  64. data/po/ja/rgettext.po +71 -20
  65. data/po/ko/rails.po +77 -0
  66. data/po/ko/rgettext.po +74 -22
  67. data/po/nl/rails.po +80 -0
  68. data/po/nl/rgettext.po +102 -0
  69. data/po/pt_BR/rails.po +79 -0
  70. data/po/pt_BR/rgettext.po +77 -24
  71. data/po/rails.pot +80 -0
  72. data/po/rgettext.pot +63 -13
  73. data/po/sv/rgettext.po +63 -15
  74. data/samples/cgi/cookie.cgi +5 -0
  75. data/samples/cgi/helloerb1.cgi +4 -0
  76. data/samples/cgi/helloerb2.cgi +5 -0
  77. data/samples/cgi/index.cgi +5 -0
  78. data/samples/cgi/locale/cs/LC_MESSAGES/helloerb1.mo +0 -0
  79. data/samples/cgi/locale/cs/LC_MESSAGES/helloerb2.mo +0 -0
  80. data/samples/cgi/locale/cs/LC_MESSAGES/hellolib.mo +0 -0
  81. data/samples/cgi/locale/cs/LC_MESSAGES/main.mo +0 -0
  82. data/samples/cgi/locale/fr/LC_MESSAGES/main.mo +0 -0
  83. data/samples/cgi/locale/ko/LC_MESSAGES/helloerb1.mo +0 -0
  84. data/samples/cgi/locale/ko/LC_MESSAGES/helloerb2.mo +0 -0
  85. data/samples/cgi/locale/ko/LC_MESSAGES/hellolib.mo +0 -0
  86. data/samples/cgi/locale/ko/LC_MESSAGES/main.mo +0 -0
  87. data/samples/cgi/locale/nl/LC_MESSAGES/helloerb1.mo +0 -0
  88. data/samples/cgi/locale/nl/LC_MESSAGES/helloerb2.mo +0 -0
  89. data/samples/cgi/locale/nl/LC_MESSAGES/hellolib.mo +0 -0
  90. data/samples/cgi/locale/nl/LC_MESSAGES/main.mo +0 -0
  91. data/samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb1.mo +0 -0
  92. data/samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb2.mo +0 -0
  93. data/samples/cgi/locale/pt_BR/LC_MESSAGES/hellolib.mo +0 -0
  94. data/samples/cgi/locale/pt_BR/LC_MESSAGES/main.mo +0 -0
  95. data/samples/cgi/po/cs/helloerb1.po +66 -0
  96. data/samples/cgi/po/cs/helloerb2.po +52 -0
  97. data/samples/cgi/po/cs/hellolib.po +25 -0
  98. data/samples/cgi/po/cs/main.po +78 -0
  99. data/samples/cgi/po/fr/main.po +8 -8
  100. data/samples/cgi/po/ko/helloerb1.po +2 -3
  101. data/samples/cgi/po/ko/helloerb2.po +1 -2
  102. data/samples/cgi/po/ko/hellolib.po +1 -2
  103. data/samples/cgi/po/ko/main.po +2 -3
  104. data/samples/cgi/po/nl/helloerb1.po +60 -0
  105. data/samples/cgi/po/nl/helloerb2.po +52 -0
  106. data/samples/cgi/po/nl/hellolib.po +24 -0
  107. data/samples/cgi/po/nl/main.po +76 -0
  108. data/samples/cgi/po/pt_BR/helloerb1.po +59 -0
  109. data/samples/cgi/po/pt_BR/helloerb2.po +51 -0
  110. data/samples/cgi/po/pt_BR/hellolib.po +22 -0
  111. data/samples/cgi/po/pt_BR/main.po +75 -0
  112. data/samples/locale/cs/LC_MESSAGES/hello.mo +0 -0
  113. data/samples/locale/cs/LC_MESSAGES/hello2.mo +0 -0
  114. data/samples/locale/cs/LC_MESSAGES/hello_noop.mo +0 -0
  115. data/samples/locale/cs/LC_MESSAGES/hello_plural.mo +0 -0
  116. data/samples/locale/cs/LC_MESSAGES/helloglade2.mo +0 -0
  117. data/samples/locale/cs/LC_MESSAGES/hellogtk.mo +0 -0
  118. data/samples/locale/cs/LC_MESSAGES/hellotk.mo +0 -0
  119. data/samples/locale/fr/LC_MESSAGES/helloglade2.mo +0 -0
  120. data/samples/locale/ko/LC_MESSAGES/hello.mo +0 -0
  121. data/samples/locale/ko/LC_MESSAGES/hello2.mo +0 -0
  122. data/samples/locale/ko/LC_MESSAGES/hello_noop.mo +0 -0
  123. data/samples/locale/ko/LC_MESSAGES/hello_plural.mo +0 -0
  124. data/samples/locale/ko/LC_MESSAGES/helloglade2.mo +0 -0
  125. data/samples/locale/ko/LC_MESSAGES/hellogtk.mo +0 -0
  126. data/samples/locale/ko/LC_MESSAGES/hellotk.mo +0 -0
  127. data/samples/locale/nl/LC_MESSAGES/hello.mo +0 -0
  128. data/samples/locale/nl/LC_MESSAGES/hello2.mo +0 -0
  129. data/samples/locale/nl/LC_MESSAGES/hello_noop.mo +0 -0
  130. data/samples/locale/nl/LC_MESSAGES/hello_plural.mo +0 -0
  131. data/samples/locale/nl/LC_MESSAGES/helloglade2.mo +0 -0
  132. data/samples/locale/nl/LC_MESSAGES/hellogtk.mo +0 -0
  133. data/samples/locale/nl/LC_MESSAGES/hellotk.mo +0 -0
  134. data/samples/locale/pt_BR/LC_MESSAGES/hello.mo +0 -0
  135. data/samples/locale/pt_BR/LC_MESSAGES/hello2.mo +0 -0
  136. data/samples/locale/pt_BR/LC_MESSAGES/hello_noop.mo +0 -0
  137. data/samples/locale/pt_BR/LC_MESSAGES/hello_plural.mo +0 -0
  138. data/samples/locale/pt_BR/LC_MESSAGES/helloglade2.mo +0 -0
  139. data/samples/locale/pt_BR/LC_MESSAGES/hellogtk.mo +0 -0
  140. data/samples/locale/pt_BR/LC_MESSAGES/hellotk.mo +0 -0
  141. data/samples/po/cs/hello.po +23 -0
  142. data/samples/po/cs/hello2.po +31 -0
  143. data/samples/po/cs/hello_noop.po +27 -0
  144. data/samples/po/cs/hello_plural.po +26 -0
  145. data/samples/po/cs/helloglade2.po +37 -0
  146. data/samples/po/cs/hellogtk.po +23 -0
  147. data/samples/po/cs/hellotk.po +23 -0
  148. data/samples/po/fr/helloglade2.po +2 -2
  149. data/samples/po/hello.pot +1 -0
  150. data/samples/po/hello2.pot +1 -0
  151. data/samples/po/hello_noop.pot +2 -1
  152. data/samples/po/hello_plural.pot +6 -2
  153. data/samples/po/helloglade2.pot +8 -3
  154. data/samples/po/hellotk.pot +4 -0
  155. data/samples/po/ko/hello.po +1 -2
  156. data/samples/po/ko/hello2.po +1 -2
  157. data/samples/po/ko/hello_noop.po +1 -2
  158. data/samples/po/ko/hello_plural.po +1 -2
  159. data/samples/po/ko/helloglade2.po +2 -2
  160. data/samples/po/ko/hellogtk.po +1 -2
  161. data/samples/po/ko/hellotk.po +1 -2
  162. data/samples/po/nl/hello.po +24 -0
  163. data/samples/po/nl/hello2.po +32 -0
  164. data/samples/po/nl/hello_noop.po +28 -0
  165. data/samples/po/nl/hello_plural.po +26 -0
  166. data/samples/po/nl/helloglade2.po +31 -0
  167. data/samples/po/nl/hellogtk.po +24 -0
  168. data/samples/po/nl/hellotk.po +24 -0
  169. data/samples/po/pt_BR/hello.po +6 -5
  170. data/samples/po/pt_BR/hello2.po +6 -5
  171. data/samples/po/pt_BR/hello_noop.po +6 -5
  172. data/samples/po/pt_BR/hello_plural.po +6 -6
  173. data/samples/po/pt_BR/helloglade2.po +6 -5
  174. data/samples/po/pt_BR/hellogtk.po +6 -5
  175. data/samples/po/pt_BR/hellotk.po +6 -5
  176. data/samples/rails/README +21 -15
  177. data/samples/rails/Rakefile +10 -1
  178. data/samples/rails/app/controllers/application.rb +10 -18
  179. data/samples/rails/app/controllers/blog_controller.rb +1 -5
  180. data/samples/rails/app/helpers/blog_helper.rb +1 -1
  181. data/samples/rails/app/models/article.rb +15 -0
  182. data/samples/rails/app/views/blog/_form.rhtml +2 -2
  183. data/samples/rails/config/boot.rb +17 -0
  184. data/samples/rails/config/database.yml +6 -4
  185. data/samples/rails/config/environment.rb +40 -75
  186. data/samples/rails/config/environments/development.rb +12 -7
  187. data/samples/rails/config/environments/production.rb +17 -6
  188. data/samples/rails/config/environments/test.rb +8 -6
  189. data/samples/rails/locale/cs/LC_MESSAGES/blog.mo +0 -0
  190. data/samples/rails/locale/cs/LC_MESSAGES/gettext_plugin.mo +0 -0
  191. data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
  192. data/samples/rails/locale/de/LC_MESSAGES/gettext_plugin.mo +0 -0
  193. data/samples/rails/locale/en/LC_MESSAGES/blog.mo +0 -0
  194. data/samples/rails/locale/es/LC_MESSAGES/blog.mo +0 -0
  195. data/samples/rails/locale/es/LC_MESSAGES/gettext_plugin.mo +0 -0
  196. data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
  197. data/samples/rails/locale/fr/LC_MESSAGES/{lang_helper.mo → gettext_plugin.mo} +0 -0
  198. data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
  199. data/samples/rails/locale/ja/LC_MESSAGES/{lang_helper.mo → gettext_plugin.mo} +0 -0
  200. data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
  201. data/samples/rails/locale/ko/LC_MESSAGES/gettext_plugin.mo +0 -0
  202. data/samples/rails/locale/nl/LC_MESSAGES/blog.mo +0 -0
  203. data/samples/rails/locale/nl/LC_MESSAGES/gettext_plugin.mo +0 -0
  204. data/samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
  205. data/samples/rails/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo +0 -0
  206. data/samples/rails/po/blog.pot +57 -37
  207. data/samples/rails/po/cs/blog.po +116 -0
  208. data/samples/rails/po/cs/gettext_plugin.po +29 -0
  209. data/samples/rails/po/de/blog.po +70 -51
  210. data/samples/rails/po/de/{lang_helper.po → gettext_plugin.po} +4 -5
  211. data/samples/rails/po/en/blog.po +111 -0
  212. data/samples/rails/po/es/blog.po +67 -47
  213. data/samples/rails/po/es/{lang_helper.po → gettext_plugin.po} +5 -5
  214. data/samples/rails/po/fr/blog.po +65 -45
  215. data/samples/rails/po/fr/{lang_helper.po → gettext_plugin.po} +4 -4
  216. data/samples/rails/po/{lang_helper.pot → gettext_plugin.pot} +4 -4
  217. data/samples/rails/po/ja/blog.po +64 -44
  218. data/samples/rails/po/ja/{lang_helper.po → gettext_plugin.po} +4 -4
  219. data/samples/rails/po/ko/blog.po +65 -46
  220. data/samples/rails/po/ko/{lang_helper.po → gettext_plugin.po} +5 -6
  221. data/samples/rails/po/nl/blog.po +115 -0
  222. data/samples/rails/po/nl/gettext_plugin.po +28 -0
  223. data/samples/rails/po/pt_BR/blog.po +109 -0
  224. data/samples/rails/po/pt_BR/gettext_plugin.po +27 -0
  225. data/samples/rails/public/images/rails.png +0 -0
  226. data/samples/rails/public/index.html +272 -71
  227. data/samples/rails/public/javascripts/controls.js +441 -166
  228. data/samples/rails/public/javascripts/dragdrop.js +261 -279
  229. data/samples/rails/public/javascripts/effects.js +657 -277
  230. data/samples/rails/public/javascripts/prototype.js +911 -223
  231. data/samples/rails/public/robots.txt +1 -0
  232. data/samples/rails/public/stylesheets/scaffold.css +1 -1
  233. data/samples/rails/script/about +3 -0
  234. data/samples/rails/script/breakpointer +3 -4
  235. data/samples/rails/script/console +3 -23
  236. data/samples/rails/script/destroy +3 -7
  237. data/samples/rails/script/generate +3 -7
  238. data/samples/rails/script/performance/benchmarker +3 -0
  239. data/samples/rails/script/performance/profiler +3 -0
  240. data/samples/rails/script/plugin +3 -0
  241. data/samples/rails/script/process/reaper +3 -0
  242. data/samples/rails/script/process/spawner +3 -0
  243. data/samples/rails/script/process/spinner +3 -0
  244. data/samples/rails/script/runner +3 -29
  245. data/samples/rails/script/server +3 -49
  246. data/samples/rails/vendor/plugins/gettext/init.rb +19 -0
  247. data/samples/rails/vendor/{lang_helper.rb → plugins/gettext/lib/gettext_plugin.rb} +15 -11
  248. data/src/poparser.ry +171 -0
  249. data/test/gettext_runner.rb +3 -1
  250. data/test/gettext_test.rb +56 -31
  251. data/test/gettext_test_cgi.rb +12 -0
  252. data/test/gettext_test_parser.rb +3 -0
  253. data/test/gettext_test_string.rb +14 -0
  254. data/test/locale/cr/LC_MESSAGES/plural.mo +0 -0
  255. data/test/locale/da/LC_MESSAGES/plural.mo +0 -0
  256. data/test/locale/da/LC_MESSAGES/plural_error.mo +0 -0
  257. data/test/locale/fr/LC_MESSAGES/plural.mo +0 -0
  258. data/test/locale/fr/LC_MESSAGES/plural_error.mo +0 -0
  259. data/test/locale/ir/LC_MESSAGES/plural.mo +0 -0
  260. data/test/locale/la/LC_MESSAGES/plural.mo +0 -0
  261. data/test/locale/li/LC_MESSAGES/plural.mo +0 -0
  262. data/test/locale/po/LC_MESSAGES/plural.mo +0 -0
  263. data/test/locale/sl/LC_MESSAGES/plural.mo +0 -0
  264. data/test/po/cr/plural.po +3 -3
  265. data/test/po/da/plural.po +2 -2
  266. data/test/po/da/plural_error.po +2 -1
  267. data/test/po/fr/plural.po +2 -2
  268. data/test/po/fr/plural_error.po +2 -1
  269. data/test/po/ir/plural.po +3 -3
  270. data/test/po/la/plural.po +3 -3
  271. data/test/po/li/plural.po +3 -3
  272. data/test/po/po/plural.po +3 -3
  273. data/test/po/sl/plural.po +4 -4
  274. data/test/test.sh +1 -0
  275. data/test/test_rubyparser.rb +20 -0
  276. data/test/{test_rubyparser_n.rb → test_rubyparser_N.rb} +0 -0
  277. metadata +163 -43
  278. data/README.ja +0 -115
  279. data/data/locale/de/LC_MESSAGES/rmsgfmt.mo +0 -0
  280. data/data/locale/es/LC_MESSAGES/rmsgfmt.mo +0 -0
  281. data/data/locale/fr/LC_MESSAGES/rmsgfmt.mo +0 -0
  282. data/data/locale/it/LC_MESSAGES/rmsgfmt.mo +0 -0
  283. data/data/locale/ja/LC_MESSAGES/rmsgfmt.mo +0 -0
  284. data/data/locale/ko/LC_MESSAGES/rmsgfmt.mo +0 -0
  285. data/data/locale/pt_BR/LC_MESSAGES/rmsgfmt.mo +0 -0
  286. data/data/locale/sv/LC_MESSAGES/rmsgfmt.mo +0 -0
  287. data/gettext-1.0.0-mswin32.gem +0 -0
  288. data/po/de/rmsgfmt.po +0 -45
  289. data/po/es/rmsgfmt.po +0 -43
  290. data/po/fr/rmsgfmt.po +0 -43
  291. data/po/it/rmsgfmt.po +0 -44
  292. data/po/ja/rmsgfmt.po +0 -43
  293. data/po/ko/rmsgfmt.po +0 -40
  294. data/po/pt_BR/rmsgfmt.po +0 -42
  295. data/po/rmsgfmt.pot +0 -40
  296. data/po/sv/rmsgfmt.po +0 -43
  297. data/samples/rails/locale/de/LC_MESSAGES/lang_helper.mo +0 -0
  298. data/samples/rails/locale/es/LC_MESSAGES/lang_helper.mo +0 -0
  299. data/samples/rails/locale/ko/LC_MESSAGES/lang_helper.mo +0 -0
  300. data/samples/rails/log/development.log +0 -378
  301. data/src/rmsgfmt.ry +0 -233
data/ChangeLog CHANGED
@@ -1,8 +1,201 @@
1
+ 2005-12-29 Masao Mutoh <mutoh@highway.ne.jp>
2
+
3
+ * po/de/rgettext.po: Fixed a compilingproblem.
4
+ * README, NEWS: Updated.
5
+ * lib/gettext/rails.rb: Fix a problem when
6
+ http://localhost:3000/rails_info/properties is called.
7
+ Pointed out by Kazuhiro NISHIYAMA.
8
+ * po/de/rails.po: Added by Sasa Ebach.
9
+ * po/de/rgettext.po, samples/rails/po/de/*.po:
10
+ Updated by Sasa Ebach.
11
+
12
+ 2005-12-28 Masao Mutoh <mutoh@highway.ne.jp>
13
+
14
+ * NEWS: Updated.
15
+ * README: Updated.
16
+ * po/es/rails.po: Added by David Espada.
17
+ * po/es/rgettext.po, samples/rails/po/es/*.po:
18
+ Updated by David Espada.
19
+
20
+ 2005-12-27 Masao Mutoh <mutoh@highway.ne.jp>
21
+
22
+ * test/gettext_test_string.rb: Add a test.
23
+
24
+ 2005-12-26 Masao Mutoh <mutoh@highway.ne.jp>
25
+
26
+ * samples/rails/app/controllers/blog_controller.rb: Updated.
27
+
28
+ 2005-12-25 Masao Mutoh <mutoh@highway.ne.jp>
29
+
30
+ * NEWS: Updated.
31
+ * README: Updated.
32
+ * lib/gettext/parser/activerecord.rb: Don't show the messages
33
+ when ActiveRecord and its subclasses are not found.
34
+ * po/ja/rgettext.po: Updated.
35
+
36
+ 2005-12-24 Masao Mutoh <mutoh@highway.ne.jp>
37
+
38
+ * samples/po/nl/*.po, samples/cgi/po/nl/*.po,
39
+ samples/rails/po/nl/*.po, po/nl/rgettext.po,
40
+ rails.po: Added Dutch locale by Menno Jonkers.
41
+
42
+ 2005-12-23 Masao Mutoh <mutoh@highway.ne.jp>
43
+
44
+ * README: Updated.
45
+ * README.ja: Removed.
46
+ * po/ko/rails.po: Added by Gyoung-Yoon Noh.
47
+ * po/ko/rgettext.po, samples/po/ko/*.po, samples/cgi/po/ko/*.po,
48
+ samples/rails/po/ko/*.po: Updated by Gyoung-Yoon Noh.
49
+ * lib/gettext/textdomain.rb: Fixed a bug when mo-files are not found.
50
+ * samples/rails/po/en/blog.po: Added for English.
51
+ You can change the table names, field names of ActiveRecord even you use English.
52
+ * lib/gettext/textdomain.rb: Code cleanup.
53
+ * samples/rails/vendor/plugins/gettext/lib/gettext_plugin.rb: begin a new line
54
+ each 6 language.
55
+ * samples/rails/vendor/plugins/gettext/po/*: Update version info.
56
+
57
+ 2005-12-21 Masao Mutoh <mutoh@highway.ne.jp>
58
+
59
+ * samples/rails/README: Updated.
60
+ * lib/gettext/utils.rb: Added. GetText.update_pofiles.
61
+ * Rakefile, samples/rails/Rakefile: Use GetText.update_pofiles.
62
+
63
+ 2005-12-20 Masao Mutoh <mutoh@highway.ne.jp>
64
+
65
+ * lib/gettext/utils.rb: Added. Implement GetText.updatepo.
66
+ * Rakefile:
67
+
68
+ 2005-12-19 Masao Mutoh <mutoh@highway.ne.jp>
69
+
70
+ * samples/po/cs/*.po, samples/cgi/po/cs/*.po,
71
+ samples/rails/po/cs/*.po, po/cs/rgettext.po,
72
+ rails.po: Added Czech locale by Karel Miarka.
73
+
74
+ 2005-12-18 Masao Mutoh <mutoh@highway.ne.jp>
75
+
76
+ * po/fr/rgettext.po, samples/cgi/po/fr/main.po:
77
+ Updated by Laurent Sansonetti.
78
+ * po/fr/rails.po: Added by Laurent Sansonetti.
79
+ * po/pt_BR/rails.po, samples/cgi/po/pt_BR/*.po,
80
+ samples/rails/po/pt_BR/*.po:
81
+ Added by Joao Pedrosa.
82
+ * po/pt_BR/rgettext.po, samples/po/pt_BR/*.po:
83
+ Updated by Joao Pedrosa.
84
+
85
+ 2005-12-17 Masao Mutoh <mutoh@highway.ne.jp>
86
+
87
+ * po/rails.pot, po/ja/rails.po: Added.
88
+ * test/gettext_test_string.rb: Added.
89
+
90
+ 2005-12-12 Masao Mutoh <mutoh@highway.ne.jp>
91
+
92
+ * samples/rails/Rakefile: Added "updatepo" task.
93
+ * lib/gettext/parser/activerecord.rb: Added a parser for
94
+ ActiveRecord.
95
+
96
+ 2005-12-10 Masao Mutoh <mutoh@highway.ne.jp>
97
+
98
+ * lib/gettext/rails.rb: Added GetText information to
99
+ Rails::Info.
100
+
101
+ 2005-12-08 Masao Mutoh <mutoh@highway.ne.jp>
102
+
103
+ * test/gettext_test_cgi.rb: Added tests for Locale.normalize.
104
+ * lib/gettext/cgi.rb: Fix a problem of Locale.normalize.
105
+
106
+ 2005-12-07 Masao Mutoh <mutoh@highway.ne.jp>
107
+
108
+ * lib/gettext/cgi.rb: Separate Locale.normalize.
109
+
110
+ 2005-12-06 Masao Mutoh <mutoh@highway.ne.jp>
111
+
112
+ * test/gettext_test.rb, test/po/{da,fr}/plural_error.po:
113
+ Fix test_plural_format_invalid.
114
+
115
+ 2005-12-05 Masao Mutoh <mutoh@highway.ne.jp>
116
+
117
+ * test/gettext_test.rb, test/po/*/plural.po: Fix test case.
118
+
119
+ 2005-12-04 Masao Mutoh <mutoh@highway.ne.jp>
120
+
121
+ * samples/rails/vendor/plugins/gettext/lib/gettext_plugin.rb: Revised comments.
122
+
123
+ 2005-12-01 Masao Mutoh <mutoh@highway.ne.jp>
124
+
125
+ * lib/gettext/rails.rb: Improved to support L10n for ActiveRecord::Errors.
126
+ Improve ActionController::Base.init_gettext(_main).
127
+ * samples/rails/app/controller/application.rb: Improved comments.
128
+ * samples/rails/app/views/blog/_form.rhtml: Add information to validate.
129
+
130
+ 2005-11-27 Masao Mutoh <mutoh@highway.ne.jp>
131
+
132
+ * lib/gettext/string.rb: Added. New syntax ":{foo} is bar." % {:foo => "foo"}
133
+ is supported.
134
+ * lib/gettext/rmsgmerge.rb: Added.
135
+ * lib/gettext.rb, lib/gettext/textdomain.rb: Fix a bug of GetText.ngettext.
136
+
137
+ 2005-11-25 Masao Mutoh <mutoh@highway.ne.jp>
138
+
139
+ * samples/rails/app/*: Rewrite for RoR 0.14.x.
140
+ * lib/gettext/rails.rb: Added ActionController::Base.init_gettext.
141
+ * samples/rails/app/controllers/application.rb: ditto.
142
+
143
+ 2005-11-23 Masao Mutoh <mutoh@highway.ne.jp>
144
+
145
+ * samples/rails/app/controllers/application.rb: Use
146
+ GetText.output_charset to set the Content-Type.
147
+ * lib/gettext/rails.rb: Call bindtextdomain in models(ActiveRecord)
148
+ when bindtextdomain is called in before_filter of ActionController.
149
+ Inspired from Simon Santoro.
150
+ * samples/rails/app/models/article.rb: Added to validate description
151
+ with localized message.
152
+
153
+ 2005-10-22 Masao Mutoh <mutoh@highway.ne.jp>
154
+
155
+ * po/*: Merge rmsgfmt to rgettext.
156
+ * po/**/rmsgfmt.po[t]: Removed(merge to rgettext.po[t]).
157
+ * lib/gettext/rmsgmerge.rb: Added by speakillof.
158
+ * bin/rmsgmerge: Added.
159
+ * src/poparser.ry: Renamed rmsgfmt.ry to poparser.ry.
160
+ * lib/gettext/rmsgfmt.rb: Added. Separate code from rmsgfmt.ry.
161
+ * Rakefile: Check racc is existed or not.
162
+ * lib/gettext/mo.rb: Follow poparser.ry changes.
163
+
164
+ 2005-09-16 Masao Mutoh <mutoh@highway.ne.jp>
165
+
166
+ * lib/gettext/rgettext.rb: Fixed a header of time strings.
167
+ Reported by Karel Miarka.
168
+
169
+ 2005-09-12 speakillof <speakillof@yahoo.co.jp>
170
+
171
+ * lib/gettext/parser/ruby.rb: Added "here document" support.
172
+
173
+ 2005-09-05 Masao Mutoh <mutoh@highway.ne.jp>
174
+
175
+ * lib/gettext.rb: Added GetText.locale. Both of GetText.locale= and
176
+ GetText.locale behaves "global". If you set this once, follow bindtextdomain(s)
177
+ use this value.
178
+ * lib/gettext/cgi.rb: Added Locale.set.
179
+ * lib/gettext/locale_win32.rb: ENV value is prior to native locale.
180
+ Added Locale.set.
181
+ * test/gettext_test.rb: Follow above changes.
182
+
183
+ 2005-09-04 Masao Mutoh <mutoh@highway.ne.jp>
184
+
185
+ * Rakefile: move test task to testunit task.
186
+ * samples/cgi/*.cgi: Support rubygems.
187
+ * lib/gettext/rails.rb: The default of "charset" parameter becomes nil
188
+ instead of "UTF-8". You need to call GetText.output_charset=() first.
189
+ * samples/rails/app/controllers/application.rb:
190
+ Call GetText.output_charset = "UTF-8" first.
191
+
1
192
  2005-09-03 Masao Mutoh <mutoh@highway.ne.jp>
2
193
 
194
+ * src/rmsgfmt.ry: Fixed VERSION info.
3
195
  * Rakefile: Update to make package correctly. Call create_mofiles
4
196
  for test/po/
5
197
  Add test task.
198
+ Create win32 package correctly on Win32.
6
199
  * test/makemo.rb: Removed. Use rake makemo instead.
7
200
  * NEWS: Added.
8
201
  * 1.0.0 released.
data/NEWS CHANGED
@@ -1,9 +1,59 @@
1
+ = Ruby-GetText-Package-1.1.0 (2005-12-29)
2
+
3
+ * Added some functions which managed po/mo files easily.
4
+ * GetText.update_pofiles creates/updates pot/po files.
5
+ The idea is from Sascha Ebach.
6
+
7
+ * String% is extended to accept named argument.
8
+ "%{file} is selected." % {:file => "foo.rb"}
9
+ Proposed by Sascha Ebach and Kazuhiro NISHIYAMA.
10
+
11
+ * Enhanced Ruby on Rails support.
12
+ * ActiveRecord support. Inspired from Simon Santoro(rgtrans).
13
+ * the error messages are localized.
14
+ Also, you can add your own messages with _("").
15
+ * You can use gettext methods in the models unless
16
+ preparing anything.
17
+
18
+ * rgettext extracts the table names/field names
19
+ of the subclass of ActiveRecord::Base as the msgid.
20
+
21
+ Even for the English developers who don't need
22
+ to localize their application, this function is
23
+ useful because the developer can rename
24
+ the table/field names using "en" locale.
25
+
26
+ * More simple to set up ApplicationController.
27
+ Now, you need to call just init_gettext only.
28
+
29
+ class ApplicationController < ActionController::Base
30
+ init_gettext "myapp" #Easy!
31
+ end
32
+
33
+ This "myapp" domain affects all of the controllers/views/models.
34
+
35
+ * Sample "blog" application with rails.
36
+ Improved the sample application on RoR. See: samples/rails/*.
37
+
38
+ * New/Updated translations:
39
+ Czech - Karel Miarka (NEW)
40
+ Dutch - Menno Jonkers (NEW)
41
+ French - Laurent Sansonetti
42
+ German - Sasa Ebach
43
+ Japanese - Masao Mutoh
44
+ Korean - Gyoung-Yoon Noh
45
+ Portuguese(Brazil) - Joao Pedrosa
46
+ Spanish - David Espada
47
+
48
+ * bugfixes.
49
+
1
50
  = Ruby-GetText-Package-1.0.0 (2005-09-03)
2
51
 
3
52
  * Ruby on Rails is supported.
4
53
  Includes sample in samples/rails/
5
54
  * gem is supported. ($ gem install gettext)
6
55
  * rake is supported.
56
+ * Not required racc anymore on installing time.
7
57
  * New/Updated translations:
8
58
  French - Laurent Sansonetti
9
59
  German - Sven Herzberg
@@ -13,7 +63,7 @@
13
63
  * bugfixes.
14
64
 
15
65
  * Moved to http://rubyforge.org/projects/gettext/
16
- * A Mailinglist started.
66
+ * Mailinglists started.
17
67
 
18
68
 
19
69
  = Ruby-GetText-Package-0.9.0 (2005-05-01)
data/README CHANGED
@@ -38,8 +38,9 @@ Requirements
38
38
  (for Development only)
39
39
  * Racc-1.4.3 or later
40
40
  <http://www.ruby-lang.org/raa/list.rhtml?name=racc>
41
- (for installing time with setup.rb. You don't need
42
- this installing via gem)
41
+ (for compiling src/rmsgfmt.ry only)
42
+ * Ruby on Rails 1.0.0 or later (if you use this package with Ruby on Rails)
43
+ <http://www.rubyonrails.org/>
43
44
 
44
45
  Install
45
46
  -------
@@ -98,15 +99,32 @@ License
98
99
 
99
100
  Translators
100
101
  -----------
101
- French - Laurent Sansonetti
102
- German - Detlef Reichl, Sven Herzberg
103
- Italian - Gabriele Renzi
104
- Japanese - Masao Mutoh
105
- Korean - Gyoung-Yoon Noh
106
- Portuguese(Brazil) - Joao Pedrosa
107
- Spanish - David Espada, David Moreno Garza
108
- Swedish - Nikolai Weibull
109
-
102
+ Czech - Karel Miarka <kajism at yahoo.com>
103
+ Dutch - Menno Jonkers <ruby-gettext at jonkers.com>
104
+ French - Laurent Sansonetti <laurent.sansonetti at gmail.com>
105
+ German - Detlef Reichl <detlef.reichl at gmx.org>
106
+ Sven Herzberg <herzi at abi02.de>
107
+ Sascha Ebach <se at digitale-wertschoepfung.de>
108
+ Italian - Gabriele Renzi <surrender_it at yahoo.it>
109
+ Japanese - Masao Mutoh <mutoh at highway.ne.jp>
110
+ Korean - Gyoung-Yoon Noh <nohmad at gmail.com>
111
+ Portuguese(Brazil) - Joao Pedrosa <joaopedrosa at gmail.com>
112
+ Spanish - David Espada <davinci at escomposlinux.org> (current)
113
+ David Moreno Garza <damog at damog.net>
114
+ Swedish - Nikolai Weibull <mailing-lists.ruby-talk at rawuncut.elitemail.org>
115
+
116
+ Status of translations
117
+ ----------------------
118
+ cs - 1.1.0
119
+ fr - 1.1.0
120
+ de - 1.1.0
121
+ es - 1.1.0
122
+ it - 1.0.0
123
+ ja - 1.1.0
124
+ ko - 1.1.0
125
+ nl - 1.1.0
126
+ pt_BR - 1.1.0
127
+ sv - 0.8.0
110
128
 
111
129
  Maintainer
112
130
  ----------
data/Rakefile CHANGED
@@ -16,102 +16,116 @@ require 'rubygems'
16
16
  require 'rake'
17
17
  require 'rake/packagetask'
18
18
  require 'rake/gempackagetask'
19
+ require 'gettext/version'
19
20
 
20
21
  RUBYBIN = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) + " "
21
22
 
23
+ PKG_VERSION = GetText::VERSION
24
+
22
25
  task :default => [:makemo]
23
26
 
24
27
  ############################################################
25
28
  # GetText tasks
26
29
  ############################################################
27
- desc "Create lib/gettext/rmsgfmt.rb"
28
- task :rmsgfmt do
29
- racc = RUBYBIN + File.join(Config::CONFIG['bindir'], "racc")
30
- cmd = "#{racc} -g src/rmsgfmt.ry -o src/rmsgfmt.tmp.rb"
31
- system(cmd)
32
-
33
- $stderr.puts cmd
34
-
35
- file = open("lib/gettext/rmsgfmt.rb", "w")
36
-
37
- file.print "=begin\n"
38
- file.print <<-EOS
39
- rmsgfmt.rb - Generate a .mo
30
+ desc "Create lib/gettext/poparser.rb"
31
+ task :poparser do
32
+ poparser_path = "lib/gettext/poparser.rb"
33
+ racc = File.join(Config::CONFIG['bindir'], "racc")
34
+ if ! FileTest.exist?(racc)
35
+ puts "racc was not found: #{racc}"
36
+ exit 1
37
+ else FileTest.exist?(racc)
38
+ cmd = "#{RUBYBIN} #{racc} -g src/poparser.ry -o src/poparser.tmp.rb"
39
+ system(cmd)
40
+ $stderr.puts cmd
41
+
42
+ file = open(poparser_path, "w")
43
+
44
+ file.print "=begin\n"
45
+ file.print <<-EOS
46
+ poparser.rb - Generate a .mo
40
47
 
41
48
  Copyright (C) 2003-2005 Masao Mutoh <mutoh@highway.ne.jp>
42
49
 
43
50
  You may redistribute it and/or modify it under the same
44
51
  license terms as Ruby.
45
52
  EOS
46
- file.print "=end\n\n"
47
-
48
- tmpfile = open("src/rmsgfmt.tmp.rb")
49
- file.print tmpfile.read
50
- file.close
51
- tmpfile.close
52
- File.delete("src/rmsgfmt.tmp.rb")
53
+ file.print "=end\n\n"
54
+
55
+ tmpfile = open("src/poparser.tmp.rb")
56
+ file.print tmpfile.read
57
+ file.close
58
+ tmpfile.close
59
+ File.delete("src/poparser.tmp.rb")
60
+ $stderr.puts "Create #{poparser_path}."
61
+ end
53
62
  end
54
63
 
64
+ ############################################################
65
+ # Manage po/mo files
66
+ ############################################################
67
+ require 'gettext/utils'
68
+
55
69
  task :makemo_test do
56
- require 'gettext/rmsgfmt'
57
70
  $stderr.puts "Create test mo files."
58
- GetText.create_mofiles(true, "test/po", "test/locale")
71
+ GetText.create_mofiles(false, "test/po", "test/locale")
59
72
  end
60
73
 
61
74
  desc "Create *.mo from *.po"
62
- task :makemo => [:rmsgfmt, :makemo_test] do
63
- require 'gettext/rmsgfmt'
64
-
75
+ task :makemo => [:poparser, :makemo_test] do
65
76
  $stderr.puts "Create rgettext/rmsgfmt mo files."
66
77
  GetText.create_mofiles(true)
67
78
 
68
79
  $stderr.puts "Create samples mo files."
69
- GetText.create_mofiles(true, "samples/po", "samples/locale")
80
+ GetText.create_mofiles(false, "samples/po", "samples/locale")
70
81
 
71
82
  $stderr.puts "Create samples/cgi mo files."
72
- GetText.create_mofiles(true, "samples/cgi/po", "samples/cgi/locale")
83
+ GetText.create_mofiles(false, "samples/cgi/po", "samples/cgi/locale")
73
84
 
74
85
  $stderr.puts "Create samples/rails mo files."
75
- GetText.create_mofiles(true, "samples/rails/po", "samples/rails/locale")
86
+ GetText.create_mofiles(false, "samples/rails/po", "samples/rails/locale")
76
87
 
77
88
  end
78
89
 
79
- def msgmerge(name, po_root, tmp_file = "tmp.pot")
80
- system("msgmerge #{po_root}/#{name}.pot #{tmp_file} -o #{po_root}/#{name}.pot")
81
-
82
- Dir.glob("#{po_root}/*/#{name}.po"){ |f|
83
- lang = /#{po_root}\/(.*)\//.match(f).to_a[1]
84
- system("msgmerge #{po_root}/#{lang}/#{name}.po #{tmp_file} -o #{po_root}/#{lang}/#{name}.po")
85
- cont =IO.read(f)
86
- cont.sub!(/(Project-Id-Version\:.*)(\d\.\d\.\d)/, "\\1#{GetText::VERSION}")
87
- File.open(f, "w") do |out|
88
- out.write(cont)
89
- end
90
- }
91
- end
92
-
93
- desc "Update *po files to match new version.(for me)"
90
+ desc "Update pot/po files to match new version."
94
91
  task :updatepo do
95
- require 'gettext/rgettext'
96
- # Update rgettext po files.
97
- GetText.rgettext("lib/gettext/rgettext.rb", "tmp.pot")
98
- msgmerge("rgettext", "po")
99
-
100
- # Update rmsgfmt po files.
101
- GetText.rgettext("lib/gettext/rmsgfmt.rb", "tmp.pot")
102
- msgmerge("rmsgfmt", "po")
103
- File.delete("tmp.pot")
92
+ #lib/gettext/*.rb -> rgettext.po
93
+ GetText.update_pofiles("rgettext",
94
+ Dir.glob("lib/**/*.rb") - ["lib/gettext/rails.rb"],
95
+ "ruby-gettext #{GetText::VERSION}")
96
+
97
+ #lib/gettext/rails.rb -> rails.po
98
+ GetText.update_pofiles("rails", ["lib/gettext/rails.rb"],
99
+ "ruby-gettext #{GetText::VERSION}")
104
100
  end
105
101
 
106
102
  desc "Setup Ruby-GetText-Package. (for setup.rb)"
107
103
  task :setup => [:makemo]
108
104
 
105
+ desc "Gather the newest po files. (for me)"
106
+ task :gatherpo => [:updatepo] do
107
+ mkdir_p "pofiles/original" unless FileTest.exist? "pofiles/original"
108
+ Dir.glob("**/*.pot").each do |f|
109
+ unless /^(pofiles|test)/ =~ f
110
+ copy f, "pofiles/original/"
111
+ end
112
+ end
113
+ Dir.glob("**/*.po").each do |f|
114
+ unless /^(pofiles|test)/ =~ f
115
+ lang = /po\/([^\/]*)\/(.*.po)/.match(f).to_a[1]
116
+ mkdir_p "pofiles/#{lang}" unless FileTest.exist? "pofiles/#{lang}"
117
+ copy f, "pofiles/#{lang}/"
118
+ Dir.glob("pofiles/original/*.pot").each do |f|
119
+ newpo = "pofiles/#{lang}/#{File.basename(f, ".pot")}.po"
120
+ copy f, newpo unless FileTest.exist? newpo
121
+ end
122
+ end
123
+ end
124
+ end
125
+
109
126
  ############################################################
110
127
  # Package tasks
111
128
  ############################################################
112
- require 'gettext/version'
113
-
114
- PKG_VERSION = GetText::VERSION
115
129
  desc "Create gem and tar.gz"
116
130
  spec = Gem::Specification.new do |s|
117
131
  s.name = 'gettext'
@@ -162,7 +176,7 @@ end
162
176
  # Misc tasks
163
177
  ############################################################
164
178
  desc "Test task (for shell environment only)"
165
- task :test => [:makemo_test] do
179
+ task :testunit => [:makemo_test] do
166
180
  unless /mswin32/ =~ RUBY_PLATFORM
167
181
  sh 'cd test; sh test.sh'
168
182
  end