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/lib/gettext/rails.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  You may redistribute it and/or modify it under the same
7
7
  license terms as Ruby.
8
8
 
9
- $Id: rails.rb,v 1.75 2008/05/11 11:37:34 mutoh Exp $
9
+ $Id: rails.rb,v 1.79 2008/08/02 08:42:06 mutoh Exp $
10
10
  =end
11
11
 
12
12
  require 'gettext/cgi'
@@ -271,20 +271,36 @@ end
271
271
 
272
272
  module ActionView #:nodoc:
273
273
  class Base #:nodoc:
274
- alias render_file_without_locale render_file #:nodoc:
275
- # This provides to find localized template files such as foo_ja.rhtml, foo_ja_JP.rhtml
276
- # instead of foo.rhtml. If the file isn't found, foo.rhtml is used.
277
- def render_file(template_path, use_full_path = true, local_assigns = {})
274
+ # This provides to find localized template files such as foo_ja.html.erb, foo_ja_JP.html.erb
275
+ # instead of foo.html.erb. If the file isn't found, foo.html.erb is used.
276
+ def render_file_with_gettext(template_path, use_full_path = true, local_assigns = {})
278
277
  locale = GetText.locale
279
278
  [locale.to_general, locale.to_s, locale.language, Locale.default.language].uniq.each do |v|
280
279
  localized_path = "#{template_path}_#{v}"
281
- return render_file_without_locale(localized_path, use_full_path, local_assigns) if file_exists? localized_path
280
+ if (respond_to? :file_exists?) ? file_exists?(localized_path) : (finder.file_exists? localized_path)
281
+ return render_file_without_gettext(localized_path, use_full_path, local_assigns)
282
+ end
282
283
  end
283
- render_file_without_locale(template_path, use_full_path, local_assigns)
284
+ render_file_without_gettext(template_path, use_full_path, local_assigns)
284
285
  end
285
-
286
+ alias_method_chain :render_file, :gettext
286
287
  end
287
288
 
289
+ if defined? TemplateFinder
290
+ class TemplateFinder
291
+ def pick_template_with_gettext(template_path, extension)
292
+ locale = GetText.locale
293
+ [locale.to_general, locale.to_s, locale.language, Locale.default.language].uniq.each do |v|
294
+ file_name = "#{template_path}_#{v}.#{extension}"
295
+ base_path = find_base_path_for(file_name)
296
+ return "#{base_path}/#{file_name}" unless base_path.blank?
297
+ end
298
+ pick_template_without_gettext(template_path, extension)
299
+ end
300
+ alias_method_chain :pick_template, :gettext
301
+ end
302
+ end
303
+
288
304
  module Helpers #:nodoc:
289
305
  class FormBuilder
290
306
  include GetText
@@ -490,16 +506,17 @@ module ActionController #:nodoc: all
490
506
  def expire_fragment_with_gettext(name, options = nil)
491
507
  return unless perform_caching
492
508
 
493
- key = fragment_cache_key_without_gettext(name)
509
+ fc_store = (defined? :cache_store) ? cache_store : fragment_cache_store
510
+ key = name.is_a?(Regexp) ? name : fragment_cache_key_without_gettext(name)
494
511
  if key.is_a?(Regexp)
495
512
  self.class.benchmark "Expired fragments matching: #{key.source}" do
496
- fragment_cache_store.delete_matched(key, options)
513
+ fc_store.delete_matched(key, options)
497
514
  end
498
515
  else
499
516
  key = key.gsub(/:/, ".")
500
517
  self.class.benchmark "Expired fragment: #{key}, lang = #{available_locales.inspect}" do
501
518
  available_locales.each do |lang|
502
- fragment_cache_store.delete("#{key}_#{lang}", options)
519
+ fc_store.delete("#{key}_#{lang}", options)
503
520
  end
504
521
  end
505
522
  end
@@ -25,7 +25,7 @@ module GetText
25
25
 
