gettext 1.91.0 → 1.92.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. data/ChangeLog +111 -1
  2. data/NEWS +35 -0
  3. data/README +26 -24
  4. data/bin/rgettext +2 -2
  5. data/bin/rmsgfmt +2 -2
  6. data/bin/rmsgmerge +2 -2
  7. data/doc/classes/ActionView/Helpers/FormBuilder.html +11 -11
  8. data/doc/classes/ActionView/TemplateFinder.html +152 -0
  9. data/doc/classes/ActiveRecord/Base.html +87 -87
  10. data/doc/classes/ActiveRecord/ConnectionAdapters/Column.html +6 -6
  11. data/doc/classes/GetText.html +617 -491
  12. data/doc/classes/GetText/ActiveRecordParser.html +13 -13
  13. data/doc/classes/GetText/ErbContainer.html +12 -12
  14. data/doc/classes/GetText/ErbParser.html +6 -6
  15. data/doc/classes/GetText/NoboundTextDomainError.html +1 -1
  16. data/doc/classes/GetText/PoParser.html +11 -11
  17. data/doc/classes/GetText/Rails.html +20 -20
  18. data/doc/classes/GetText/RubyParser.html +5 -0
  19. data/doc/classes/GetText/TextDomain.html +53 -53
  20. data/doc/classes/GetText/TextDomainManager.html +54 -54
  21. data/doc/classes/Iconv.html +20 -20
  22. data/doc/classes/Locale.html +151 -151
  23. data/doc/classes/Locale/Object.html +92 -92
  24. data/doc/classes/Locale/SystemBase.html +32 -32
  25. data/doc/classes/Locale/SystemCGI.html +31 -31
  26. data/doc/classes/Locale/SystemWin32.html +6 -6
  27. data/doc/classes/MOFile.html +311 -293
  28. data/doc/classes/MOFile/HeaderRev1.html +150 -0
  29. data/doc/classes/Module.html +6 -6
  30. data/doc/created.rid +1 -1
  31. data/doc/files/ChangeLog.html +143 -2
  32. data/doc/files/README.html +31 -25
  33. data/doc/files/lib/gettext/active_record_rb.html +1 -1
  34. data/doc/files/lib/gettext/mo_rb.html +1 -1
  35. data/doc/files/lib/gettext/parser/active_record_rb.html +1 -1
  36. data/doc/files/lib/gettext/parser/ruby_rb.html +1 -1
  37. data/doc/files/lib/gettext/poparser_rb.html +1 -1
  38. data/doc/files/lib/gettext/rails_rb.html +1 -1
  39. data/doc/files/lib/gettext/rgettext_rb.html +1 -1
  40. data/doc/files/lib/gettext/rmsgfmt_rb.html +2 -1
  41. data/doc/files/lib/gettext/utils_rb.html +1 -1
  42. data/doc/files/lib/gettext/version_rb.html +1 -1
  43. data/doc/files/lib/gettext_rb.html +1 -1
  44. data/doc/fr_class_index.html +2 -0
  45. data/doc/fr_method_index.html +133 -129
  46. data/lib/gettext.rb +49 -7
  47. data/lib/gettext/active_record.rb +49 -4
  48. data/lib/gettext/mo.rb +39 -12
  49. data/lib/gettext/parser/active_record.rb +6 -4
  50. data/lib/gettext/parser/ruby.rb +11 -4
  51. data/lib/gettext/poparser.rb +81 -52
  52. data/lib/gettext/rails.rb +28 -11
  53. data/lib/gettext/rgettext.rb +6 -1
  54. data/lib/gettext/rmsgfmt.rb +3 -11
  55. data/lib/gettext/utils.rb +7 -3
  56. data/lib/gettext/version.rb +1 -1
  57. data/po/bs/rails.po +55 -20
  58. data/po/bs/rgettext.po +3 -3
  59. data/po/ca/rails.po +58 -31
  60. data/po/ca/rgettext.po +16 -18
  61. data/po/cs/rails.po +55 -20
  62. data/po/cs/rgettext.po +3 -3
  63. data/po/de/rails.po +55 -27
  64. data/po/de/rgettext.po +21 -22
  65. data/po/el/rails.po +60 -36
  66. data/po/el/rgettext.po +15 -17
  67. data/po/eo/rails.po +51 -23
  68. data/po/eo/rgettext.po +21 -20
  69. data/po/es/rails.po +57 -31
  70. data/po/es/rgettext.po +17 -18
  71. data/po/et/rails.po +55 -20
  72. data/po/fr/rails.po +56 -21
  73. data/po/fr/rgettext.po +3 -3
  74. data/po/hr/rails.po +55 -20
  75. data/po/hr/rgettext.po +3 -3
  76. data/po/hu/rails.po +54 -26
  77. data/po/hu/rgettext.po +18 -17
  78. data/po/it/rails.po +55 -20
  79. data/po/it/rgettext.po +3 -3
  80. data/po/ja/rails.po +54 -26
  81. data/po/ja/rgettext.po +17 -18
  82. data/po/ko/rails.po +56 -21
  83. data/po/ko/rgettext.po +3 -3
  84. data/po/lv/rails.po +155 -0
  85. data/po/lv/rgettext.po +137 -0
  86. data/po/nb/rails.po +61 -34
  87. data/po/nb/rgettext.po +22 -19
  88. data/po/nl/rails.po +56 -21
  89. data/po/nl/rgettext.po +3 -3
  90. data/po/pt_BR/rails.po +53 -26
  91. data/po/pt_BR/rgettext.po +19 -19
  92. data/po/rails.pot +44 -16
  93. data/po/rgettext.pot +3 -3
  94. data/po/ru/rails.po +62 -36
  95. data/po/ru/rgettext.po +19 -19
  96. data/po/sr/rails.po +87 -58
  97. data/po/sr/rgettext.po +38 -33
  98. data/po/sv/rgettext.po +3 -3
  99. data/po/ua/rails.po +62 -32
  100. data/po/ua/rgettext.po +19 -17
  101. data/po/vi/rails.po +56 -28
  102. data/po/vi/rgettext.po +35 -34
  103. data/po/zh/rails.po +52 -24
  104. data/po/zh/rgettext.po +22 -24
  105. data/po/zh_TW/rails.po +51 -23
  106. data/po/zh_TW/rgettext.po +16 -18
  107. data/samples/cgi/cookie.cgi +0 -0
  108. data/samples/cgi/helloerb1.cgi +0 -0
  109. data/samples/cgi/helloerb2.cgi +0 -0
  110. data/samples/cgi/http.rb +0 -0
  111. data/samples/cgi/index.cgi +0 -0
  112. data/samples/cgi/po/lv/helloerb1.po +65 -0
  113. data/samples/cgi/po/lv/helloerb2.po +52 -0
  114. data/samples/cgi/po/lv/hellolib.po +24 -0
  115. data/samples/cgi/po/lv/main.po +77 -0
  116. data/samples/cgi/po/nb/helloerb1.po +16 -14
  117. data/samples/cgi/po/nb/helloerb2.po +14 -12
  118. data/samples/cgi/po/nb/hellolib.po +9 -7
  119. data/samples/cgi/po/nb/main.po +20 -18
  120. data/samples/cgi/po/sr/helloerb1.po +8 -8
  121. data/samples/cgi/po/sr/helloerb2.po +6 -6
  122. data/samples/cgi/po/sr/hellolib.po +2 -2
  123. data/samples/cgi/po/sr/main.po +15 -15
  124. data/samples/cgi/po/ua/helloerb1.po +2 -2
  125. data/samples/cgi/po/ua/main.po +3 -3
  126. data/samples/hello_plural.rb +0 -0
  127. data/samples/makemo.rb +0 -0
  128. data/samples/po/lv/hello.po +24 -0
  129. data/samples/po/lv/hello2.po +32 -0
  130. data/samples/po/lv/hello_noop.po +28 -0
  131. data/samples/po/lv/hello_plural.po +26 -0
  132. data/samples/po/lv/helloglade2.po +38 -0
  133. data/samples/po/lv/hellogtk.po +24 -0
  134. data/samples/po/lv/hellotk.po +24 -0
  135. data/samples/po/nb/hello.po +9 -8
  136. data/samples/po/nb/hello2.po +9 -9
  137. data/samples/po/nb/hello_noop.po +10 -9
  138. data/samples/po/nb/hello_plural.po +10 -8
  139. data/samples/po/nb/helloglade2.po +10 -8
  140. data/samples/po/nb/hellogtk.po +9 -8
  141. data/samples/po/nb/hellotk.po +9 -7
  142. data/samples/po/sr/hello.po +2 -2
  143. data/samples/po/sr/hello2.po +4 -4
  144. data/samples/po/sr/hello_noop.po +3 -3
  145. data/samples/po/sr/hello_plural.po +3 -3
  146. data/samples/po/sr/helloglade2.po +4 -4
  147. data/samples/po/sr/hellogtk.po +2 -2
  148. data/samples/po/sr/hellotk.po +2 -2
  149. data/samples/po/ua/hello2.po +2 -2
  150. data/samples/po/ua/hello_plural.po +2 -2
  151. data/samples/rails/config/boot.rb +3 -2
  152. data/samples/rails/config/environment.rb +2 -3
  153. data/samples/rails/db/schema.rb +0 -0
  154. data/samples/rails/po/lv/blog.po +110 -0
  155. data/samples/rails/po/nb/blog.po +19 -15
  156. data/samples/rails/po/sr/blog.po +23 -23
  157. data/samples/rails/po/ua/blog.po +3 -3
  158. data/samples/rails/public/dispatch.cgi +0 -0
  159. data/samples/rails/public/dispatch.fcgi +0 -0
  160. data/samples/rails/public/dispatch.rb +0 -0
  161. data/samples/rails/public/javascripts/controls.js +1 -1
  162. data/samples/rails/public/javascripts/dragdrop.js +1 -1
  163. data/samples/rails/public/javascripts/effects.js +1 -1
  164. data/samples/rails/script/about +0 -0
  165. data/samples/rails/script/breakpointer +0 -0
  166. data/samples/rails/script/console +0 -0
  167. data/samples/rails/script/destroy +0 -0
  168. data/samples/rails/script/generate +0 -0
  169. data/samples/rails/script/performance/benchmarker +0 -0
  170. data/samples/rails/script/performance/profiler +0 -0
  171. data/samples/rails/script/plugin +0 -0
  172. data/samples/rails/script/process/reaper +0 -0
  173. data/samples/rails/script/process/spawner +0 -0
  174. data/samples/rails/script/process/spinner +0 -0
  175. data/samples/rails/script/runner +0 -0
  176. data/samples/rails/script/server +0 -0
  177. data/samples/rails/vendor/plugins/gettext/po/lv/gettext_plugin.po +28 -0
  178. data/samples/rails/vendor/plugins/gettext/po/nb/gettext_plugin.po +11 -8
  179. data/samples/rails/vendor/plugins/gettext/po/sr/gettext_plugin.po +5 -5
  180. data/src/poparser.ry +27 -6
  181. data/test/benchmark.rb +1 -1
  182. data/test/db/mysql.drop.sql +1 -0
  183. data/test/db/mysql.sql +13 -0
  184. data/test/fixtures/inept_wizard.rb +3 -0
  185. data/test/fixtures/people.yml +6 -0
  186. data/test/fixtures/topic.rb +30 -0
  187. data/test/fixtures/wizard.rb +5 -0
  188. data/test/po/active_record.pot +151 -66
  189. data/test/po/ja/active_record.po +177 -92
  190. data/test/po/ja/test_pgettext.po +41 -0
  191. data/test/rails/app/controllers/users_controller.rb +1 -0
  192. data/test/rails/app/views/articles/_form_fr.html.erb +1 -0
  193. data/test/rails/config/boot.rb +96 -32
  194. data/test/rails/config/environment.rb +3 -2
  195. data/test/rails/db/schema.rb +4 -4
  196. data/test/rails/public/dispatch.cgi +0 -0
  197. data/test/rails/public/dispatch.fcgi +0 -0
  198. data/test/rails/public/dispatch.rb +0 -0
  199. data/test/rails/public/javascripts/controls.js +484 -354
  200. data/test/rails/public/javascripts/dragdrop.js +88 -58
  201. data/test/rails/public/javascripts/effects.js +396 -364
  202. data/test/rails/public/javascripts/prototype.js +2817 -1107
  203. data/test/rails/script/about +0 -0
  204. data/test/rails/script/breakpointer +0 -0
  205. data/test/rails/script/console +0 -0
  206. data/test/rails/script/destroy +0 -0
  207. data/test/rails/script/generate +0 -0
  208. data/test/rails/script/performance/benchmarker +0 -0
  209. data/test/rails/script/performance/profiler +0 -0
  210. data/test/rails/script/plugin +0 -0
  211. data/test/rails/script/process/inspector +0 -0
  212. data/test/rails/script/process/reaper +0 -0
  213. data/test/rails/script/process/spawner +0 -0
  214. data/test/rails/script/runner +0 -0
  215. data/test/rails/script/server +0 -0
  216. data/test/rails/test/functional/articles_controller_test.rb +5 -0
  217. data/test/rails/test/result/en/create_error.html +3 -3
  218. data/test/rails/test/result/en/custom_error_message.html +3 -3
  219. data/test/rails/test/result/en/custom_error_message_with_plural.html +60 -60
  220. data/test/rails/test/result/en/multi_error_messages_for.html +6 -6
  221. data/test/rails/test/result/en/new.html +3 -3
  222. data/test/rails/test/result/fr/custom_error_message.html +3 -3
  223. data/test/rails/test/result/fr/custom_error_message_with_plural.html +60 -60
  224. data/test/rails/test/result/fr/new.html +23 -0
  225. data/test/rails/test/result/ja/create_error.html +3 -3
  226. data/test/rails/test/result/ja/custom_error_message.html +3 -3
  227. data/test/rails/test/result/ja/custom_error_message_with_plural.html +60 -60
  228. data/test/rails/test/result/ja/multi_error_messages_for.html +6 -6
  229. data/test/rails/test/result/ja/new.html +3 -3
  230. data/test/test.sh +2 -2
  231. data/test/test_active_record.rb +824 -20
  232. data/test/test_gettext.rb +34 -4
  233. data/test/test_java.sh +0 -0
  234. data/test/test_locale.rb +2 -2
  235. data/test/test_parser.rb +13 -2
  236. data/test/test_rails_caching.rb +11 -4
  237. data/test/testlib/pgettext.rb +33 -0
  238. metadata +32 -4
