gettext 1.7.0-mswin32 → 1.8.0-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. data/ChangeLog +139 -0
  2. data/NEWS +31 -0
  3. data/README +31 -15
  4. data/Rakefile +3 -2
  5. data/bin/rgettext +1 -1
  6. data/bin/rmsgfmt +1 -1
  7. data/bin/rmsgmerge +1 -1
  8. data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
  9. data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
  10. data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
  11. data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
  12. data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
  13. data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
  14. data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
  15. data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
  16. data/data/locale/et/LC_MESSAGES/rails.mo +0 -0
  17. data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
  18. data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
  19. data/data/locale/it/LC_MESSAGES/rails.mo +0 -0
  20. data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
  21. data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
  22. data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
  23. data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
  24. data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
  25. data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
  26. data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
  27. data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
  28. data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
  29. data/data/locale/ru/LC_MESSAGES/rails.mo +0 -0
  30. data/data/locale/ru/LC_MESSAGES/rgettext.mo +0 -0
  31. data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
  32. data/data/locale/zh/LC_MESSAGES/rails.mo +0 -0
  33. data/data/locale/zh/LC_MESSAGES/rgettext.mo +0 -0
  34. data/data/locale/zh_TW/LC_MESSAGES/rails.mo +0 -0
  35. data/data/locale/zh_TW/LC_MESSAGES/rgettext.mo +0 -0
  36. data/lib/gettext.rb +50 -23
  37. data/lib/gettext/active_record.rb +275 -0
  38. data/lib/gettext/locale.rb +9 -2
  39. data/lib/gettext/locale_cgi.rb +5 -4
  40. data/lib/gettext/locale_object.rb +5 -4
  41. data/lib/gettext/parser/{activerecord.rb → active_record.rb} +31 -14
  42. data/lib/gettext/parser/ruby.rb +48 -44
  43. data/lib/gettext/rails.rb +111 -253
  44. data/lib/gettext/rgettext.rb +34 -6
  45. data/lib/gettext/string.rb +3 -2
  46. data/lib/gettext/textdomain.rb +3 -3
  47. data/lib/gettext/version.rb +1 -1
  48. data/po/cs/rails.po +61 -61
  49. data/po/cs/rgettext.po +37 -55
  50. data/po/de/rails.po +73 -72
  51. data/po/de/rgettext.po +39 -56
  52. data/po/el/rails.po +60 -60
  53. data/po/el/rgettext.po +26 -44
  54. data/po/es/rails.po +60 -60
  55. data/po/es/rgettext.po +28 -52
  56. data/po/et/rails.po +118 -0
  57. data/po/fr/rails.po +60 -60
  58. data/po/fr/rgettext.po +26 -46
  59. data/po/it/rails.po +68 -68
  60. data/po/it/rgettext.po +35 -53
  61. data/po/ja/rails.po +62 -61
  62. data/po/ja/rgettext.po +27 -45
  63. data/po/ko/rails.po +61 -60
  64. data/po/ko/rgettext.po +34 -54
  65. data/po/nl/rails.po +59 -60
  66. data/po/nl/rgettext.po +35 -55
  67. data/po/pt_BR/rails.po +74 -73
  68. data/po/pt_BR/rgettext.po +36 -52
  69. data/po/rails.pot +61 -61
  70. data/po/rgettext.pot +25 -43
  71. data/po/ru/rails.po +61 -62
  72. data/po/ru/rgettext.po +26 -51
  73. data/po/sv/rgettext.po +27 -44
  74. data/po/zh/rails.po +62 -60
  75. data/po/zh/rgettext.po +28 -47
  76. data/po/zh_TW/rails.po +114 -0
  77. data/po/zh_TW/rgettext.po +121 -0
  78. data/samples/cgi/locale/zh_TW/LC_MESSAGES/helloerb1.mo +0 -0
  79. data/samples/cgi/locale/zh_TW/LC_MESSAGES/helloerb2.mo +0 -0
  80. data/samples/cgi/locale/zh_TW/LC_MESSAGES/hellolib.mo +0 -0
  81. data/samples/cgi/locale/zh_TW/LC_MESSAGES/main.mo +0 -0
  82. data/samples/cgi/po/zh_TW/helloerb1.po +67 -0
  83. data/samples/cgi/po/zh_TW/helloerb2.po +54 -0
  84. data/samples/cgi/po/zh_TW/hellolib.po +26 -0
  85. data/samples/cgi/po/zh_TW/main.po +79 -0
  86. data/samples/locale/zh_TW/LC_MESSAGES/hello.mo +0 -0
  87. data/samples/locale/zh_TW/LC_MESSAGES/hello2.mo +0 -0
  88. data/samples/locale/zh_TW/LC_MESSAGES/hello_noop.mo +0 -0
  89. data/samples/locale/zh_TW/LC_MESSAGES/hello_plural.mo +0 -0
  90. data/samples/locale/zh_TW/LC_MESSAGES/helloglade2.mo +0 -0
  91. data/samples/locale/zh_TW/LC_MESSAGES/hellogtk.mo +0 -0
  92. data/samples/locale/zh_TW/LC_MESSAGES/hellotk.mo +0 -0
  93. data/samples/po/hellogtk.pot +1 -1
  94. data/samples/po/zh_TW/hello.po +26 -0
  95. data/samples/po/zh_TW/hello2.po +34 -0
  96. data/samples/po/zh_TW/hello_noop.po +30 -0
  97. data/samples/po/zh_TW/hello_plural.po +28 -0
  98. data/samples/po/zh_TW/helloglade2.po +40 -0
  99. data/samples/po/zh_TW/hellogtk.po +25 -0
  100. data/samples/po/zh_TW/hellotk.po +26 -0
  101. data/samples/rails/README +8 -11
  102. data/samples/rails/app/controllers/application.rb +6 -9
  103. data/samples/rails/app/views/layouts/blog.rhtml +1 -1
  104. data/samples/rails/config/database.yml +1 -1
  105. data/samples/rails/config/environment.rb +1 -0
  106. data/samples/rails/db/schema.rb +90 -0
  107. data/samples/rails/lib/tasks/gettext.rake +1 -1
  108. data/samples/rails/locale/cs/LC_MESSAGES/blog.mo +0 -0
  109. data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
  110. data/samples/rails/locale/el/LC_MESSAGES/blog.mo +0 -0
  111. data/samples/rails/locale/en/LC_MESSAGES/blog.mo +0 -0
  112. data/samples/rails/locale/es/LC_MESSAGES/blog.mo +0 -0
  113. data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
  114. data/samples/rails/locale/it/LC_MESSAGES/blog.mo +0 -0
  115. data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
  116. data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
  117. data/samples/rails/locale/nl/LC_MESSAGES/blog.mo +0 -0
  118. data/samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
  119. data/samples/rails/locale/ru/LC_MESSAGES/blog.mo +0 -0
  120. data/samples/rails/locale/zh/LC_MESSAGES/blog.mo +0 -0
  121. data/samples/rails/locale/zh_TW/LC_MESSAGES/blog.mo +0 -0
  122. data/samples/rails/po/blog.pot +106 -110
  123. data/samples/rails/po/cs/blog.po +110 -115
  124. data/samples/rails/po/de/blog.po +107 -112
  125. data/samples/rails/po/el/blog.po +105 -109
  126. data/samples/rails/po/en/blog.po +107 -111
  127. data/samples/rails/po/es/blog.po +105 -110
  128. data/samples/rails/po/fr/blog.po +105 -109
  129. data/samples/rails/po/it/blog.po +105 -109
  130. data/samples/rails/po/ja/blog.po +105 -109
  131. data/samples/rails/po/ko/blog.po +105 -109
  132. data/samples/rails/po/nl/blog.po +105 -110
  133. data/samples/rails/po/pt_BR/blog.po +105 -109
  134. data/samples/rails/po/ru/blog.po +105 -107
  135. data/samples/rails/po/zh/blog.po +105 -109
  136. data/samples/rails/po/zh_TW/blog.po +107 -0
  137. data/samples/rails/vendor/plugins/gettext/locale/zh_TW/LC_MESSAGES/gettext_plugin.mo +0 -0
  138. data/samples/rails/vendor/plugins/gettext/po/zh_TW/gettext_plugin.po +30 -0
  139. data/test/Rakefile +44 -0
  140. data/test/fixtures/developer.rb +5 -0
  141. data/test/fixtures/developers.yml +21 -0
  142. data/test/fixtures/reply.rb +40 -0
  143. data/test/fixtures/topic.rb +23 -0
  144. data/test/fixtures/topics.yml +22 -0
  145. data/test/gettext_test.rb +2 -2
  146. data/test/gettext_test_active_record.rb +1479 -0
  147. data/test/gettext_test_rails.rb +2 -0
  148. data/test/locale/ja/LC_MESSAGES/active_record.mo +0 -0
  149. data/test/po/active_record.pot +295 -0
  150. data/test/po/ja/active_record.po +294 -0
  151. data/test/test.sh +1 -0
  152. data/test/test_rubyparser.rb +10 -2
  153. metadata +66 -6
  154. data/samples/rails/db/mysql.sql +0 -8
  155. data/samples/rails/db/postgresql.sql +0 -7
