gettext 1.90.0 → 1.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -10,7 +10,7 @@
10
10
  You may redistribute it and/or modify it under the same
11
11
  license terms as Ruby.
12
12
 
13
- $Id: textdomain.rb,v 1.23 2008/01/19 17:07:02 mutoh Exp $
13
+ $Id: textdomain.rb,v 1.24 2008/03/31 06:26:47 mutoh Exp $
14
14
  =end
15
15
 
16
16
  require 'gettext/string'
@@ -76,25 +76,25 @@ module GetText
76
76
  @locale_paths = []
77
77
  if ENV["GETTEXT_PATH"]
78
78
  ENV["GETTEXT_PATH"].split(/,/).each {|i|
79
- @locale_paths += ["#{i}/%{locale}/LC_MESSAGES/%{name}.mo", "#{i}/%{locale}/%{name}.mo"]
80
- }
79
+ @locale_paths += ["#{i}/%{locale}/LC_MESSAGES/%{name}.mo", "#{i}/%{locale}/%{name}.mo"]
80
+ }
81
81
  elsif @topdir
82
82
  @locale_paths += ["#{@topdir}/%{locale}/LC_MESSAGES/%{name}.mo", "#{@topdir}/%{locale}/%{name}.mo"]
83
83
  end
84
84
 
85
85
  unless @topdir
86
- @locale_paths += DEFAULT_LOCALE_PATHS
87
-
88
- if defined? Gem
89
- $:.each do |path|
90
- if GEM_PATH_RE =~ path
91
- @locale_paths += [
92
- "#{$1}/data/locale/%{locale}/LC_MESSAGES/%{name}.mo",
93
- "#{$1}/data/locale/%{locale}/%{name}.mo",
94
- "#{$1}/locale/%{locale}/%{name}.mo"]
95
- end
96
- end
97
- end
86
+ @locale_paths += DEFAULT_LOCALE_PATHS
87
+
88
+ if defined? Gem
89
+ $:.each do |path|
90
+ if GEM_PATH_RE =~ path
91
+ @locale_paths += [
92
+ "#{$1}/data/locale/%{locale}/LC_MESSAGES/%{name}.mo",
93
+ "#{$1}/data/locale/%{locale}/%{name}.mo",
94
+ "#{$1}/locale/%{locale}/%{name}.mo"]
95
+ end
96
+ end
97
+ end
98
98
  end
99
99
 
100
100
  @mofiles = Hash.new
@@ -152,9 +152,9 @@ module GetText
152
152
  key = msgid + "\000" + msgid_plural
153
153
  msg = gettext(key)
154
154
  if ! msg
155
- nil # do nothing.
155
+ nil # do nothing.
156
156
  elsif msg == key
157
- msg = n == 1 ? msgid : msgid_plural
157
+ msg = n == 1 ? msgid : msgid_plural
158
158
  elsif msg.include?("\000")
159
159
  ary = msg.split("\000")
160
160
  if @current_mo
@@ -203,35 +203,38 @@ module GetText
203
203
  def load_mo(reload = false)
204
204
  @current_mo = nil
205
205
  return nil unless @current_locale
206
+
206
207
  unless reload
207
- @current_mo = @mofiles[@current_locale]
208
- if @current_mo
209
- if @current_mo == :empty
210
- @current_mo = nil
211
- return nil unless (@@check_mo or $DEBUG)
212
- elsif (@@check_mo or $DEBUG)
213
- @current_mo.update!
214
- return @current_mo
215
- else
216
- return @current_mo
217
- end
218
- end
208
+ @current_mo = @mofiles[@current_locale]
209
+ if @current_mo
210
+ if @current_mo == :empty
211
+ @current_mo = nil
212
+ return nil unless (@@check_mo or $DEBUG)
213
+ elsif (@@check_mo or $DEBUG)
214
+ @current_mo.update!
215
+ return @current_mo
216
+ else
217
+ return @current_mo
218
+ end
219
+ end
219
220
  end
220
221
  locales = [@current_locale.orig_str, @current_locale.to_posix, @current_locale.language].uniq
221
222
  matched = false
222
223
  @locale_paths.each do |dir|