26
26
  # constant values
27
27
  VERSION = GetText::VERSION
28
- DATE = %w($Date: 2008/01/27 10:58:10 $)[1]
28
+ DATE = %w($Date: 2008/07/26 06:59:34 $)[1]
29
29
  MAX_LINE_LEN = 70
30
30
 
31
31
  @ex_parsers = []
@@ -115,6 +115,11 @@ msgstr ""
115
115
  str << "msgid_plural \"" << ids[1] << "\"\n"
116
116
  str << "msgstr[0] \"\"\n"
117
117
  str << "msgstr[1] \"\"\n"
118
+ elsif msgid.include?("\004")
119
+ ids = msgid.split(/\004/)
120
+ str << "\nmsgctxt \"" << ids[0] << "\"\n"
121
+ str << "msgid \"" << ids[1] << "\"\n"
122
+ str << "msgstr \"\"\n"
118
123
  else
119
124
  str << "\nmsgid \"" << msgid << "\"\n"
120
125
  str << "msgstr \"\"\n"
@@ -20,7 +20,7 @@ module GetText
20
20
  extend GetText
21
21
 
22
22
  VERSION = GetText::VERSION
23
- DATE = %w($Date: 2006/06/11 15:36:20 $)[1] # :nodoc:
23
+ DATE = %w($Date: 2008/07/26 06:59:34 $)[1] # :nodoc:
24
24
 
25
25
  module_function
26
26
  def run(targetfile = nil, output_path = nil) # :nodoc:
@@ -86,16 +86,8 @@ module GetText
86
86
  podir = "./po", targetdir = "./data/locale",
87
87
  targetpath_rule = "%s/LC_MESSAGES") #:nodoc:
88
88
  $stderr.puts "This function will be moved to utils.rb. So requires 'utils' first, please."
