gettext 1.90.0 → 1.91.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. data/ChangeLog +45 -0
  2. data/NEWS +22 -0
  3. data/README +5 -3
  4. data/Rakefile +4 -2
  5. data/bin/rgettext +2 -2
  6. data/bin/rmsgfmt +2 -2
  7. data/bin/rmsgmerge +2 -2
  8. data/data/locale/bs/LC_MESSAGES/rails.mo +0 -0
  9. data/data/locale/bs/LC_MESSAGES/rgettext.mo +0 -0
  10. data/data/locale/ca/LC_MESSAGES/rails.mo +0 -0
  11. data/data/locale/ca/LC_MESSAGES/rgettext.mo +0 -0
  12. data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
  13. data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
  14. data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
  15. data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
  16. data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
  17. data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
  18. data/data/locale/eo/LC_MESSAGES/rails.mo +0 -0
  19. data/data/locale/eo/LC_MESSAGES/rgettext.mo +0 -0
  20. data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
  21. data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
  22. data/data/locale/et/LC_MESSAGES/rails.mo +0 -0
  23. data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
  24. data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
  25. data/data/locale/hr/LC_MESSAGES/rails.mo +0 -0
  26. data/data/locale/hr/LC_MESSAGES/rgettext.mo +0 -0
  27. data/data/locale/hu/LC_MESSAGES/rails.mo +0 -0
  28. data/data/locale/hu/LC_MESSAGES/rgettext.mo +0 -0
  29. data/data/locale/it/LC_MESSAGES/rails.mo +0 -0
  30. data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
  31. data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
  32. data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
  33. data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
  34. data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
  35. data/data/locale/nb/LC_MESSAGES/rails.mo +0 -0
  36. data/data/locale/nb/LC_MESSAGES/rgettext.mo +0 -0
  37. data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
  38. data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
  39. data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
  40. data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
  41. data/data/locale/ru/LC_MESSAGES/rails.mo +0 -0
  42. data/data/locale/ru/LC_MESSAGES/rgettext.mo +0 -0
  43. data/data/locale/sr/LC_MESSAGES/rails.mo +0 -0
  44. data/data/locale/sr/LC_MESSAGES/rgettext.mo +0 -0
  45. data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
  46. data/data/locale/ua/LC_MESSAGES/rails.mo +0 -0
  47. data/data/locale/ua/LC_MESSAGES/rgettext.mo +0 -0
  48. data/data/locale/vi/LC_MESSAGES/rails.mo +0 -0
  49. data/data/locale/vi/LC_MESSAGES/rgettext.mo +0 -0
  50. data/data/locale/zh/LC_MESSAGES/rails.mo +0 -0
  51. data/data/locale/zh/LC_MESSAGES/rgettext.mo +0 -0
  52. data/data/locale/zh_TW/LC_MESSAGES/rails.mo +0 -0
  53. data/data/locale/zh_TW/LC_MESSAGES/rgettext.mo +0 -0
  54. data/doc/classes/ActionView/Helpers/FormBuilder.html +154 -0
  55. data/doc/classes/ActiveRecord/Base.html +47 -47
  56. data/doc/classes/ActiveRecord/ConnectionAdapters/Column.html +6 -6
  57. data/doc/classes/GetText.html +379 -327
  58. data/doc/classes/GetText/ActiveRecordParser.html +12 -12
  59. data/doc/classes/GetText/ErbContainer.html +12 -12
  60. data/doc/classes/GetText/ErbParser.html +6 -6
  61. data/doc/classes/GetText/PoParser.html +6 -6
  62. data/doc/classes/GetText/Rails.html +20 -20
  63. data/doc/classes/GetText/TextDomain.html +68 -68
  64. data/doc/classes/GetText/TextDomainManager.html +54 -54
  65. data/doc/classes/Locale.html +152 -151
  66. data/doc/classes/Locale/Object.html +92 -92
  67. data/doc/classes/Locale/SystemBase.html +32 -32
  68. data/doc/classes/Locale/SystemCGI.html +31 -31
  69. data/doc/classes/Locale/SystemWin32.html +19 -34
  70. data/doc/classes/Locale/SystemWin32Table.html +123 -0
  71. data/doc/classes/MOFile.html +28 -29
  72. data/doc/created.rid +1 -1
  73. data/doc/files/ChangeLog.html +60 -1
  74. data/doc/files/README.html +11 -4
  75. data/doc/files/lib/gettext/active_record_rb.html +1 -1
  76. data/doc/files/lib/gettext/cgi_rb.html +1 -1
  77. data/doc/files/lib/gettext/container_rb.html +1 -1
  78. data/doc/files/lib/gettext/erb_rb.html +1 -1
  79. data/doc/files/lib/gettext/iconv_rb.html +1 -1
  80. data/doc/files/lib/gettext/mo_rb.html +2 -1
  81. data/doc/files/lib/gettext/parser/active_record_rb.html +1 -1
  82. data/doc/files/lib/gettext/parser/erb_rb.html +1 -1
  83. data/doc/files/lib/gettext/parser/glade_rb.html +1 -1
  84. data/doc/files/lib/gettext/parser/ruby_rb.html +1 -1
  85. data/doc/files/lib/gettext/poparser_rb.html +1 -1
  86. data/doc/files/lib/gettext/rails_compat_rb.html +1 -1
  87. data/doc/files/lib/gettext/rails_rb.html +1 -1
  88. data/doc/files/lib/gettext/rgettext_rb.html +1 -1
  89. data/doc/files/lib/gettext/rmsgfmt_rb.html +1 -1
  90. data/doc/files/lib/gettext/rmsgmerge_rb.html +1 -1
  91. data/doc/files/lib/gettext/string_rb.html +1 -1
  92. data/doc/files/lib/gettext/textdomain_rb.html +1 -1
  93. data/doc/files/lib/gettext/textdomainmanager_rb.html +1 -1
  94. data/doc/files/lib/gettext/utils_rb.html +1 -1
  95. data/doc/files/lib/gettext/version_rb.html +1 -1
  96. data/doc/files/lib/gettext_rb.html +1 -1
  97. data/doc/files/lib/locale/base_rb.html +1 -1
  98. data/doc/files/lib/locale/cgi_rb.html +1 -1
  99. data/doc/files/lib/locale/jruby_rb.html +1 -1
  100. data/doc/files/lib/locale/object_rb.html +1 -1
  101. data/doc/files/lib/locale/posix_rb.html +1 -1
  102. data/doc/files/lib/locale/win32_rb.html +1 -1
  103. data/doc/files/lib/locale/win32_table_rb.html +1 -1
  104. data/doc/files/lib/locale_rb.html +1 -1
  105. data/doc/fr_class_index.html +2 -0
  106. data/doc/fr_method_index.html +83 -81
  107. data/lib/gettext.rb +46 -21
  108. data/lib/gettext/active_record.rb +5 -5
  109. data/lib/gettext/mo.rb +4 -4
  110. data/lib/gettext/rails.rb +15 -3
  111. data/lib/gettext/textdomain.rb +44 -41
  112. data/lib/gettext/utils.rb +8 -1
  113. data/lib/gettext/version.rb +2 -2
  114. data/lib/locale/jruby.rb +3 -3
  115. data/lib/locale/win32.rb +2 -1
  116. data/lib/locale/win32_table.rb +2 -2
  117. data/po/bs/rails.po +39 -37
  118. data/po/bs/rgettext.po +63 -53
  119. data/po/ca/rails.po +39 -36
  120. data/po/ca/rgettext.po +64 -54
  121. data/po/cs/rails.po +39 -35
  122. data/po/cs/rgettext.po +63 -53
  123. data/po/de/rails.po +38 -36
  124. data/po/de/rgettext.po +67 -57
  125. data/po/el/rails.po +42 -39
  126. data/po/el/rgettext.po +63 -53
  127. data/po/eo/rails.po +39 -37
  128. data/po/eo/rgettext.po +63 -53
  129. data/po/es/rails.po +38 -35
  130. data/po/es/rgettext.po +64 -54
  131. data/po/et/rails.po +38 -36
  132. data/po/fr/rails.po +39 -37
  133. data/po/fr/rgettext.po +65 -56
  134. data/po/hr/rails.po +40 -37
  135. data/po/hr/rgettext.po +63 -53
  136. data/po/hu/rails.po +38 -35
  137. data/po/hu/rgettext.po +64 -54
  138. data/po/it/rails.po +34 -32
  139. data/po/it/rgettext.po +62 -54
  140. data/po/ja/rails.po +42 -40
  141. data/po/ja/rgettext.po +64 -54
  142. data/po/ko/rails.po +38 -36
  143. data/po/ko/rgettext.po +64 -54
  144. data/po/nb/rails.po +37 -32
  145. data/po/nb/rgettext.po +62 -52
  146. data/po/nl/rails.po +39 -38
  147. data/po/nl/rgettext.po +64 -54
  148. data/po/pt_BR/rails.po +38 -36
  149. data/po/pt_BR/rgettext.po +63 -53
  150. data/po/rails.pot +41 -39
  151. data/po/rgettext.pot +55 -47
  152. data/po/ru/rails.po +41 -37
  153. data/po/ru/rgettext.po +63 -53
  154. data/po/sr/rails.po +149 -0
  155. data/po/sr/rgettext.po +135 -0
  156. data/po/sv/rgettext.po +60 -52
  157. data/po/ua/rails.po +39 -37
  158. data/po/ua/rgettext.po +67 -57
  159. data/po/vi/rails.po +39 -37
  160. data/po/vi/rgettext.po +61 -51
  161. data/po/zh/rails.po +37 -36
  162. data/po/zh/rgettext.po +66 -56
  163. data/po/zh_TW/rails.po +37 -36
  164. data/po/zh_TW/rgettext.po +64 -54
  165. data/samples/cgi/locale/sr/LC_MESSAGES/helloerb1.mo +0 -0
  166. data/samples/cgi/locale/sr/LC_MESSAGES/helloerb2.mo +0 -0
  167. data/samples/cgi/locale/sr/LC_MESSAGES/hellolib.mo +0 -0
  168. data/samples/cgi/locale/sr/LC_MESSAGES/main.mo +0 -0
  169. data/samples/cgi/po/sr/helloerb1.po +60 -0
  170. data/samples/cgi/po/sr/helloerb2.po +52 -0
  171. data/samples/cgi/po/sr/hellolib.po +24 -0
  172. data/samples/cgi/po/sr/main.po +80 -0
  173. data/samples/locale/hu/LC_MESSAGES/hellogtk.mo +0 -0
  174. data/samples/locale/it/LC_MESSAGES/hello2.mo +0 -0
  175. data/samples/locale/sr/LC_MESSAGES/hello.mo +0 -0
  176. data/samples/locale/sr/LC_MESSAGES/hello2.mo +0 -0
  177. data/samples/locale/sr/LC_MESSAGES/hello_noop.mo +0 -0
  178. data/samples/locale/sr/LC_MESSAGES/hello_plural.mo +0 -0
  179. data/samples/locale/sr/LC_MESSAGES/helloglade2.mo +0 -0
  180. data/samples/locale/sr/LC_MESSAGES/hellogtk.mo +0 -0
  181. data/samples/locale/sr/LC_MESSAGES/hellotk.mo +0 -0
  182. data/samples/locale/zh/LC_MESSAGES/helloglade2.mo +0 -0
  183. data/samples/locale/zh/LC_MESSAGES/hellotk.mo +0 -0
  184. data/samples/po/hu/hellogtk.po +3 -3
  185. data/samples/po/it/hello2.po +1 -1
  186. data/samples/po/sr/hello.po +22 -0
  187. data/samples/po/sr/hello2.po +30 -0
  188. data/samples/po/sr/hello_noop.po +26 -0
  189. data/samples/po/sr/hello_plural.po +26 -0
  190. data/samples/po/sr/helloglade2.po +32 -0
  191. data/samples/po/sr/hellogtk.po +22 -0
  192. data/samples/po/sr/hellotk.po +24 -0
  193. data/samples/po/zh/helloglade2.po +1 -1
  194. data/samples/po/zh/hellotk.po +1 -1
  195. data/samples/rails/app/views/articles/edit.html.erb +3 -0
  196. data/samples/rails/app/views/articles/new.html.erb +3 -0
  197. data/samples/rails/config/database.yml +9 -4
  198. data/samples/rails/locale/sr/LC_MESSAGES/blog.mo +0 -0
  199. data/samples/rails/po/sr/blog.po +106 -0
  200. data/samples/rails/vendor/plugins/gettext/locale/sr/LC_MESSAGES/gettext_plugin.mo +0 -0
  201. data/samples/rails/vendor/plugins/gettext/po/sr/gettext_plugin.po +28 -0
  202. data/test/locale/fr/LC_MESSAGES/test2.mo +0 -0
  203. data/test/locale/ja/LC_MESSAGES/test2.mo +0 -0
  204. data/test/po/fr/test2.po +1 -1
  205. data/test/po/ja/test2.po +1 -1
  206. data/test/rails/app/views/articles/show.html.erb +1 -0
  207. data/test/rails/config/environment.rb +1 -1
  208. data/test/rails/test/functional/articles_controller_test.rb +2 -2
  209. data/test/rails/test/functional/mailer_controller_test.rb +3 -1
  210. data/test/rails/test/functional/users_controller_test.rb +1 -1
  211. data/test/rails/test/result/en/custom_error_message_with_plural.html +4 -4
  212. data/test/rails/test/result/en/show.html +1 -0
  213. data/test/rails/test/result/fr/custom_error_message_with_plural.html +4 -4
  214. data/test/rails/test/result/ja/custom_error_message_with_plural.html +4 -4
  215. data/test/rails/test/result/ja/show.html +2 -1
  216. data/test/test.sh +1 -0
  217. data/test/test_active_record.rb +4 -4
  218. data/test/test_gettext.rb +10 -10
  219. data/test/test_gettext_toplevel.rb +44 -0
  220. data/test/test_locale.rb +1 -19
  221. metadata +93 -42
  222. data/test/rails/locale/ja/LC_MESSAGES/rails_test.mo +0 -0
  223. data/test/rails/log/development.log +0 -136
  224. data/test/rails/log/test.log +0 -2203