223
- locales.each{|locale|
224
- fname = dir % {:locale => locale, :name => @name}
225
- @search_files << fname
226
- if File.exist?(fname)
227
- $stderr.puts "GetText::TextDomain#load_mo: mo file is #{fname}" if $DEBUG
228
- @current_mo = MOFile.open(fname, @current_locale.charset)
229
- @mofiles[@current_locale] = @current_mo
230
- matched = true
231
- break
232
- end
233
- }
234
- break if matched
224
+ locales.each{|locale|
225
+ fname = dir % {:locale => locale, :name => @name}
226
+ if $DEBUG
227
+ @search_files << fname unless @search_files.include?(fname)
228
+ end
229
+ if File.exist?(fname)
230
+ $stderr.puts "GetText::TextDomain#load_mo: mo file is #{fname}" if $DEBUG
231
+ @current_mo = MOFile.open(fname, @current_locale.charset)
232
+ @mofiles[@current_locale] = @current_mo
233
+ matched = true
234
+ break
235
+ end
236
+ }
237
+ break if matched
235
238
  end
236
239
  unless @current_mo
237
240
  @mofiles[@current_locale] = :empty
data/lib/gettext/utils.rb CHANGED
@@ -19,8 +19,11 @@ require 'gettext/rmsgfmt'
19
19
  require 'fileutils'
20
20
 
21
21
  module GetText
22
+ bindtextdomain "rgettext"
23
+
22
24
  module_function
23
25
 
26
+
24
27
  # Merges two Uniforum style .po files together.
25
28
  #
26
29
  # *Note* This function requires "msgmerge" tool included in GNU GetText. So you need to install GNU GetText.
@@ -47,6 +50,10 @@ module GetText
47
50
 
48
51
  cont = ""
49
52
  if FileTest.exist? defpo
53
+ `#{cmd} --version`
54
+ unless $?.success?
55
+ raise _("`#{cmd}' may not be found. \nInstall GNU Gettext then set PATH or MSGMERGE_PATH correctly.")
56
+ end
50
57
  cont = `#{cmd} #{defpo} #{refpo}`
51
58
  else
52
59
  File.open(refpo) do |io|
@@ -58,7 +65,7 @@ module GetText
58
65
  FileUtils.cp(refpo, failed_filename)
59
66
  $stderr.puts _("Failed to merge with %{defpo}") % {:defpo => defpo}
60
67
  $stderr.puts _("New .pot was copied to %{failed_filename}") %{:failed_filename => failed_filename}
61
- raise _("`#{cmd}' may not be found. \nInstall GNU Gettext then set PATH or MSGMERGE_PATH correctly.")
68
+ raise _("Check these po/pot-files. It may have syntax errors or something wrong.")
62
69
  else
63
70
  cont.sub!(/(Project-Id-Version\:).*$/, "\\1 #{app_version}\\n\"")
64
71
  File.open(defpo, "w") do |out|
@@ -2,11 +2,11 @@
2
2
  =begin
3
3
  version - version information of Ruby-GetText-Package
4
4
 
5
- Copyright (C) 2005-2007 Masao Mutoh
5
+ Copyright (C) 2005-2008 Masao Mutoh
6
6
 
7
7
  You may redistribute it and/or modify it under the same
8
8
  license terms as Ruby.
9
9
  =end
10
10
  module GetText
11
- VERSION = "1.90.0"
11
+ VERSION = "1.91.0"
12
12
  end
data/lib/locale/jruby.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: jruby.rb,v 1.2 2007/11/08 16:44:22 mutoh Exp $
9
+ $Id: jruby.rb,v 1.3 2008/03/21 06:28:10 mutoh Exp $
10
10
  =end
11
11
 
12
12
  require 'locale/base'
@@ -21,14 +21,14 @@ module Locale
21
21
  if java.lang.System.getProperties['os.name'].downcase =~ /windows/
22
22
  require 'locale/win32_table'
23
23
 
24
- extend SystemWin32Table
24
+ extend ::Locale::SystemWin32Table
25
25
  end
26
26
 
27
27
  module_function
28
28
  def default_locale #:nodoc:
29
29
  locale = java.util.Locale.getDefault
30
30
  charset = java.nio.charset.Charset.defaultCharset.name
31
- Locale::Object.new(locale, nil, charset)
31
+ Locale::Object.new(locale.to_s, nil, charset)
32
32
  end
33
33
  end
34
34
  @@locale_system_module = SystemJRuby
data/lib/locale/win32.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: win32.rb,v 1.4 2008/02/02 16:47:40 mutoh Exp $
9
+ $Id: win32.rb,v 1.5 2008/03/21 06:28:10 mutoh Exp $
10
10
  =end
11
11
 
12
12
  require 'locale/base'