89
- modir = File.join(targetdir, targetpath_rule)
90
- Dir.glob(File.join(podir, "*/*.po")) do |file|
91
- lang, basename = /\/([^\/]+?)\/(.*)\.po/.match(file[podir.size..-1]).to_a[1,2]
92
- outdir = modir % lang
93
- FileUtils.mkdir_p(outdir) unless File.directory?(outdir)
94
- rmsgfmt(file, File.join(outdir, "#{basename}.mo"))
95
- if verbose
96
- $stderr.puts %Q[#{file} -> #{File.join(outdir, "#{basename}.mo")}]
97
- end
98
- end
89
+ require 'gettext/utils'
90
+ GetText.create_mofiles(verbose, podir, targetdir, targetpath_rule)
99
91
  self
100
92
  end
101
93
  end
data/lib/gettext/utils.rb CHANGED
@@ -102,10 +102,14 @@ module GetText
102
102
  lang, basename = /\/([^\/]+?)\/(.*)\.po/.match(file[podir.size..-1]).to_a[1,2]
103
103
  outdir = modir % lang
104
104
  FileUtils.mkdir_p(outdir) unless File.directory?(outdir)
105
- rmsgfmt(file, File.join(outdir, "#{basename}.mo"))
106
- if verbose
107
- $stderr.puts %Q[#{file} -> #{File.join(outdir, "#{basename}.mo")}]
105
+ $stderr.print %Q[#{file} -> #{File.join(outdir, "#{basename}.mo")} ... ] if verbose
106
+ begin
107
+ rmsgfmt(file, File.join(outdir, "#{basename}.mo"))
108
+ rescue Exception => e
109
+ $stderr.puts "Error." if verbose
110
+ raise e
108
111
  end
112
+ $stderr.puts "Done." if verbose
109
113
  end
110
114
  end
111
115
 
@@ -8,5 +8,5 @@
8
8
  license terms as Ruby.
9
9
  =end
10
10
  module GetText
11
- VERSION = "1.91.0"
11
+ VERSION = "1.92.0"
12
12
  end
data/po/bs/rails.po CHANGED
@@ -1,16 +1,16 @@
1
1
  # translation of rails.po to Bosnian
2
- #
2
+ #
3
3
  # a po-file for Ruby-GetText-Package and Ruby on Rails.
4
- #
4
+ #
5
5
  # Copyright (C) 2005-2007 Masao Mutoh
6
- #
6
+ #
7
7
  # This file is distributed under the same license as the Ruby-GetText-Package.
8
- #
8
+ #
9
9
  # Sanjin Sehic <saserr at gmail.com>, 2007.
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: ruby-gettext 1.90.0\n"
13
- "POT-Creation-Date: 2008-05-10 01:52+0900\n"
12
+ "Project-Id-Version: ruby-gettext 1.92.0\n"
13
+ "POT-Creation-Date: 2008-07-13 12:12+0900\n"
14
14
  "PO-Revision-Date: 2007-06-26 19:02+0200\n"
15
15
  "Last-Translator: Sanjin Sehic <saserr at gmail.com>\n"
16
16
  "Language-Team: Bosnian <saserr at gmail.com>\n"
@@ -21,77 +21,77 @@ msgstr ""
21
21
  "%100>=20) ? 1 : 2;\n"
22
22
  "X-Generator: KBabel 1.11.4\n"
23
23
 
24
- #: lib/gettext/rails.rb:295
24
+ #: lib/gettext/rails.rb:308
25
25
  msgid "%{num} error prohibited this %{record} from being saved"
26
26
  msgid_plural "%{num} errors prohibited this %{record} from being saved"
27
27
  msgstr[0] "%{num} greška je spriječila %{record} od spašavanja"
28
28
  msgstr[1] "%{num} greške su spriječile %{record} od spašavanja"
29
29
  msgstr[2] "%{num} grešaka su spriječile %{record} od spašavanja"
30
30
 
31
- #: lib/gettext/rails.rb:297
31
+ #: lib/gettext/rails.rb:310
32
32
  msgid "There was a problem with the following field:"
33
33
  msgid_plural "There were problems with the following fields:"
34
34
  msgstr[0] "Postoji problem u sljedečem polju:"
35
35
  msgstr[1] "Postoje problemi u sljedečim poljima:"
36
36
  msgstr[2] "Postoje problemi u sljedečim poljima:"
37
37
 
38
- #: lib/gettext/rails.rb:403
38
+ #: lib/gettext/rails.rb:416
39
39
  msgid "less than 5 seconds"
40
40
  msgstr "manje od 5 sekundi"
41
41
 
42
- #: lib/gettext/rails.rb:403
42
+ #: lib/gettext/rails.rb:416
43
43
  msgid "less than 10 seconds"
44
44
  msgstr "manje od 10 sekundi"
45
45
 
46
- #: lib/gettext/rails.rb:403
46
+ #: lib/gettext/rails.rb:416
47
47
  msgid "less than 20 seconds"
48
48
  msgstr "manje od 20 sekundi"
49
49
 
50
- #: lib/gettext/rails.rb:404
50
+ #: lib/gettext/rails.rb:417
51
51
  msgid "half a minute"
52
52
  msgstr "pola minute"
53
53
 
54
- #: lib/gettext/rails.rb:404
54
+ #: lib/gettext/rails.rb:417
55
55
  msgid "less than a minute"
56
56
  msgstr "manje od minute"
57
57
 
58
- #: lib/gettext/rails.rb:404
58
+ #: lib/gettext/rails.rb:417
59
59
  msgid "about 1 month"
60
60
  msgstr "oko 1 mjesec"
61
61
 
62
- #: lib/gettext/rails.rb:405
62
+ #: lib/gettext/rails.rb:418
63
63
  msgid "about 1 year"
64
64
  msgstr "oko godinu dana"
65
65
 
66
- #: lib/gettext/rails.rb:406
66
+ #: lib/gettext/rails.rb:419
67
67
  msgid "1 minute"
68
68
  msgid_plural "%{num} minutes"
69
69
  msgstr[0] "1 minuta"
70
70
  msgstr[1] "%{num} minute"
71
71
  msgstr[2] "%{num} minuta"
72
72
 
73
- #: lib/gettext/rails.rb:407
73
+ #: lib/gettext/rails.rb:420
74
74
  msgid "about 1 hour"
75
75
  msgid_plural "about %{num} hours"
76
76
  msgstr[0] "oko 1 sat"
77
77
  msgstr[1] "oko %{num} sata"
78
78
  msgstr[2] "oko %{num} sati"
79
79
 
80
- #: lib/gettext/rails.rb:408
80
+ #: lib/gettext/rails.rb:421
81
81
  msgid "1 day"
82
82
  msgid_plural "%{num} days"
83
83
  msgstr[0] "1 dan"
84
84
  msgstr[1] "%{num} dana"
85
85
  msgstr[2] "%{num} dana"
86
86
 
87
- #: lib/gettext/rails.rb:409
87
+ #: lib/gettext/rails.rb:422
88
88
  msgid "1 month"
89
89
  msgid_plural "%{num} months"
90
90
  msgstr[0] "1 mjesec"
91
91
  msgstr[1] "%{num} mjeseca"
92
92
  msgstr[2] "%{num} mjeseci"
93
93
 
94
- #: lib/gettext/rails.rb:410
94
+ #: lib/gettext/rails.rb:423
95
95
  msgid "over 1 year"
96
96
  msgid_plural "over %{num} years"
97
97
  msgstr[0] "preko 1 godine"
@@ -148,3 +148,38 @@ msgstr "%{fn} se već koristi"
148
148
  #: lib/gettext/active_record.rb:230
149
149
  msgid "%{fn} is not a number"
150
150
  msgstr "%{fn} nije broj"
151
+
152
+ #: lib/gettext/active_record.rb:231
153
+ #, fuzzy
154
+ msgid "%{fn} must be greater than %d"
155
+ msgstr "%{fn} se mora prihvatiti"
156
+
157
+ #: lib/gettext/active_record.rb:232
158
+ #, fuzzy
159
+ msgid "%{fn} must be greater than or equal to %d"
160
+ msgstr "%{fn} se mora prihvatiti"
161
+
162
+ #: lib/gettext/active_record.rb:233
163
+ #, fuzzy
164
+ msgid "%{fn} must be equal to %d"
165
+ msgstr "%{fn} se mora prihvatiti"
166
+
167
+ #: lib/gettext/active_record.rb:234
168
+ #, fuzzy
169
+ msgid "%{fn} must be less than %d"
170
+ msgstr "%{fn} se mora prihvatiti"
171
+
172
+ #: lib/gettext/active_record.rb:235
173
+ #, fuzzy
174
+ msgid "%{fn} must be less than or equal to %d"
175
+ msgstr "%{fn} se mora prihvatiti"
176
+
177
+ #: lib/gettext/active_record.rb:236
178
+ #, fuzzy
179
+ msgid "%{fn} must be odd"
180
+ msgstr "%{fn} se mora prihvatiti"
181
+
182
+ #: lib/gettext/active_record.rb:237
183
+ #, fuzzy
184
+ msgid "%{fn} must be even"
185
+ msgstr "%{fn} se mora prihvatiti"
data/po/bs/rgettext.po CHANGED
@@ -8,8 +8,8 @@
8
8
  # Sanjin Sehic <saserr@gmail.com>, 2007.
9
9
  msgid ""
10
10
  msgstr ""
11
- "Project-Id-Version: ruby-gettext 1.90.0\n"
12
- "POT-Creation-Date: 2008-05-10 01:52+0900\n"
11
+ "Project-Id-Version: ruby-gettext 1.92.0\n"
12
+ "POT-Creation-Date: 2008-07-13 12:12+0900\n"
13
13
  "PO-Revision-Date: 2007-03-17 16:19+0100\n"
14
14
  "Last-Translator: Sanjin Sehic <saserr@gmail.com>\n"
15
15
  "Language-Team: Bosnian <saserr@gmail.com>\n"
@@ -128,7 +128,7 @@ msgstr "Databaza nije dostupna."
128
128
  msgid "rubygems are not found."
129
129
  msgstr "rubygems se ne mogu pronaći."
130
130
 
131
- #: lib/gettext.rb:363
131
+ #: lib/gettext.rb:364
132
132
  msgid "3rd parmeter is wrong: value = %{number}"
133
133
  msgstr ""
134
134
 
data/po/ca/rails.po CHANGED
@@ -1,16 +1,16 @@
1
- #
1
+ #
2
2
  # a po-file for Ruby-GetText-Package and Ruby on Rails.
3
- #
4
- # Copyright (C) 2005-2007 Masao Mutoh
5
- #
3
+ #
4
+ # Copyright (C) 2005-2008 Masao Mutoh
5
+ #
6
6
  # This file is distributed under the same license as the Ruby-GetText-Package.
7
- #
8
- # Ramon Salvadó <rsalvado at gnuine.com>, 2006,2007.
9
- #
7
+ #
8
+ # Ramon Salvadó <rsalvado at gnuine.com>, 2006-2008.
9
+ #
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: ruby-gettext 1.90.0\n"
13
- "POT-Creation-Date: 2008-05-10 01:52+0900\n"
12
+ "Project-Id-Version: ruby-gettext 1.92.0\n"
13
+ "POT-Creation-Date: 2008-07-13 12:12+0900\n"
14
14
  "PO-Revision-Date: 2005-12-17 14:33+0900\n"
15
15
  "Last-Translator: Ramon Salvadó <rsalvado at gnuine.com>\n"
16
16
  "Language-Team: Catalan\n"
@@ -19,75 +19,74 @@ msgstr ""
19
19
  "Content-Transfer-Encoding: 8bit\n"
20
20
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
21
 
22
- #: lib/gettext/rails.rb:295
22
+ #: lib/gettext/rails.rb:308
23
23
  msgid "%{num} error prohibited this %{record} from being saved"
24
24
  msgid_plural "%{num} errors prohibited this %{record} from being saved"
25
25
  msgstr[0] "%{num} error impedeix que es pugui guardar %{record}"
26
26
  msgstr[1] "%{num} errors impedeixen que es pugui guardar %{record}"
27
27
 
28
- #: lib/gettext/rails.rb:297
28
+ #: lib/gettext/rails.rb:310
29
29
  msgid "There was a problem with the following field:"
30
30
  msgid_plural "There were problems with the following fields:"
31
31
  msgstr[0] "Hi ha problemes amb el següent camp:"
32
32
  msgstr[1] "Hi ha problemes amb els següents camps:"
33
33
 
34
- #: lib/gettext/rails.rb:403
34
+ #: lib/gettext/rails.rb:416
35
35
  msgid "less than 5 seconds"
36
36
  msgstr "menys de 5 segons"
37
37
 
38
- #: lib/gettext/rails.rb:403
38
+ #: lib/gettext/rails.rb:416
39
39
  msgid "less than 10 seconds"
40
40
  msgstr "menys de 10 segons"
41
41
 
42
- #: lib/gettext/rails.rb:403
42
+ #: lib/gettext/rails.rb:416
43
43
  msgid "less than 20 seconds"
44
44
  msgstr "menys de 20 segons"
45
45
 
46
- #: lib/gettext/rails.rb:404
46
+ #: lib/gettext/rails.rb:417
47
47
  msgid "half a minute"
48
48
  msgstr "mig minut"
49
49
 
50
- #: lib/gettext/rails.rb:404
50
+ #: lib/gettext/rails.rb:417
51
51
  msgid "less than a minute"
52
52
  msgstr "menys d'un minut"
53
53
 
54
- #: lib/gettext/rails.rb:404
54
+ #: lib/gettext/rails.rb:417
55
55
  msgid "about 1 month"
56
- msgstr "al voltant d'1 mes"
56
+ msgstr "al voltant d'un mes"
57
57
 
58
- #: lib/gettext/rails.rb:405
58
+ #: lib/gettext/rails.rb:418
59
59
  msgid "about 1 year"
60
- msgstr "al voltant d'1 any"
60
+ msgstr "al voltant d'un any"
61
61
 
62
- #: lib/gettext/rails.rb:406
62
+ #: lib/gettext/rails.rb:419
63
63
  msgid "1 minute"
64
64
  msgid_plural "%{num} minutes"
65
- msgstr[0] "1 minut"
65
+ msgstr[0] "un minut"
66
66
  msgstr[1] "%{num} minuts"
67
67
 
68
- #: lib/gettext/rails.rb:407
68
+ #: lib/gettext/rails.rb:420
69
69
  msgid "about 1 hour"
70
70
  msgid_plural "about %{num} hours"
71
- msgstr[0] "al voltant d'1 hora"
71
+ msgstr[0] "al voltant d'una hora"
72
72
  msgstr[1] "al voltant de %{num} hores"
73
73
 
74
- #: lib/gettext/rails.rb:408
74
+ #: lib/gettext/rails.rb:421
75
75
  msgid "1 day"
76
76
  msgid_plural "%{num} days"
77
- msgstr[0] "1 dia"
77
+ msgstr[0] "un dia"
78
78
  msgstr[1] "%{num} dies"
79
79
 
80
- #: lib/gettext/rails.rb:409
80
+ #: lib/gettext/rails.rb:422
81
81
  msgid "1 month"
82
82
  msgid_plural "%{num} months"
83
- msgstr[0] "1 mes"
83
+ msgstr[0] "un mes"
84
84
  msgstr[1] "%{num} mesos"
85
85
 
86
- #: lib/gettext/rails.rb:410
87
- #, fuzzy
86
+ #: lib/gettext/rails.rb:423
88
87
  msgid "over 1 year"
89
88
  msgid_plural "over %{num} years"
90
- msgstr[0] "més de 1 anys"
89
+ msgstr[0] "més d'un any"
91
90
  msgstr[1] "més de %{num} anys"
92
91
 
93
92
  #: lib/gettext/active_record.rb:28
@@ -141,3 +140,31 @@ msgstr "%{fn} ja existent"
141
140
  #: lib/gettext/active_record.rb:230
142
141
  msgid "%{fn} is not a number"
143
142
  msgstr "%{fn} no és un número"
143
+
144
+ #: lib/gettext/active_record.rb:231
145
+ msgid "%{fn} must be greater than %d"
146
+ msgstr "%{fn} ha de ser més gran que %d"
147
+
148
+ #: lib/gettext/active_record.rb:232
149
+ msgid "%{fn} must be greater than or equal to %d"
150
+ msgstr "%{fn} ha de ser més gran o igual a %d"
151
+
152
+ #: lib/gettext/active_record.rb:233
153
+ msgid "%{fn} must be equal to %d"
154
+ msgstr "%{fn} ha de ser igual a %d"
155
+
156
+ #: lib/gettext/active_record.rb:234
157
+ msgid "%{fn} must be less than %d"
158
+ msgstr "%{fn} ha de ser menor que %d"
159
+
160
+ #: lib/gettext/active_record.rb:235
161
+ msgid "%{fn} must be less than or equal to %d"
162
+ msgstr "%{fn} ha de ser menor o igual que %d"
163
+
164
+ #: lib/gettext/active_record.rb:236
165
+ msgid "%{fn} must be odd"
166
+ msgstr "%{fn} ha de ser senar"
167
+
168
+ #: lib/gettext/active_record.rb:237
169
+ msgid "%{fn} must be even"
170
+ msgstr "%{fn} ha de ser parell"