data/ChangeLog CHANGED
@@ -1,3 +1,48 @@
1
+ 2008-05-11 Masao Mutoh <mutoh@highway.ne.jp>
2
+
3
+ * lib/gettext/rails.rb: Localize ActionView::Helpers::FormBuilder#label.
4
+ The idea from craccho (http://d.hatena.ne.jp/craccho/20071211/1197398747).
5
+ * lib/gettext/version.rb: Increment minor version.
6
+ * README, **/po/sr/*.po: Added sr locales by Slobodan Paunović.
7
+ * NEWS: Updated.
8
+
9
+ 2008-05-07 Masao Mutoh <mutoh@highway.ne.jp>
10
+
11
+ * lib/gettext/utils.rb: Check msgmerge command is existed. And show error
12
+ messages more helpful.
13
+
14
+ 2008-05-06 Masao Mutoh <mutoh@highway.ne.jp>
15
+
16
+ * test/test_locale.rb: Removed the condition for OpenBSD
17
+ by Bernd Ahlers.
18
+ * lib/gettext.rb: Fixed that bindtextdomain doesn't work on toplevel.
19
+ Reported by Tatsuki Sugiura (But: #19056).
20
+ * test/test_gettext.rb: Follow the change.
21
+ * test/test_gettext_toplevel.rb: Added.
22
+
23
+ 2008-05-05 Masao Mutoh <mutoh@highway.ne.jp>
24
+
25
+ * lib/gettext.rb: Add GetText.remove_all_textdomains for testing.
26
+ inspired a test code by Tatsuki Sugiura (Bug #19056)
27
+ * lib/gettext/active_record.rb, test/test_active_record.rb:
28
+ Fixed validates_length_of by Karl Palmskog (Bug: #19761)
29
+
30
+ 2008-04-15 Masao Mutoh <mutoh@highway.ne.jp>
31
+
32
+ * test/test_gettext.rb, lib/gettext.rb, lib/gettext/textdomain.rb,
33
+ lib/gettext/rails.rb: Fixed distance_of_time_in_words. Reported by Dao Ngoc (Bug: #17808)
34
+ * po/*/rails.po: Updated.
35
+
36
+ 2008-04-13 Masao Mutoh <mutoh@highway.ne.jp>
37
+
38
+ * lib/gettext.rb, lib/gettext/textdomain.rb: Fixed memory leaks.
39
+ Reported by Simone Carletti(#18392)
40
+
41
+ 2008-03-21 Masao Mutoh <mutoh@highway.ne.jp>
42
+
43
+ * lib/locale/win32.rb, win32_table.rb, jruby.rb: Rename SystemWin32Table to
44
+ SystemWin32 again. Reported by Locomotyphus (Bug: #18938)
45
+
1
46
  2008-02-02 Masao Mutoh <mutoh@highway.ne.jp>
2
47
 
3
48
  * po/ja/rails.po: Revised. Reported by Paul Clegg.
data/NEWS CHANGED
@@ -1,3 +1,25 @@
1
+ = Ruby-GetText-Package-1.91.0 (2008-05-11)
2
+ * Works again on Win32 + JRuby-1.1.1
3
+ * Fixed memory leaks.
4
+ * Fixed bugs.
5
+ * Speed up.
6
+ * Support Serbian(sr)
7
+ * Rails Support
8
+ * rubyonrails-1.2.x isn't supported(2.0.0 or later are supported).
9
+ * Localize ActionView::Helpers::FormBuilder#label.
10
+ e.g.)
11
+ <% form_for(@article) do |f| %>
12
+ <p><%= f.label :lastupdate %></p>
13
+ <% end %>
14
+ => msgid "Article|Lastupdate" is used as the label string.
15
+
16
+ Thanks to:
17
+ Translators:
18
+ Slobodan Paunović
19
+ Bug reports, suggestions and patches:
20
+ Paul Clegg, Locomotyphus, Simone Carletti, Dao Ngoc, Karl Palmskog,
21
+ Tatsuki Sugiura, Bernd Ahlers, craccho.
22
+
1
23
  = Ruby-GetText-Package-1.90.0 (2008-01-30)
2
24
  Start to prepare v2.0.
3
25
 
data/README CHANGED
@@ -134,6 +134,7 @@ This program is licenced under the same licence as Ruby.
134
134
  * Portuguese(Brazil)(pt_BR) - Antonio S. de A. Terceiro <terceiro at softwarelivre.org>
135
135
  Joao Pedrosa <joaopedrosa at gmail.com> (current)
136
136
  * Russian(ru) - Yuri Kozlov <kozlov.y at gmail.com>
137
+ * Serbian(sr) - Slobodan Paunović" <slobodan.paunovic at gmail.com>
137
138
  * Spanish(es) - David Espada <davinci at escomposlinux.org> (current)
138
139
  * David Moreno Garza <damog at damog.net>
139
140
  * Swedish(sv) - Nikolai Weibull <mailing-lists.ruby-talk at rawuncut.elitemail.org>
@@ -154,16 +155,17 @@ This program is licenced under the same licence as Ruby.
154
155
  * French(fr) - 1.90.0
155
156
  * German(de) - 1.90.0
156
157
  * Greek(el) - 1.9.0 (old)
157
- * Hungarian(hu) - 1.90.0 (new)
158
+ * Hungarian(hu) - 1.90.0
158
159
  * Italian(it) - 1.6.0 (old)
159
- * Japanese(ja) - 1.90.0
160
+ * Japanese(ja) - 1.91.0
160
161
  * Korean(ko) - 1.9.0 (old)
161
162
  * Norwegian(nb) - 1.9.0 (old)
162
163
  * Portuguese(Brazil)(pt_BR) - 1.90.0
163
164
  * Russian(ru) - 1.90.0
165
+ * Serbian(sr) - 1.91.0 (new)
164
166
  * Spanish(es) - 1.9.0 (old)
165
167
  * Swedish(sv) - 0.8.0 (too much old)
166
- * Ukrainian(ua) - 1.90.0 (new)
168
+ * Ukrainian(ua) - 1.90.0
167
169
  * Vietnamese(vi) - 1.90.0
168
170
 
169
171
  == Maintainer
data/Rakefile CHANGED
@@ -199,6 +199,7 @@ spec = Gem::Specification.new do |s|
199
199
  s.require_path = 'lib'
200
200
  s.executables = Dir.entries('bin').delete_if {|item| /^\.|CVS|~$/ =~ item }
201
201
  s.bindir = 'bin'
202
+ s.has_rdoc = true
202
203
  s.description = <<-EOF
203
204
  Ruby-GetText-Package is a GNU GetText-like program for Ruby.
204
205
  The catalog file(po-file) is same format with GNU GetText.
@@ -240,8 +241,9 @@ task :release => [ :package ] do
240
241
 
241
242
  rubyforge = RubyForge.new
242
243
  rubyforge.login
243
- rubyforge.add_release("gettext", "gettext",
244
- "Ruby-GetText-Package #{PKG_VERSION}",
244
+ rubyforge.add_release("gettext", "gettext",
245
+ "Ruby-GetText-Package #{PKG_VERSION}",
245
246
  "pkg/gettext-#{PKG_VERSION}.gem",
246
247
  "pkg/ruby-gettext-package-#{PKG_VERSION}.tar.gz")
247
248
  end
249
+
data/bin/rgettext CHANGED
@@ -1,4 +1,4 @@
1
- #! /usr/bin/ruby
1
+ #! C:/mutomasa/dev/jruby/jruby-1.1RC3/bin/jruby.bat.exe
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.12 2006/09/10 15:08:32 mutoh Exp $
10
+ $Id: rgettext,v 1.13 2008/03/21 06:28:09 mutoh Exp $
11
11
  =end
12
12
 
13
13
  begin
data/bin/rmsgfmt CHANGED
@@ -1,4 +1,4 @@
1
- #! /usr/bin/ruby
1
+ #! C:/mutomasa/dev/jruby/jruby-1.1RC3/bin/jruby.bat.exe
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.11 2006/09/10 15:08:32 mutoh Exp $
10
+ $Id: rmsgfmt,v 1.12 2008/03/21 06:28:10 mutoh Exp $
11
11
  =end
12
12
 
13
13
  begin
data/bin/rmsgmerge CHANGED
@@ -1,4 +1,4 @@
1
- #! /usr/bin/ruby
1
+ #! C:/mutomasa/dev/jruby/jruby-1.1RC3/bin/jruby.bat.exe
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.10 2006/09/10 15:08:32 mutoh Exp $
10
+ $Id: rmsgmerge,v 1.11 2008/03/21 06:28:10 mutoh Exp $
11
11
  =end
12
12
 
13
13
  begin
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,154 @@
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::Helpers::FormBuilder</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::Helpers::FormBuilder</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="#M000131">label_with_gettext</a>&nbsp;&nbsp;
90
+ </div>
91
+ </div>
92
+
93
+ </div>
94
+
95
+
96
+ <!-- if includes -->
97
+ <div id="includes">
98
+ <h3 class="section-bar">Included Modules</h3>
99
+
100
+ <div id="includes-list">
101
+ <span class="include-name"><a href="../../GetText.html">GetText</a></span>
102
+ </div>
103
+ </div>
104
+
105
+ <div id="section">
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+ <!-- if method_list -->
115
+ <div id="methods">
116
+ <h3 class="section-bar">Public Instance methods</h3>
117
+
118
+ <div id="method-M000131" class="method-detail">
119
+ <a name="M000131"></a>
120
+
121
+ <div class="method-heading">
122
+ <a href="#M000131" class="method-signature">
123
+ <span class="method-name">label_with_gettext</span><span class="method-args">(method, text = nil, options = {})</span>
124
+ </a>
125
+ </div>
126
+
127
+ <div class="method-description">
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">
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>
137
+ </pre>
138
+ </div>
139
+ </div>
140
+ </div>
141
+
142
+
143
+ </div>
144
+
145
+
146
+ </div>
147
+
148
+
149
+ <div id="validator-badges">
150
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
151
+ </div>
152
+
153
+ </body>
154
+ </html>
@@ -86,13 +86,13 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000127">columns_with_gettext</a>&nbsp;&nbsp;
90
- <a href="#M000129">set_error_message_explanation</a>&nbsp;&nbsp;
91
- <a href="#M000128">set_error_message_title</a>&nbsp;&nbsp;
92
- <a href="#M000125">untranslate</a>&nbsp;&nbsp;
93
- <a href="#M000126">untranslate?</a>&nbsp;&nbsp;
94
- <a href="#M000123">untranslate_all</a>&nbsp;&nbsp;
95
- <a href="#M000124">untranslate_all?</a>&nbsp;&nbsp;
89
+ <a href="#M000128">columns_with_gettext</a>&nbsp;&nbsp;
90
+ <a href="#M000130">set_error_message_explanation</a>&nbsp;&nbsp;
91
+ <a href="#M000129">set_error_message_title</a>&nbsp;&nbsp;
92
+ <a href="#M000126">untranslate</a>&nbsp;&nbsp;
93
+ <a href="#M000127">untranslate?</a>&nbsp;&nbsp;
94
+ <a href="#M000124">untranslate_all</a>&nbsp;&nbsp;
95
+ <a href="#M000125">untranslate_all?</a>&nbsp;&nbsp;
96
96
  </div>
97
97
  </div>
98
98
 
@@ -122,19 +122,19 @@
122
122
  <div id="methods">
123
123
  <h3 class="section-bar">Public Class methods</h3>
124
124
 
125
- <div id="method-M000127" class="method-detail">
126
- <a name="M000127"></a>
125
+ <div id="method-M000128" class="method-detail">
126
+ <a name="M000128"></a>
127
127
 
128
128
  <div class="method-heading">
129
- <a href="#M000127" class="method-signature">
129
+ <a href="#M000128" class="method-signature">
130
130
  <span class="method-name">columns_with_gettext</span><span class="method-args">()</span>
131
131
  </a>
132
132
  </div>
133
133
 
134
134
  <div class="method-description">
135
135
  <p><a class="source-toggle" href="#"
136
- onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
137
- <div class="method-source-code" id="M000127-source">
136
+ onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
137
+ <div class="method-source-code" id="M000128-source">
138
138
  <pre>
139
139
  <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 156</span>
140
140
  156: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">columns_with_gettext</span>
@@ -154,11 +154,11 @@
154
154
  </div>
155
155
  </div>
156
156
 
157
- <div id="method-M000129" class="method-detail">
158
- <a name="M000129"></a>
157
+ <div id="method-M000130" class="method-detail">
158
+ <a name="M000130"></a>
159
159
 
160
160
  <div class="method-heading">
161
- <a href="#M000129" class="method-signature">
161
+ <a href="#M000130" class="method-signature">
162
162
  <span class="method-name">set_error_message_explanation(msg)<br />
163
163
  </span>
164
164
  </a>
@@ -182,8 +182,8 @@ Sets a your own explanation of the error message dialog.
182
182
  </li>
183
183
  </ul>
184
184
  <p><a class="source-toggle" href="#"
185
- onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
186
- <div class="method-source-code" id="M000129-source">
185
+ onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
186
+ <div class="method-source-code" id="M000130-source">
187
187
  <pre>
188
188
  <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 194</span>
189
189
  194: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_error_message_explanation</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">plural_msg</span> = <span class="ruby-keyword kw">nil</span>)
@@ -194,11 +194,11 @@ Sets a your own explanation of the error message dialog.
194
194
  </div>
195
195
  </div>
196
196
 
197
- <div id="method-M000128" class="method-detail">
198
- <a name="M000128"></a>
197
+ <div id="method-M000129" class="method-detail">
198
+ <a name="M000129"></a>
199
199
 
200
200
  <div class="method-heading">
201
- <a href="#M000128" class="method-signature">
201
+ <a href="#M000129" class="method-signature">
202
202
  <span class="method-name">set_error_message_title(msg)<br />
203
203
  </span>
204
204
  </a>
@@ -222,8 +222,8 @@ Sets a your own title of error message dialog.
222
222
  </li>
223
223
  </ul>
224
224
  <p><a class="source-toggle" href="#"
225
- onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
226
- <div class="method-source-code" id="M000128-source">
225
+ onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
226
+ <div class="method-source-code" id="M000129-source">
227
227
  <pre>
228
228
  <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 180</span>
229
229
  180: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_error_message_title</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">plural_msg</span> = <span class="ruby-keyword kw">nil</span>)
@@ -234,23 +234,23 @@ Sets a your own title of error message dialog.
234
234
  </div>
235
235
  </div>
236
236
 
237
- <div id="method-M000125" class="method-detail">
238
- <a name="M000125"></a>
237
+ <div id="method-M000126" class="method-detail">
238
+ <a name="M000126"></a>
239
239
 
240
240
  <div class="method-heading">
241
- <a href="#M000125" class="method-signature">
241
+ <a href="#M000126" class="method-signature">
242
242
  <span class="method-name">untranslate</span><span class="method-args">(*w)</span>
243
243
  </a>
244
244
  </div>
245
245
 
246
246
  <div class="method-description">
247
247
  <p>
248
- Sets the <a href="Base.html#M000125">untranslate</a> columns. (e.g.) <a
249
- href="Base.html#M000125">untranslate</a> :foo, :bar, :baz
248
+ Sets the <a href="Base.html#M000126">untranslate</a> columns. (e.g.) <a
249
+ href="Base.html#M000126">untranslate</a> :foo, :bar, :baz
250
250
  </p>
251
251
  <p><a class="source-toggle" href="#"
252
- onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
253
- <div class="method-source-code" id="M000125-source">
252
+ onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
253
+ <div class="method-source-code" id="M000126-source">
254
254
  <pre>
255
255
  <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 139</span>
256
256
  139: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">w</span>)
@@ -263,11 +263,11 @@ href="Base.html#M000125">untranslate</a> :foo, :bar, :baz
263
263
  </div>
264
264
  </div>
265
265
 
266
- <div id="method-M000126" class="method-detail">
267
- <a name="M000126"></a>
266
+ <div id="method-M000127" class="method-detail">
267
+ <a name="M000127"></a>
268
268
 
269
269
  <div class="method-heading">
270
- <a href="#M000126" class="method-signature">
270
+ <a href="#M000127" class="method-signature">
271
271
  <span class="method-name">untranslate?</span><span class="method-args">(columnname)</span>
272
272
  </a>
273
273
  </div>
@@ -275,12 +275,12 @@ href="Base.html#M000125">untranslate</a> :foo, :bar, :baz
275
275
  <div class="method-description">
276
276
  <p>
277
277
  Returns true if the column is set &quot;<a
278
- href="Base.html#M000125">untranslate</a>&quot;. (e.g.) <a
279
- href="Base.html#M000126">untranslate?</a> :foo
278
+ href="Base.html#M000126">untranslate</a>&quot;. (e.g.) <a
279
+ href="Base.html#M000127">untranslate?</a> :foo
280
280
  </p>
281
281
  <p><a class="source-toggle" href="#"
282
- onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
283
- <div class="method-source-code" id="M000126-source">
282
+ onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
283
+ <div class="method-source-code" id="M000127-source">
284
284
  <pre>
285
285
  <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 147</span>
286
286
  147: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate?</span>(<span class="ruby-identifier">columnname</span>)
@@ -292,11 +292,11 @@ href="Base.html#M000126">untranslate?</a> :foo
292
292
  </div>
293
293
  </div>
294
294
 
295
- <div id="method-M000123" class="method-detail">
296
- <a name="M000123"></a>
295
+ <div id="method-M000124" class="method-detail">
296
+ <a name="M000124"></a>
297
297
 
298
298
  <div class="method-heading">
299
- <a href="#M000123" class="method-signature">
299
+ <a href="#M000124" class="method-signature">
300
300
  <span class="method-name">untranslate_all</span><span class="method-args">()</span>
301
301
  </a>
302
302
  </div>
@@ -306,8 +306,8 @@ href="Base.html#M000126">untranslate?</a> :foo
306
306
  Untranslate all of the tablename/fieldnames in this model class.
307
307
  </p>
308
308
  <p><a class="source-toggle" href="#"
309
- onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
310
- <div class="method-source-code" id="M000123-source">
309
+ onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
310
+ <div class="method-source-code" id="M000124-source">
311
311
  <pre>
312
312
  <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 128</span>
313
313
  128: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate_all</span>
@@ -318,23 +318,23 @@ Untranslate all of the tablename/fieldnames in this model class.
318
318
  </div>
319
319
  </div>
320
320
 
321
- <div id="method-M000124" class="method-detail">
322
- <a name="M000124"></a>
321
+ <div id="method-M000125" class="method-detail">
322
+ <a name="M000125"></a>
323
323
 
324
324
  <div class="method-heading">
325
- <a href="#M000124" class="method-signature">
325
+ <a href="#M000125" class="method-signature">
326
326
  <span class="method-name">untranslate_all?</span><span class="method-args">()</span>
327
327
  </a>
328
328
  </div>
329
329
 
330
330
  <div class="method-description">
331
331
  <p>
332
- Returns true if &quot;<a href="Base.html#M000123">untranslate_all</a>&quot;
332
+ Returns true if &quot;<a href="Base.html#M000124">untranslate_all</a>&quot;
333
333
  is called. Otherwise false.
334
334
  </p>
335
335
  <p><a class="source-toggle" href="#"
336
- onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
337
- <div class="method-source-code" id="M000124-source">
336
+ onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
337
+ <div class="method-source-code" id="M000125-source">
338
338
  <pre>
339
339
  <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 133</span>
340
340
  133: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate_all?</span>