@@ -18,6 +18,7 @@ module Locale
18
18
  # This is a low-level class. Application shouldn't use this directly.
19
19
  module SystemWin32
20
20
  extend SystemBase
21
+ include SystemWin32Table
21
22
 
22
23
  @@default_locale = Locale::Object.new("en", nil, "CP1252")
23
24
  @@win32 = Win32API.new("kernel32.dll", "GetUserDefaultLangID", nil, "i")
@@ -6,11 +6,11 @@
6
6
  You may redistribute it and/or modify it under the same
7
7
  license terms as Ruby.
8
8
 
9
- $Id: win32_table.rb,v 1.3 2008/02/02 16:47:40 mutoh Exp $
9
+ $Id: win32_table.rb,v 1.4 2008/03/21 06:28:10 mutoh Exp $
10
10
  =end
11
11
 
12
12
  module Locale
13
- module SystemWin32
13
+ module SystemWin32Table
14
14
 
15
15
  #LangID, locale name, code page
16
16
  LocaleTable = [
data/po/bs/rails.po CHANGED
@@ -1,148 +1,150 @@
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: rails\n"
13
- "POT-Creation-Date: 2007-06-26 14:02+0900\n"
12
+ "Project-Id-Version: ruby-gettext 1.90.0\n"
13
+ "POT-Creation-Date: 2008-05-10 01:52+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"
17
17
  "MIME-Version: 1.0\n"
18
18
  "Content-Type: text/plain; charset=UTF-8\n"
19
19
  "Content-Transfer-Encoding: 8bit\n"
20
- "Plural-Forms: n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
20
+ "Plural-Forms: n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n"
21
+ "%100>=20) ? 1 : 2;\n"
21
22
  "X-Generator: KBabel 1.11.4\n"
22
23
 
23
- #: lib/gettext/rails.rb:293
24
+ #: lib/gettext/rails.rb:295
24
25
  msgid "%{num} error prohibited this %{record} from being saved"
25
26
  msgid_plural "%{num} errors prohibited this %{record} from being saved"
26
27
  msgstr[0] "%{num} greška je spriječila %{record} od spašavanja"
27
28
  msgstr[1] "%{num} greške su spriječile %{record} od spašavanja"
28
29
  msgstr[2] "%{num} grešaka su spriječile %{record} od spašavanja"
29
30
 
30
- #: lib/gettext/rails.rb:295
31
+ #: lib/gettext/rails.rb:297
31
32
  msgid "There was a problem with the following field:"
32
33
  msgid_plural "There were problems with the following fields:"
33
34
  msgstr[0] "Postoji problem u sljedečem polju:"
34
35
  msgstr[1] "Postoje problemi u sljedečim poljima:"
35
36
  msgstr[2] "Postoje problemi u sljedečim poljima:"
36
37
 
37
- #: lib/gettext/rails.rb:382
38
+ #: lib/gettext/rails.rb:403
38
39
  msgid "less than 5 seconds"
39
40
  msgstr "manje od 5 sekundi"
40
41
 
41
- #: lib/gettext/rails.rb:382
42
+ #: lib/gettext/rails.rb:403
42
43
  msgid "less than 10 seconds"
43
44
  msgstr "manje od 10 sekundi"
44
45
 
45
- #: lib/gettext/rails.rb:382
46
+ #: lib/gettext/rails.rb:403
46
47
  msgid "less than 20 seconds"
47
48
  msgstr "manje od 20 sekundi"
48
49
 
49
- #: lib/gettext/rails.rb:383
50
+ #: lib/gettext/rails.rb:404
50
51
  msgid "half a minute"
51
52
  msgstr "pola minute"
52
53
 
53
- #: lib/gettext/rails.rb:383
54
+ #: lib/gettext/rails.rb:404
54
55
  msgid "less than a minute"
55
56
  msgstr "manje od minute"
56
57
 
57
- #: lib/gettext/rails.rb:383
58
+ #: lib/gettext/rails.rb:404
58
59
  msgid "about 1 month"
59
60
  msgstr "oko 1 mjesec"
60
61
 
61
- #: lib/gettext/rails.rb:384
62
+ #: lib/gettext/rails.rb:405
62
63
  msgid "about 1 year"
63
64
  msgstr "oko godinu dana"
64
65
 
65
- #: lib/gettext/rails.rb:384
66
- msgid "over 2 years"
67
- msgstr "preko 2 godine"
68
-
69
- #: lib/gettext/rails.rb:385
66
+ #: lib/gettext/rails.rb:406
70
67
  msgid "1 minute"
71
68
  msgid_plural "%{num} minutes"
72
69
  msgstr[0] "1 minuta"
73
70
  msgstr[1] "%{num} minute"
74
71
  msgstr[2] "%{num} minuta"
75
72
 
76
- #: lib/gettext/rails.rb:386
73
+ #: lib/gettext/rails.rb:407
77
74
  msgid "about 1 hour"
78
75
  msgid_plural "about %{num} hours"
79
76
  msgstr[0] "oko 1 sat"
80
77
  msgstr[1] "oko %{num} sata"
81
78
  msgstr[2] "oko %{num} sati"
82
79
 
83
- #: lib/gettext/rails.rb:387
80
+ #: lib/gettext/rails.rb:408
84
81
  msgid "1 day"
85
82
  msgid_plural "%{num} days"
86
83
  msgstr[0] "1 dan"
87
84
  msgstr[1] "%{num} dana"
88
85
  msgstr[2] "%{num} dana"
89
86
 
90
- #: lib/gettext/rails.rb:388
87
+ #: lib/gettext/rails.rb:409
91
88
  msgid "1 month"
92
89
  msgid_plural "%{num} months"
93
90
  msgstr[0] "1 mjesec"
94
91
  msgstr[1] "%{num} mjeseca"
95
92
  msgstr[2] "%{num} mjeseci"
96
93
 
94
+ #: lib/gettext/rails.rb:410
95
+ msgid "over 1 year"
96
+ msgid_plural "over %{num} years"
97
+ msgstr[0] "preko 1 godine"
98
+ msgstr[1] "preko %{num} godine"
99
+
97
100
  #: lib/gettext/active_record.rb:28
98
101
  msgid "Validation failed: %{error_messages}"
99
102
  msgstr "Provjera nije uspjela: %{error_messages}"
100
103
 
101
- #: lib/gettext/active_record.rb:215
104
+ #: lib/gettext/active_record.rb:219
102
105
  msgid "%{fn} is not included in the list"
103
106
  msgstr "%{fn} nije u listi"
104
107
 
105
- #: lib/gettext/active_record.rb:216
108
+ #: lib/gettext/active_record.rb:220
106
109
  msgid "%{fn} is reserved"
107
110
  msgstr "%{fn} je rezervisano"
108
111
 
109
- #: lib/gettext/active_record.rb:217
112
+ #: lib/gettext/active_record.rb:221
110
113
  msgid "%{fn} is invalid"
111
114
  msgstr "%{fn} je pogrešan"
112
115
 
113
- #: lib/gettext/active_record.rb:218
116
+ #: lib/gettext/active_record.rb:222
114
117
  msgid "%{fn} doesn't match confirmation"
115
118
  msgstr "%{fn} se ne podudara sa potvrdom"
116
119
 
117
- #: lib/gettext/active_record.rb:219
120
+ #: lib/gettext/active_record.rb:223
118
121
  msgid "%{fn} must be accepted"
119
122
  msgstr "%{fn} se mora prihvatiti"
120
123
 
121
- #: lib/gettext/active_record.rb:220
124
+ #: lib/gettext/active_record.rb:224
122
125
  msgid "%{fn} can't be empty"
123
126
  msgstr "%{fn} ne može biti prazan"
124
127
 
125
- #: lib/gettext/active_record.rb:221
128
+ #: lib/gettext/active_record.rb:225
126
129
  msgid "%{fn} can't be blank"
127
130
  msgstr "%{fn} ne može biti prazan"
128
131
 
129
- #: lib/gettext/active_record.rb:222
132
+ #: lib/gettext/active_record.rb:226
130
133
  msgid "%{fn} is too long (maximum is %d characters)"
131
134
  msgstr "%{fn} je previše dugo (maksimum je %d karaktera)"
132
135
 
133
- #: lib/gettext/active_record.rb:223
136
+ #: lib/gettext/active_record.rb:227
134
137
  msgid "%{fn} is too short (minimum is %d characters)"
135
138
  msgstr "%{fn} nije dovoljno dugo (maksimum je %d karaktera)"
136
139
 
137
- #: lib/gettext/active_record.rb:224
140
+ #: lib/gettext/active_record.rb:228
138
141
  msgid "%{fn} is the wrong length (should be %d characters)"
139
142
  msgstr "%{fn} je pogrešne dužine (trebalo bi biti %d karaktera)"
140
143
 
141
- #: lib/gettext/active_record.rb:225
144
+ #: lib/gettext/active_record.rb:229
142
145
  msgid "%{fn} has already been taken"
143
146
  msgstr "%{fn} se već koristi"
144
147
 
145
- #: lib/gettext/active_record.rb:226
148
+ #: lib/gettext/active_record.rb:230
146
149
  msgid "%{fn} is not a number"
147
150
  msgstr "%{fn} nije broj"
148
-
data/po/bs/rgettext.po CHANGED
@@ -1,15 +1,15 @@
1
- # translation of rgettext.po to Bosnian
2
- #
3
- # a po-file for Ruby-GetText-Package
4
- #
5
- # Copyright (C) 2004-2006 Masao Mutoh
6
- # This file is distributed under the same license as the Ruby-GetText-Package.
7
- #
8
- # Sanjin Sehic <saserr@gmail.com>, 2007.
1
+ # translation of rgettext.po to Bosnian
2
+ #
3
+ # a po-file for Ruby-GetText-Package
4
+ #
5
+ # Copyright (C) 2004-2006 Masao Mutoh
6
+ # This file is distributed under the same license as the Ruby-GetText-Package.
7
+ #
8
+ # Sanjin Sehic <saserr@gmail.com>, 2007.
9
9
  msgid ""
10
10
  msgstr ""
11
- "Project-Id-Version: ruby-gettext 1.9.0\n"
12
- "POT-Creation-Date: 2007-06-26 14:09+0900\n"
11
+ "Project-Id-Version: ruby-gettext 1.90.0\n"
12
+ "POT-Creation-Date: 2008-05-10 01:52+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"
@@ -20,41 +20,71 @@ msgstr ""
20
20
  "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
21
21
  "X-Generator: KBabel 1.11.4\n"
22
22
 
23
- #: lib/gettext/utils.rb:52
24
- msgid "Failed to merge with %{defpo} - skipping!"
23
+ #: lib/gettext/utils.rb:66
24
+ #, fuzzy
25
+ msgid "Failed to merge with %{defpo}"
25
26
  msgstr "Spajanje sa %{defpo} nije uspjelo - nastavljam dalje!"
26
27
 
27
- #: lib/gettext/utils.rb:53
28
- msgid "Please check new .pot in %{failed_filename}"
28
+ #: lib/gettext/utils.rb:67
29
+ #, fuzzy
30
+ msgid "New .pot was copied to %{failed_filename}"
29
31
  msgstr "Molim da provjerite novi .pot u %{failed_filename}"
30
32
 
31
- #: lib/gettext/rmsgfmt.rb:31 lib/gettext/rgettext.rb:196
32
- msgid "no input files"
33
- msgstr "nema ulaznih datoteka"
33
+ #: lib/gettext/utils.rb:68
34
+ msgid "Check these po/pot-files. It may have syntax errors or something wrong."
35
+ msgstr ""
34
36
 
35
- #: lib/gettext/rmsgfmt.rb:47
36
- msgid "Usage: %s input.po [-o output.mo]"
37
- msgstr "Korištenje: %s ulaz.po [-o izlaz.mo]"
37
+ #: lib/gettext/rgettext.rb:43
38
+ msgid "'%{klass}' is ignored."
39
+ msgstr "%{klass} je ignorisan."
38
40
 
39
- #: lib/gettext/rmsgfmt.rb:49
40
- msgid "Generate binary message catalog from textual translation description."
41
- msgstr "Generiši binarni katalog poruka iz tekstualnog opisa prevoda"
41
+ #: lib/gettext/rgettext.rb:183
42
+ msgid "Usage: %s input.rb [-r parser.rb] [-o output.pot]"
43
+ msgstr "Korištenje: %s ulaz.rb [-r parser.rb] [-o izlaz.pot]"
42
44
 
43
- #: lib/gettext/rmsgfmt.rb:51 lib/gettext/rmsgmerge.rb:408
44
- #: lib/gettext/rgettext.rb:153
45
+ #: lib/gettext/rgettext.rb:185
46
+ msgid "Extract translatable strings from given input files."
47
+ msgstr "Izvadi niske za prevođenje iz date ulazne datoteke."
48
+
49
+ #: lib/gettext/rgettext.rb:187 lib/gettext/rmsgfmt.rb:51
50
+ #: lib/gettext/rmsgmerge.rb:408
45
51
  msgid "Specific options:"
46
52
  msgstr "Specifične opcije:"
47
53
 
48
- #: lib/gettext/rmsgfmt.rb:53 lib/gettext/rmsgmerge.rb:410
49
- #: lib/gettext/rgettext.rb:155
54
+ #: lib/gettext/rgettext.rb:189 lib/gettext/rmsgfmt.rb:53
55
+ #: lib/gettext/rmsgmerge.rb:410
50
56
  msgid "write output to specified file"
51
57
  msgstr "zapiši izlaz u specifičnu datoteku"
52
58
 
53
- #: lib/gettext/rmsgfmt.rb:57 lib/gettext/rmsgmerge.rb:421
54
- #: lib/gettext/rgettext.rb:172
59
+ #: lib/gettext/rgettext.rb:193
60
+ msgid "File '%s' already exists."
61
+ msgstr "Datoteka '%s' već postoji."
62
+
63
+ #: lib/gettext/rgettext.rb:198
64
+ msgid "require the library before executing rgettext"
65
+ msgstr "zahtjevaj biblioteku prije izvršavanja rgettext-a"
66
+
67
+ #: lib/gettext/rgettext.rb:202
68
+ msgid "run in debugging mode"
69
+ msgstr "pokreni u modu za nalaženje grešaka"
70
+
71
+ #: lib/gettext/rgettext.rb:206 lib/gettext/rmsgfmt.rb:57
72
+ #: lib/gettext/rmsgmerge.rb:421
55
73
  msgid "display version information and exit"
56
74
  msgstr "prikaži informaciju o verziji i završi"
57
75
 
76
+ #: lib/gettext/rgettext.rb:230 lib/gettext/rmsgfmt.rb:31
77
+ msgid "no input files"
78
+ msgstr "nema ulaznih datoteka"
79
+
80
+ #: lib/gettext/rmsgfmt.rb:47
81
+ msgid "Usage: %s input.po [-o output.mo]"
82
+ msgstr "Korištenje: %s ulaz.po [-o izlaz.mo]"
83
+
84
+ #: lib/gettext/rmsgfmt.rb:49
85
+ msgid "Generate binary message catalog from textual translation description."
86
+ msgstr "Generiši binarni katalog poruka iz tekstualnog opisa prevoda"
87
+
58
88
  #: lib/gettext/rmsgmerge.rb:403
59
89
  msgid "Usage: %s def.po ref.pot [-o output.pot]"
60
90
  msgstr "Korištenje: %s def.po ref.pot [-o izlaz.pot]"
@@ -98,34 +128,14 @@ msgstr "Databaza nije dostupna."
98
128
  msgid "rubygems are not found."
99
129
  msgstr "rubygems se ne mogu pronaći."
100
130
 
101
- #: lib/gettext/rgettext.rb:43
102
- msgid "'%{klass}' is ignored."
103
- msgstr "%{klass} je ignorisan."
104
-
105
- #: lib/gettext/rgettext.rb:149
106
- msgid "Usage: %s input.rb [-r parser.rb] [-o output.pot]"
107
- msgstr "Korištenje: %s ulaz.rb [-r parser.rb] [-o izlaz.pot]"
108
-
109
- #: lib/gettext/rgettext.rb:151
110
- msgid "Extract translatable strings from given input files."
111
- msgstr "Izvadi niske za prevođenje iz date ulazne datoteke."
112
-
113
- #: lib/gettext/rgettext.rb:159
114
- msgid "File '%s' already exists."
115
- msgstr "Datoteka '%s' već postoji."
116
-
117
- #: lib/gettext/rgettext.rb:164
118
- msgid "require the library before executing rgettext"
119
- msgstr "zahtjevaj biblioteku prije izvršavanja rgettext-a"
120
-
121
- #: lib/gettext/rgettext.rb:168
122
- msgid "run in debugging mode"
123
- msgstr "pokreni u modu za nalaženje grešaka"
131
+ #: lib/gettext.rb:363
132
+ msgid "3rd parmeter is wrong: value = %{number}"
133
+ msgstr ""
124
134
 
125
135
  #: src/poparser.ry:26 src/poparser.ry:41
126
136
  msgid "Warning: fuzzy message was ignored.\n"
127
137
  msgstr "Upozorenje: čudna poruka je ignorisana.\n"
128
138
 
129
- #: src/poparser.ry:125
139
+ #: src/poparser.ry:129
130
140
  msgid "Warning: obsolete msgid exists.\n"
131
141
  msgstr "Upozorenje: nekorišteni msgid postoji.\n"