@@ -25,19 +25,19 @@ module GetText
25
25
 
26
26
  # constant values
27
27
  VERSION = GetText::VERSION
28
- DATE = %w($Date: 2006/06/11 15:36:20 $)[1]
28
+ DATE = %w($Date: 2006/09/10 15:08:32 $)[1]
29
29
  MAX_LINE_LEN = 70
30
30
 
31
31
  @ex_parsers = []
32
32
  [
33
33
  ["glade.rb", "GladeParser"],
34
34
  ["erb.rb", "ErbParser"],
35
- ["activerecord.rb", "ActiveRecordParser"],
35
+ ["active_record.rb", "ActiveRecordParser"],
36
36
  # ["ripper.rb", "RipperParser"],
37
37
  ["ruby.rb", "RubyParser"] # Default parser.
38
38
  ].each do |f, klass|
39
39
  begin
40
- require File.join("gettext/parser/#{f}")
40
+ require "gettext/parser/#{f}"
41
41
  @ex_parsers << GetText.const_get(klass)
42
42
  rescue
43
43
  $stderr.puts _("'%{klass}' is ignored.") % {:klass => klass}
@@ -47,6 +47,26 @@ module GetText
47
47
 
48
48
  module_function
49
49
 
50
+ # Add an option parser
51
+ # the option parser module requires to have target?(file) and parser(file, ary) method.
52
+ #
53
+ # require 'gettext/rgettext'
54
+ # module FooParser
55
+ # module_function
56
+ # def target?(file)
57
+ # File.extname(file) == '.foo' # *.foo file only.
58
+ # end
59
+ # def parse(file, ary)
60
+ # :
61
+ # return ary # [["msgid1", "foo.rb:200"], ["msgid2", "bar.rb:300", "baz.rb:400"], ...]
62
+ # end
63
+ # end
64
+ #
65
+ # GetText::RGetText.add_parser(FooParser)
66
+ def add_parser(klass)
67
+ @ex_parsers.insert(0, klass)
68
+ end
69
+
50
70
  def generate_pot_header # :nodoc:
51
71
  time = Time.now.strftime("%Y-%m-%d %H:%M")
52
72
  off = Time.now.utc_offset
@@ -114,8 +134,8 @@ msgstr ""
114
134
  end
115
135
  end
116
136
  rescue
117
- puts $!
118
- exit 1
137
+ puts "Error occurs in " + file
138
+ raise
119
139
  end
120
140
  end
121
141
 
@@ -126,7 +146,7 @@ msgstr ""
126
146
  output = STDOUT
127
147
 
128
148
  opts = OptionParser.new
129
- opts.banner = _("Usage: %s input.rb [-o output.pot]") % $0
149
+ opts.banner = _("Usage: %s input.rb [-r parser.rb] [-o output.pot]") % $0
130
150
  opts.separator("")
131
151
  opts.separator(_("Extract translatable strings from given input files."))
132
152
  opts.separator("")
@@ -141,6 +161,14 @@ msgstr ""
141
161
  end
142
162
  end
143
163
 
164
+ opts.on("-r", "--require=PARSER", _("read an option parser")) do |out|
165
+ require out
166
+ end
167
+
168
+ opts.on("-d", "--debug", _("run in debugging mode")) do
169
+ $DEBUG = true
170
+ end
171
+
144
172
  opts.on_tail("--version", _("display version information and exit")) do