data/ChangeLog CHANGED
@@ -1,3 +1,113 @@
1
+ 2008-07-31 Masao Mutoh <mutoh@highway.ne.jp>
2
+
3
+ * lib/gettext/rails.rb: Works on rails-2.0.2 again.
4
+
5
+ 2008-07-27 Masao Mutoh <mutoh@highway.ne.jp>
6
+
7
+ * src/poparser.ry: msgctxt/pgettext support.
8
+ * test/test_gettext.rb: Add pgettext test.
9
+
10
+ 2008-07-26 Masao Mutoh <mutoh@highway.ne.jp>
11
+
12
+ * lib/gettext/utils.rb: Improve create_mofiles to show the file which has errors.
13
+ * lib/gettext/parser/ruby.rb,
14
+ lib/gettext/rgettext.rb: msgctxt/pgettext support.
15
+ * test/testlib/pgettext.rb, test/po/ja/test_pgettext.po: Added for msgctxt/pgettext.
16
+ * **/po/lv/*.po: Added lv locales by Aivars Akots.
17
+
18
+ 2008-07-25 Masao Mutoh <mutoh@highway.ne.jp>
19
+
20
+ * lib/gettext/rails.rb: Fixed render_partial localization.
21
+ (Localize ActionView::TemplateFinder#pick_template) [Bug #20248]
22
+ * test/rails/config/boot.rb, environment.rb: Follow rails-2.1.0.
23
+ * test/rails/app/views/articles/_form_fr.html.erb: Added for
24
+ render_partial.
25
+ * test/rails/test/result/fr/new.html: Ditto.
26
+ * samples/rails/*: Update to rails-2.1.0.
27
+
28
+ 2008-07-20 Masao Mutoh <mutoh@highway.ne.jp>
29
+
30
+ * test/test_active_record.rb: Add tests for activerecord-2.1.0.
31
+
32
+ 2008-07-17 Masao Mutoh <mutoh@highway.ne.jp>
33
+
34
+ * lib/gettext/active_record.rb: validates_(format|inclusion)_of accepts %{val} as the value
35
+ (ex)
36
+ User.validates_inclusion_of :name, :in => %w(a, b), :message => N_("%{fn} can't be %{val}")
37
+ * test/test_active_record.rb: Added test for rails-2.1.0.
38
+ * lib/gettext/active_record.rb: Works localization with ActiveRecord::Errors#[]
39
+ * po/el/rails.po, rgettext.po: Updated by damphyr.
40
+ * po/ca/rails.po, rgettext.po: Updated by Ramon Salvadó.
41
+ * **/po/**/ua/*.po: Updated by Alex Rootoff.
42
+
43
+ 2008-07-15 Masao Mutoh <mutoh@highway.ne.jp>
44
+
45
+ * po/hu/rails.po, rgettext.po: Updated by Tamás Tompa.
46
+ * po/zh/rails.po, rgettext.po: Updated by Yang Bob.
47
+ * po/zh_TW/rails.po, rgettext.po: Updated by Yang Bob.
48
+ * test/fixtures/wizard.rb, inept_wizard.rb: Added.
49
+
50
+ 2008-07-14 Masao Mutoh <mutoh@highway.ne.jp>
51
+
52
+ * README: Updated.
53
+ * lib/gettext/parser/active_record.rb: Support ActiveRecord::Base.abstract_class.
54
+ * po/pt_BR/rails.po, rgettext.po: Updated by Antonio S. de A. Terceiro.
55
+ * po/es/rails.po: Updated by David Espada.
56
+ * **/po/**/nb/*.po: Updated by Runar Ingebrigtsen.
57
+
58
+ 2008-07-13 Masao Mutoh <mutoh@highway.ne.jp>
59
+
60
+ * po/ru/rails.po, rgettext.po: Updated by Yuri Kozlov.
61
+ * po/de/rails.po, rgettext.po: Updated by Patrick Lenz.
62
+ * po/eo/rails.po, rgettext.po: Updated by Malte Milatz.
63
+ * po/vi/rails.po, rgettext.po: Updated by Ngoc DAO Thanh.
64
+ * po/es/rgettext.po: Updated by David Espada.
65
+ * po/ja/rgettext.po: Updated.
66
+
67
+ 2008-07-11 Masao Mutoh <mutoh@highway.ne.jp>
68
+
69
+ * test/test_active_record.rb, test/fixtures/people.yml, warehouse-thing.rb:
70
+ Add rails-2.1.0 tests.
71
+ (ValidationsTest::test_validate_uniqueness_with_non_standard_table_names):
72
+
73
+ * po/ja/rails.po: Apply rails-2.1.0 messages.
74
+
75
+ 2008-07-09 Masao Mutoh <mutoh@highway.ne.jp>
76
+
77
+ * lib/gettext/rails.rb: Fixed ActionController::Caching::Fragments.expire_fragment
78
+ to work with rails-2.1.0 by Loiseleur Michel.
79
+ * lib/gettext/active_record.rb: Added validation options for activerecord-2.1.0.
80
+ (:greater_than, :greater_than_or_equal_to, :equal_to, :less_than, :less_than_or_equal_to,
81
+ :odd, :even)
82
+ * test/*: Apply rails-2.1.0.
83
+
84
+ 2008-06-30 Masao Mutoh <mutoh@highway.ne.jp>
85
+
86
+ * lib/gettext/rails.rb: Works with rails-2.1.0.
87
+ Reported by Andreas Neuhaus(Bug #17990)
88
+
89
+
90
+ 2008-06-28 Masao Mutoh <mutoh@highway.ne.jp>
91
+
92
+ * bin/*: Fixed shebang line. (Bug: #20150)
93
+
94
+ 2008-06-25 Masao Mutoh <mutoh@highway.ne.jp>
95
+
96
+ * lib/gettext.rb: Fixed cache algorithm of bound_targets again.
97
+
98
+ 2008-06-18 Masao Mutoh <mutoh@highway.ne.jp>
99
+
100
+ * lib/gettext/mo.rb: Support revision 1 of mo-file format.
101
+ * lib/gettext/mo.rb, test/test_gettext.rb:
102
+ Freeze msgstrs by Tatsuki Sugiura (Bug: #19193)
103
+ * **/po/sr/*.po: Replace sr locales to Cyrillic script
104
+ from Latin script by Slobodan Paunović.
105
+
106
+ 2008-05-24 Masao Mutoh <mutoh@highway.ne.jp>
107
+
108
+ * README: update to support Rails-1.2.x to Rails-2.0.x(Rails-1.2.x aren't
109
+ not supported now). Reported by Hans de Graaff.
110
+
1
111
  2008-05-11 Masao Mutoh <mutoh@highway.ne.jp>
2
112
 
3
113
  * lib/gettext/rails.rb: Localize ActionView::Helpers::FormBuilder#label.
@@ -16,7 +126,7 @@
16
126
  * test/test_locale.rb: Removed the condition for OpenBSD
17
127
  by Bernd Ahlers.
18
128
  * lib/gettext.rb: Fixed that bindtextdomain doesn't work on toplevel.
19
- Reported by Tatsuki Sugiura (But: #19056).
129
+ Reported by Tatsuki Sugiura (Bug: #19056).
20
130
  * test/test_gettext.rb: Follow the change.
21
131
  * test/test_gettext_toplevel.rb: Added.
22
132
 
data/NEWS CHANGED
@@ -1,3 +1,38 @@
1
+ = Ruby-GetText-Package-1.92.0 (2008-08-02)
2
+ * Fixed a memory leak(again)
3
+ * Fixed bugs.
4
+ * Improve to support mo-files.
5
+ * Support revision 1 of mo-file format.
6
+ * Freeze msgstrs.
7
+ * msgctxt - pgettext(msgctxt, msgid) support
8
+ (eg)
9
+ p_("File", "Open") #=> "Open" is shown in English.
10
+ * Update translations
11
+ * Catalan, Chinese(Simplified), Chinese(Traditional), (English), Esperanto, German,
12
+ Greek, Hungarian, Latvian, Japanese, Norwegian, Portuguese(pt_BR), Russian, Serbian,
13
+ Spanish, Ukrainian, Vietnamese,
14
+ * Rails Support
15
+ * Support rubyonrails-2.1.0 (2.0.0 or later).
16
+ * Add new validations for activerecord-2.1.0.
17
+ (:greater_than, :greater_than_or_equal_to, :equal_to,
18
+ :less_than, :less_than_or_equal_to,:odd, :even)
19
+ * validates_(format|inclusion)_of accepts %{val} as the value
20
+ (eg)
21
+ validates_inclusion_of :name, :in => %w(a, b), :message => N_("%{fn} can't be %{val}")
22
+ * Work Fragment caching on rails-2.1.0.
23
+ * Support ActiveRecord::Base.abstract_class.
24
+ * Work ActiveRecord::Errors#[]
25
+ * Work render_partial.
26
+
27
+ Thanks to:
28
+ Translators:
29
+ Slobodan Paunović, Yuri Kozlov, Patrick Lenz, Malte Milatz, Ngoc DAO Thanh, David Espada,
30
+ Antonio S. de A. Terceiro, David Espada, Runar Ingebrigtsen, Tamás Tompa, Yang Bob, damphyr,
31
+ Ramon Salvadó, Alex Rootoff, Aivars Akots
32
+
33
+ Bug reports, suggestions and patches:
34
+ Hans de Graaff, Tatsuki Sugiura, Andreas Neuhaus, Loiseleur Michel
35
+
1
36
  = Ruby-GetText-Package-1.91.0 (2008-05-11)
2
37
  * Works again on Win32 + JRuby-1.1.1
3
38
  * Fixed memory leaks.
data/README CHANGED
@@ -57,7 +57,7 @@ localized message files(message catalogs) easily.
57
57
  * Racc-1.4.3 or later
58
58
  <http://www.ruby-lang.org/raa/list.rhtml?name=racc>
59
59
  * (for compiling src/rmsgfmt.ry only)
60
- * Ruby on Rails 1.1.2 or later (if you use this package with Ruby on Rails)
60
+ * Ruby on Rails 2.0.0 or later (if you use this package with Ruby on Rails)
61
61
  <http://www.rubyonrails.org/>
62
62
 
63
63
  == Install
@@ -130,43 +130,45 @@ This program is licenced under the same licence as Ruby.
130
130
  Gabriele Renzi <surrender_it at yahoo.it>
131
131
  * Japanese(ja) - Masao Mutoh <mutoh at highway.ne.jp>
132
132
  * Korean(ko) - Gyoung-Yoon Noh <nohmad at gmail.com>
133
+ * Latvian(lv) - Aivars Akots <aivars.akots at gmail.com>
133
134
  * Norwegian(nb) - Runar Ingebrigtsen <runar at mopo.no>
134
- * Portuguese(Brazil)(pt_BR) - Antonio S. de A. Terceiro <terceiro at softwarelivre.org>
135
- Joao Pedrosa <joaopedrosa at gmail.com> (current)
135
+ * Portuguese(Brazil)(pt_BR) - Antonio S. de A. Terceiro <terceiro at softwarelivre.org> (current)
136
+ Joao Pedrosa <joaopedrosa at gmail.com>
136
137
  * Russian(ru) - Yuri Kozlov <kozlov.y at gmail.com>
137
138
  * Serbian(sr) - Slobodan Paunović" <slobodan.paunovic at gmail.com>
138
139
  * Spanish(es) - David Espada <davinci at escomposlinux.org> (current)
139
140
  * David Moreno Garza <damog at damog.net>
140
141
  * Swedish(sv) - Nikolai Weibull <mailing-lists.ruby-talk at rawuncut.elitemail.org>
141
142
  * Ukrainian(ua) - Alex Rootoff <rootoff at pisem.net>
142
- * Vietnamese(vi) - Ngoc Dao <ngocdaothanh at gmail.com>
143
+ * Vietnamese(vi) - Ngoc Dao Thanh <ngocdaothanh at gmail.com>
143
144
 
144
145
  == Status of translations
145
- * Bosnian(bs) - 1.90.0
146
- * Catalan(ca) - 1.90.0
147
- * Croatian(hr) - 1.90.0
148
- * Chinese(zh_CN) - 1.90.0
149
- * Chinese(zh_TW) - 1.90.0
146
+ * Bosnian(bs) - 1.90.0 (old)
147
+ * Catalan(ca) - 1.92.0
148
+ * Croatian(hr) - 1.90.0 (old)
149
+ * Chinese(zh_CN) - 1.92.0
150
+ * Chinese(zh_TW) - 1.92.0
150
151
  * Czech(cs) - 1.9.0 (old)
151
- * Dutch(nl) - 1.90.0
152
- * English(default) - 1.90.0
153
- * Esperanto(eo) - 1.90.0
152
+ * Dutch(nl) - 1.90.0 (old)
153
+ * English(default) - 1.90.0 (old)
154
+ * Esperanto(eo) - 1.92.0
154
155
  * Estonian(et) - 1.9.0 (old, rails.po only)
155
- * French(fr) - 1.90.0
156
- * German(de) - 1.90.0
157
- * Greek(el) - 1.9.0 (old)
158
- * Hungarian(hu) - 1.90.0
156
+ * French(fr) - 1.90.0 (old)
157
+ * German(de) - 1.92.0
158
+ * Greek(el) - 1.92.0
159
+ * Hungarian(hu) - 1.92.0
159
160
  * Italian(it) - 1.6.0 (old)
160
- * Japanese(ja) - 1.91.0
161
+ * Japanese(ja) - 1.92.0
161
162
  * Korean(ko) - 1.9.0 (old)
162
- * Norwegian(nb) - 1.9.0 (old)
163
- * Portuguese(Brazil)(pt_BR) - 1.90.0
164
- * Russian(ru) - 1.90.0
165
- * Serbian(sr) - 1.91.0 (new)
166
- * Spanish(es) - 1.9.0 (old)
163
+ * Latvian(lv) - 1.92.0 (new)
164
+ * Norwegian(nb) - 1.92.0
165
+ * Portuguese(Brazil)(pt_BR) - 1.92.0
166
+ * Russian(ru) - 1.92.0
167
+ * Serbian(sr) - 1.91.0 (old)
168
+ * Spanish(es) - 1.92.0
167
169
  * Swedish(sv) - 0.8.0 (too much old)
168
- * Ukrainian(ua) - 1.90.0
169
- * Vietnamese(vi) - 1.90.0
170
+ * Ukrainian(ua) - 1.92.0
171
+ * Vietnamese(vi) - 1.92.0
170
172
 
171
173
  == Maintainer
172
174
  Masao Mutoh <mutoh at highway.ne.jp>
data/bin/rgettext CHANGED
@@ -1,4 +1,4 @@
1
- #! C:/mutomasa/dev/jruby/jruby-1.1RC3/bin/jruby.bat.exe
1
+ #! /usr/bin/ruby
2
2
  =begin
3
3
  rgettext - ruby version of xgettext
4
4
 
@@ -7,7 +7,7 @@
7
7
  You may redistribute it and/or modify it under the same
8
8
  license terms as Ruby.
9
9
 
10
- $Id: rgettext,v 1.13 2008/03/21 06:28:09 mutoh Exp $
10
+ $Id: rgettext,v 1.15 2008/07/24 17:17:48 mutoh Exp $
11
11
  =end
12
12
 
13
13
  begin
data/bin/rmsgfmt CHANGED
@@ -1,4 +1,4 @@
1
- #! C:/mutomasa/dev/jruby/jruby-1.1RC3/bin/jruby.bat.exe
1
+ #! /usr/bin/ruby
2
2
  =begin
3
3
  rgettext - ruby version of xgettext
4
4
 
@@ -7,7 +7,7 @@
7
7
  You may redistribute it and/or modify it under the same
8
8
  license terms as Ruby.
9
9
 
10
- $Id: rmsgfmt,v 1.12 2008/03/21 06:28:10 mutoh Exp $
10
+ $Id: rmsgfmt,v 1.14 2008/07/24 17:17:48 mutoh Exp $
11
11
  =end
12
12
 
13
13
  begin
data/bin/rmsgmerge CHANGED
@@ -1,4 +1,4 @@
1
- #! C:/mutomasa/dev/jruby/jruby-1.1RC3/bin/jruby.bat.exe
1
+ #! /usr/bin/ruby
2
2
  =begin
3
3
  rmsgmerge - ruby version of msgmerge
4
4
 
@@ -7,7 +7,7 @@
7
7
  You may redistribute it and/or modify it under the same
8
8
  license terms as Ruby.
9
9
 
10
- $Id: rmsgmerge,v 1.11 2008/03/21 06:28:10 mutoh Exp $
10
+ $Id: rmsgmerge,v 1.13 2008/07/24 17:17:48 mutoh Exp $
11
11
  =end
12
12
 
13
13
  begin
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000131">label_with_gettext</a>&nbsp;&nbsp;
89
+ <a href="#M000069">label_with_gettext</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -115,25 +115,25 @@
115
115
  <div id="methods">
116
116
  <h3 class="section-bar">Public Instance methods</h3>
117
117
 
118
- <div id="method-M000131" class="method-detail">
119
- <a name="M000131"></a>
118
+ <div id="method-M000069" class="method-detail">
119
+ <a name="M000069"></a>
120
120
 
121
121
  <div class="method-heading">
122
- <a href="#M000131" class="method-signature">
122
+ <a href="#M000069" class="method-signature">
123
123
  <span class="method-name">label_with_gettext</span><span class="method-args">(method, text = nil, options = {})</span>
124
124
  </a>
125
125
  </div>
126
126
 
127
127
  <div class="method-description">
128
128
  <p><a class="source-toggle" href="#"
129
- onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
130
- <div class="method-source-code" id="M000131-source">
129
+ onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
130
+ <div class="method-source-code" id="M000069-source">
131
131
  <pre>
132
- <span class="ruby-comment cmt"># File lib/gettext/rails.rb, line 292</span>
133
- 292: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">label_with_gettext</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">text</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span> = {})
134
- 293: <span class="ruby-identifier">text</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">s_</span>(<span class="ruby-node">&quot;#{@object.class}|#{method.to_s.humanize}&quot;</span>)
135
- 294: <span class="ruby-ivar">@template</span>.<span class="ruby-identifier">label</span>(<span class="ruby-ivar">@object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">text</span>, <span class="ruby-identifier">options</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">:object</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@object</span>))
136
- 295: <span class="ruby-keyword kw">end</span>
132
+ <span class="ruby-comment cmt"># File lib/gettext/rails.rb, line 308</span>
133
+ 308: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">label_with_gettext</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">text</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span> = {})
134
+ 309: <span class="ruby-identifier">text</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">s_</span>(<span class="ruby-node">&quot;#{@object.class}|#{method.to_s.humanize}&quot;</span>)
135
+ 310: <span class="ruby-ivar">@template</span>.<span class="ruby-identifier">label</span>(<span class="ruby-ivar">@object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">text</span>, <span class="ruby-identifier">options</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">:object</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@object</span>))
136
+ 311: <span class="ruby-keyword kw">end</span>
137
137
  </pre>
138
138
  </div>
139
139
  </div>
@@ -0,0 +1,152 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: ActionView::TemplateFinder</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">ActionView::TemplateFinder</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/gettext/rails_rb.html">
59
+ lib/gettext/rails.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000070">pick_template_with_gettext</a>&nbsp;&nbsp;
90
+ </div>
91
+ </div>
92
+
93
+ </div>
94
+
95
+
96
+ <!-- if includes -->
97
+
98
+ <div id="section">
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+ <!-- if method_list -->
108
+ <div id="methods">
109
+ <h3 class="section-bar">Public Instance methods</h3>
110
+
111
+ <div id="method-M000070" class="method-detail">
112
+ <a name="M000070"></a>
113
+
114
+ <div class="method-heading">
115
+ <a href="#M000070" class="method-signature">
116
+ <span class="method-name">pick_template_with_gettext</span><span class="method-args">(template_path, extension)</span>
117
+ </a>
118
+ </div>
119
+
120
+ <div class="method-description">
121
+ <p><a class="source-toggle" href="#"
122
+ onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000070-source">
124
+ <pre>
125
+ <span class="ruby-comment cmt"># File lib/gettext/rails.rb, line 291</span>
126
+ 291: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pick_template_with_gettext</span>(<span class="ruby-identifier">template_path</span>, <span class="ruby-identifier">extension</span>)
127
+ 292: <span class="ruby-identifier">locale</span> = <span class="ruby-constant">GetText</span>.<span class="ruby-identifier">locale</span>
128
+ 293: [<span class="ruby-identifier">locale</span>.<span class="ruby-identifier">to_general</span>, <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">language</span>, <span class="ruby-constant">Locale</span>.<span class="ruby-identifier">default</span>.<span class="ruby-identifier">language</span>].<span class="ruby-identifier">uniq</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
129
+ 294: <span class="ruby-identifier">file_name</span> = <span class="ruby-node">&quot;#{template_path}_#{v}.#{extension}&quot;</span>
130
+ 295: <span class="ruby-identifier">base_path</span> = <span class="ruby-identifier">find_base_path_for</span>(<span class="ruby-identifier">file_name</span>)
131
+ 296: <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;#{base_path}/#{file_name}&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">base_path</span>.<span class="ruby-identifier">blank?</span>
132
+ 297: <span class="ruby-keyword kw">end</span>
133
+ 298: <span class="ruby-identifier">pick_template_without_gettext</span>(<span class="ruby-identifier">template_path</span>, <span class="ruby-identifier">extension</span>)
134
+ 299: <span class="ruby-keyword kw">end</span>
135
+ </pre>
136
+ </div>
137
+ </div>
138
+ </div>
139
+
140
+
141
+ </div>
142
+
143
+
144
+ </div>
145
+
146
+
147
+ <div id="validator-badges">
148
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
149
+ </div>
150
+
151
+ </body>
152
+ </html>