145
173
  puts "#{$0} #{VERSION} (#{DATE})"
146
174
  puts "#{File.join(Config::CONFIG["bindir"], Config::CONFIG["RUBY_INSTALL_NAME"])} #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
@@ -14,7 +14,7 @@
14
14
  # the meaning of the msgids using "named argument" instead of %s/%d style.
15
15
  class String
16
16
  alias :_old_format_m :% # :nodoc:
17
-
17
+
18
18
  # call-seq:
19
19
  # %(arg)
20
20
  # %(hash)
@@ -34,6 +34,7 @@ class String
34
34
  # * Returns: formatted String
35
35
  #
36
36
  # (e.g.) "%{firstname}, %{familyname}" % {:firstname => "Masao", :familyname => "Mutoh"}
37
+ REGEXP_NORMAL = /%\{/ #:nodoc:
37
38
  def %(args)
38
39
  if args.kind_of?(Hash)
39
40
  ret = dup
@@ -42,7 +43,7 @@ class String
42
43
  }
43
44
  ret
44
45
  else
45
- ret = gsub(/%\{/, '%%{')
46
+ ret = gsub(REGEXP_NORMAL, '%%{')
46
47
  begin
47
48
  ret._old_format_m(args)
48
49
  rescue ArgumentError
@@ -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.18 2006/06/11 15:36:20 mutoh Exp $
13
+ $Id: textdomain.rb,v 1.20 2006/09/11 16:30:31 mutoh Exp $
14
14
  =end
15
15
 
16
16
  require 'gettext/string'
@@ -61,12 +61,12 @@ module GetText
61
61
  # ('locale' => "ja_JP", 'name' => "textdomain")
62
62
  # * Returns: the new DEFAULT_LOCALE_PATHS
63
63
  def self.add_default_locale_path(path)
64
- DEFAULT_LOCALE_PATHS << path
64
+ DEFAULT_LOCALE_PATHS.unshift(path)
65
65
  end
66
66
 
67
67
  # Creates a new GetText::TextDomain.
68
68
  # * name: the textdomain name.
69
- # * topdir: the top directory of mo files or nil.
69
+ # * topdir: the locale path ("%{topdir}/%{locale}/LC_MESSAGES/%{name}.mo").
70
70
  # * locale: the Locale::Object or nil.
71
71
  # * Returns: a newly created GetText::TextDomain object.
72
72
  def initialize(name, topdir = nil, locale = nil)
@@ -8,5 +8,5 @@
8
8
  license terms as Ruby.
9
9
  =end
10
10
  module GetText
11
- VERSION = "1.7.0"
11
+ VERSION = "1.8.0"
12
12
  end
data/po/cs/rails.po CHANGED
@@ -8,117 +8,117 @@
8
8
  #
9
9
  msgid ""
10
10
  msgstr ""
11
- "Project-Id-Version: ruby-gettext 1.7.0\n"
12
- "POT-Creation-Date: 2006-07-08 18:46+0900\n"
11
+ "Project-Id-Version: ruby-gettext 1.8.0\n"
12
+ "POT-Creation-Date: 2006-08-23 00:28+0900\n"
13
13
  "PO-Revision-Date: 2006-07-10 10:08+0100\n"
14
14
  "Last-Translator: Karel Miarka <kajism at yahoo.com>\n"
15
15
  "Language-Team: Czech\n"
16
16
  "MIME-Version: 1.0\n"
17
17
  "Content-Type: text/plain; charset=UTF-8\n"
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
- "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
19
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
20
+ "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
20
21
  "X-Poedit-Language: Czech\n"
21
22
 
22
- #: lib/gettext/rails.rb:281
23
- msgid "%{fn} is not included in the list"
24
- msgstr "%{fn} není obsaženo v seznamu možností"
25
-
26
- #: lib/gettext/rails.rb:282
27
- msgid "%{fn} is reserved"
28
- msgstr "%{fn} je rezervováno a nemůže být zvoleno"
29
-
30
- #: lib/gettext/rails.rb:283
31
- msgid "%{fn} is invalid"
32
- msgstr "%{fn} je chybné"
33
-
34
- #: lib/gettext/rails.rb:284
35
- msgid "%{fn} doesn't match confirmation"
36
- msgstr "%{fn} není shodné s potvrzením"
37
-
38
- #: lib/gettext/rails.rb:285
39
- msgid "%{fn} must be accepted"
40
- msgstr "%{fn} musí být zaškrtnuto"
41
-
42
- #: lib/gettext/rails.rb:286
43
- msgid "%{fn} can't be empty"
44
- msgstr "%{fn} musí být vyplněno"
45
-
46
- #: lib/gettext/rails.rb:287
47
- msgid "%{fn} can't be blank"
48
- msgstr "%{fn} musí být vyplněno"
49
-
50
- #: lib/gettext/rails.rb:288
51
- msgid "%{fn} is too long (max is %d characters)"
52
- msgstr "%{fn} je příliš dlouhé (maximum je %d znaků)"
53
-
54
- #: lib/gettext/rails.rb:289
55
- msgid "%{fn} is too short (min is %d characters)"
56
- msgstr "%{fn} je příliš krátké (minimum je %d znaků)"
57
-
58
- #: lib/gettext/rails.rb:290
59
- msgid "%{fn} is the wrong length (should be %d characters)"
60
- msgstr "%{fn} má nesprávnou délku (musí mít %d znaků)"
61
-
62
- #: lib/gettext/rails.rb:291
63
- msgid "%{fn} has already been taken"
64
- msgstr "%{fn} je již použito"
65
-
66
- #: lib/gettext/rails.rb:292
67
- msgid "%{fn} is not a number"
68
- msgstr "%{fn} není správné číslo"
69
-
70
- #: lib/gettext/rails.rb:359
23
+ #: lib/gettext/rails.rb:271
71
24
  msgid "%{num} error prohibited this %{record} from being saved"
72
25
  msgid_plural "%{num} errors prohibited this %{record} from being saved"
73
26
  msgstr[0] "%{num} chyba znemožnila uložení záznamu %{record} "
74
27
  msgstr[1] "%{num} chyby znemožnily uložení záznamu %{record} "
75
28
  msgstr[2] "%{num} chyb znemožnilo uložení záznamu %{record} "
76
29
 
77
- #: lib/gettext/rails.rb:361
30
+ #: lib/gettext/rails.rb:273
78
31
  msgid "There was a problem with the following field:"
79
32
  msgid_plural "There were problems with the following fields:"
80
33
  msgstr[0] "Problémy jsou s následujícím polem:"
81
34
  msgstr[1] "Problémy jsou s následujícími poli:"
82
35
  msgstr[2] "Problémy jsou s následujícími poli:"
83
36
 
84
- #: lib/gettext/rails.rb:403
37
+ #: lib/gettext/rails.rb:360
85
38
  msgid "less than 5 seconds"
86
39
  msgstr "méně než 5 sekund"
87
40
 
88
- #: lib/gettext/rails.rb:403
41
+ #: lib/gettext/rails.rb:360
89
42
  msgid "less than 10 seconds"
90
43
  msgstr "méně než 10 sekund"
91
44
 
92
- #: lib/gettext/rails.rb:403
45
+ #: lib/gettext/rails.rb:360
93
46
  msgid "less than 20 seconds"
94
47
  msgstr "méně než 20 sekund"
95
48
 
96
- #: lib/gettext/rails.rb:404
49
+ #: lib/gettext/rails.rb:361
97
50
  msgid "half a minute"
98
51
  msgstr "půl minuty"
99
52
 
100
- #: lib/gettext/rails.rb:404
53
+ #: lib/gettext/rails.rb:361
101
54
  msgid "less than a minute"
102
55
  msgstr "méně než minutu"
103
56
 
104
- #: lib/gettext/rails.rb:405
57
+ #: lib/gettext/rails.rb:362
105
58
  msgid "1 minute"
106
59
  msgid_plural "%{num} minutes"
107
60
  msgstr[0] "1 minuta"
108
61
  msgstr[1] "%{num} minuty"
109
62
  msgstr[2] "%{num} minut"
110
63
 
111
- #: lib/gettext/rails.rb:406
64
+ #: lib/gettext/rails.rb:363
112
65
  msgid "about 1 hour"
113
66
  msgid_plural "about %{num} hours"
114
67
  msgstr[0] "asi 1 hodina"
115
68
  msgstr[1] "asi %{num} hodiny"
116
69
  msgstr[2] "asi %{num} hodin"
117
70
 
118
- #: lib/gettext/rails.rb:407
71
+ #: lib/gettext/rails.rb:364
119
72
  msgid "1 day"
120
73
  msgid_plural "%{num} days"
121
74
  msgstr[0] "1 den"
122
75
  msgstr[1] "%{num} dny"
123
76
  msgstr[2] "%{num} dnů"
124
77
 
78
+ #: lib/gettext/active_record.rb:166
79
+ msgid "%{fn} is not included in the list"
80
+ msgstr "%{fn} není obsaženo v seznamu možností"
81
+
82
+ #: lib/gettext/active_record.rb:167
83
+ msgid "%{fn} is reserved"
84
+ msgstr "%{fn} je rezervováno a nemůže být zvoleno"
85
+
86
+ #: lib/gettext/active_record.rb:168
87
+ msgid "%{fn} is invalid"
88
+ msgstr "%{fn} je chybné"
89
+
90
+ #: lib/gettext/active_record.rb:169
91
+ msgid "%{fn} doesn't match confirmation"
92
+ msgstr "%{fn} není shodné s potvrzením"
93
+
94
+ #: lib/gettext/active_record.rb:170
95
+ msgid "%{fn} must be accepted"
96
+ msgstr "%{fn} musí být zaškrtnuto"
97
+
98
+ #: lib/gettext/active_record.rb:171
99
+ msgid "%{fn} can't be empty"
100
+ msgstr "%{fn} musí být vyplněno"
101
+
102
+ #: lib/gettext/active_record.rb:172
103
+ msgid "%{fn} can't be blank"
104
+ msgstr "%{fn} musí být vyplněno"
105
+
106
+ #: lib/gettext/active_record.rb:173
107
+ msgid "%{fn} is too long (maximum is %d characters)"
108
+ msgstr "%{fn} je příliš dlouhé (maximum je %d znaků)"
109
+
110
+ #: lib/gettext/active_record.rb:174
111
+ msgid "%{fn} is too short (minimum is %d characters)"
112
+ msgstr "%{fn} je příliš krátké (minimum je %d znaků)"
113
+
114
+ #: lib/gettext/active_record.rb:175
115
+ msgid "%{fn} is the wrong length (should be %d characters)"
116
+ msgstr "%{fn} má nesprávnou délku (musí mít %d znaků)"
117
+
118
+ #: lib/gettext/active_record.rb:176
119
+ msgid "%{fn} has already been taken"
120
+ msgstr "%{fn} je již použito"
121
+
122
+ #: lib/gettext/active_record.rb:177
123
+ msgid "%{fn} is not a number"
124
+ msgstr "%{fn} není správné číslo"
data/po/cs/rgettext.po CHANGED
@@ -8,15 +8,16 @@
8
8
  #
9
9
  msgid ""
10
10
  msgstr ""
11
- "Project-Id-Version: ruby-gettext 1.7.0\n"
12
- "POT-Creation-Date: 2006-07-08 18:46+0900\n"
11
+ "Project-Id-Version: ruby-gettext 1.8.0\n"
12
+ "POT-Creation-Date: 2006-08-23 00:28+0900\n"
13
13
  "PO-Revision-Date: 2006-07-10 10:20+0100\n"
14
14
  "Last-Translator: Karel Miarka <kajism@yahoo.com>\n"
15
15
  "Language-Team: Czech\n"
16
16
  "MIME-Version: 1.0\n"
17
17
  "Content-Type: text/plain; charset=UTF-8\n"
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
- "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
19
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
20
+ "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
20
21
  "X-Poedit-Language: Czech\n"
21
22
  "X-Poedit-Bookmarks: -1,-1,-1,-1,-1,-1,-1,-1,15,-1\n"
22
23
 
@@ -25,23 +26,27 @@ msgid "Usage: %s def.po ref.pot [-o output.pot]"
25
26
  msgstr "Použití: %s def.po ref.pot [-o output.pot]"
26
27
 
27
28
  #: lib/gettext/rmsgmerge.rb:406
28
- msgid "Merges two Uniforum style .po files together. The def.po file is an existing PO file with translations. The ref.pot file is the last created PO file with up-to-date source references. ref.pot is generally created by rgettext."
29
- msgstr "Sloučí dohromady dva (Uniforum style) .po soubory. Soubor def.po je existující PO soubor s překlady. Soubor ref.pot je naposledy vytvořený PO soubor s aktuálními zdrojovými referencemi. ref.pot je většinou vytvořen rgettextem."
29
+ msgid ""
30
+ "Merges two Uniforum style .po files together. The def.po file is an existing "
31
+ "PO file with translations. The ref.pot file is the last created PO file with "
32
+ "up-to-date source references. ref.pot is generally created by rgettext."
33
+ msgstr ""
34
+ "Sloučí dohromady dva (Uniforum style) .po soubory. Soubor def.po je "
35
+ "existující PO soubor s překlady. Soubor ref.pot je naposledy vytvořený PO "
36
+ "soubor s aktuálními zdrojovými referencemi. ref.pot je většinou vytvořen "
37
+ "rgettextem."
30
38
 
31
- #: lib/gettext/rmsgmerge.rb:408
32
- #: lib/gettext/rgettext.rb:133
39
+ #: lib/gettext/rmsgmerge.rb:408 lib/gettext/rgettext.rb:153
33
40
  #: lib/gettext/rmsgfmt.rb:51
34
41
  msgid "Specific options:"
35
42
  msgstr "Volby:"
36
43
 
37
- #: lib/gettext/rmsgmerge.rb:410
38
- #: lib/gettext/rgettext.rb:135
44
+ #: lib/gettext/rmsgmerge.rb:410 lib/gettext/rgettext.rb:155
39
45
  #: lib/gettext/rmsgfmt.rb:53
40
46
  msgid "write output to specified file"
41
47
  msgstr "zapsat výstup od určeného souboru"
42
48
 
43
- #: lib/gettext/rmsgmerge.rb:421
44
- #: lib/gettext/rgettext.rb:144
49
+ #: lib/gettext/rmsgmerge.rb:421 lib/gettext/rgettext.rb:172
45
50
  #: lib/gettext/rmsgfmt.rb:57
46
51
  msgid "display version information and exit"
47
52
  msgstr "zobrazit informaci o verzi a skončit"
@@ -58,20 +63,27 @@ msgstr "referenční pot soubor není zadán."
58
63
  msgid "'%{klass}' is ignored."
59
64
  msgstr "'%{klass}' je ignorován."
60
65
 
61
- #: lib/gettext/rgettext.rb:129
62
- msgid "Usage: %s input.rb [-o output.pot]"
63
- msgstr "Použití: %s input.rb [-o output.pot]"
66
+ #: lib/gettext/rgettext.rb:149
67
+ msgid "Usage: %s input.rb [-r parser.rb] [-o output.pot]"
68
+ msgstr "Použití: %s input.rb [-r parser.rb] [-o output.pot]"
64
69
 
65
- #: lib/gettext/rgettext.rb:131
70
+ #: lib/gettext/rgettext.rb:151
66
71
  msgid "Extract translatable strings from given input files."
67
72
  msgstr "Extrahuj přeložitelné texty ze zadaných vstupních souborů."
68
73
 
69
- #: lib/gettext/rgettext.rb:139
74
+ #: lib/gettext/rgettext.rb:159
70
75
  msgid "File '%s' has already existed."
71
76
  msgstr "Soubor '%s' již existoval."
72
77
 
78
+ #: lib/gettext/rgettext.rb:164
79
+ msgid "read an option parser"
80
+ msgstr ""
81
+
73
82
  #: lib/gettext/rgettext.rb:168
74
- #: lib/gettext/rmsgfmt.rb:31
83
+ msgid "run in debugging mode"
84
+ msgstr ""
85
+
86
+ #: lib/gettext/rgettext.rb:196 lib/gettext/rmsgfmt.rb:31
75
87
  msgid "no input files"
76
88
  msgstr "vstupní soubory nenalezeny"
77
89
 
@@ -83,60 +95,30 @@ msgstr "Použití: %s input.po [-o output.mo]"
83
95
  msgid "Generate binary message catalog from textual translation description."
84
96
  msgstr "Generovat binání katalog zpráv z textového popisu překladu."
85
97
 
86
- #: lib/gettext/rails_ext.rb:21
87
- msgid "Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id"
88
- msgstr "Zavolána metoda id na objektu nil -- pokud jste opravdu chtěli získat id nilu, použijte metodu object_id"
89
-
90
- #: lib/gettext/rails_ext.rb:27
91
- msgid "You have a nil object when you didn't expect it!"
92
- msgstr "Máte nil objekt tam, kde nebyl očekáván!"
93
-
94
- #: lib/gettext/rails_ext.rb:28
95
- msgid ""
96
- "\n"
97
- "You might have expected an instance of %{klass}."
98
- msgstr ""
99
- "\n"
100
- "Možná jste očekávali instanci třídy %{klass}."
101
-
102
- #: lib/gettext/rails_ext.rb:29
103
- msgid ""
104
- "\n"
105
- "The error occured while evaluating nil.%{selector}"
106
- msgstr ""
107
- "\n"
108
- "Chyba nastala při vykonávání nil.%{selector}"
109
-
110
- #: lib/gettext/rails_ext.rb:43
111
- msgid "uninitialized constant %{const}"
112
- msgstr "nenainicializovaná konstanta %{const}"
98
+ #: lib/gettext/parser/glade.rb:74
99
+ msgid "`%{file}' is not glade-2.0 format."
100
+ msgstr "`%{file}' není ve formátu glade-2.0."
113
101
 
114
- #: lib/gettext/parser/activerecord.rb:38
102
+ #: lib/gettext/parser/active_record.rb:39
115
103
  msgid "'%{file}' is not found."
116
104
  msgstr "'%{file}' nebyl nalezen."
117
105
 
118
- #: lib/gettext/parser/activerecord.rb:66
106
+ #: lib/gettext/parser/active_record.rb:79
119
107
  msgid "Ignored '%{file}'. Solve dependencies first."
120
108
  msgstr "'%{file}' ignorován. Nejprve vyřešte závislosti."
121
109
 
122
- #: lib/gettext/parser/activerecord.rb:85
110
+ #: lib/gettext/parser/active_record.rb:104
123
111
  msgid "No database is available."
124
112
  msgstr "Žádná databáze není k dispozici."
125
113
 
126
- #: lib/gettext/parser/activerecord.rb:116
114
+ #: lib/gettext/parser/active_record.rb:138
127
115
  msgid "rubygems are not found."
128
116
  msgstr "rubygems nenalezeny"
129
117
 
130
- #: lib/gettext/parser/glade.rb:74
131
- msgid "`%{file}' is not glade-2.0 format."
132
- msgstr "`%{file}' není ve formátu glade-2.0."
133
-
134
- #: src/poparser.ry:26
135
- #: src/poparser.ry:41
118
+ #: src/poparser.ry:26 src/poparser.ry:41
136
119
  msgid "Warning: fuzzy message was ignored.\n"
137
120
  msgstr "Varování: neurčitý (fuzzy) překlad byl ignorován.\n"
138
121
 
139
122
  #: src/poparser.ry:125
140
123
  msgid "Warning: obsolete msgid exists.\n"
141
124
  msgstr "Varování: existoval zastaralý (obsolete) msgid.\n"
142
-