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
@@ -1,24 +1,27 @@
1
1
  # GetText Sample Blog on RoR.
2
+ #
2
3
  # Copyright (C) 2005,2006 Masao Mutoh
4
+ #
3
5
  # This file is distributed under the same license as the Ruby-GetText-Package.
4
6
  #
5
- # Runar Ingebrigtsen <runar at mopo.no>, 2007.
7
+ # Runar Ingebrigtsen <EMAIL at ADDRESS>, 2008.
6
8
  #
7
9
  msgid ""
8
10
  msgstr ""
9
11
  "Project-Id-Version: blog 1.2.0\n"
12
+ "Report-Msgid-Bugs-To: \n"
10
13
  "POT-Creation-Date: 2007-08-01 23:20+0900\n"
11
- "PO-Revision-Date: 2007-04-03 13:24+0200\n"
12
- "Last-Translator: Runar Ingebrigtsen\n"
13
- "Language-Team: Norwegian\n"
14
+ "PO-Revision-Date: 2008-07-14 16:21+0200\n"
15
+ "Last-Translator: Runar Ingebrigtsen <EMAIL at ADDRESS>\n"
16
+ "Language-Team: Norwegian/Bokmaal <LL at li.org>\n"
14
17
  "MIME-Version: 1.0\n"
15
18
  "Content-Type: text/plain; charset=UTF-8\n"
16
19
  "Content-Transfer-Encoding: 8bit\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;"
18
21
 
19
22
  #: app/helpers/blog_helper.rb:43
20
23
  msgid "Ruby Links"
21
- msgstr "Rubylenker"
24
+ msgstr "Ruby-lenker"
22
25
 
23
26
  #: app/helpers/blog_helper.rb:51
24
27
  msgid "Old articles"
@@ -30,28 +33,28 @@ msgstr "artikkel"
30
33
 
31
34
  #: app/models/article.rb:-
32
35
  msgid "Article|Title"
33
- msgstr "Tittel"
36
+ msgstr "Artikkel|Tittel"
34
37
 
35
38
  #: app/models/article.rb:-
36
39
  msgid "Article|Description"
37
- msgstr "Beskrivelse"
40
+ msgstr "Artikkel|Beskrivelse"
38
41
 
39
42
  #: app/models/article.rb:-
40
43
  msgid "Article|Lastupdate"
41
- msgstr "Siste oppdatering"
44
+ msgstr "Artikkel|Siste oppdatering"
42
45
 
43
46
  #: app/controllers/blog_controller.rb:33
44
47
  msgid "Article was successfully created."
45
- msgstr "Artikkelen ble opprettet"
48
+ msgstr "Artikkelen ble opprettet uten problemer."
46
49
 
47
50
  #: app/controllers/blog_controller.rb:47
48
51
  msgid "Article was successfully updated."
49
- msgstr "Artikkelen ble oppdatert"
52
+ msgstr "Artikkelen ble oppdatert uten problemer."
50
53
 
51
54
  #: app/views/blog/show.rhtml:13 app/views/blog/list.rhtml:13
52
55
  #: app/views/layouts/blog.rhtml:14
53
56
  msgid "GetText Sample Blog on RoR"
54
- msgstr "GetText eksempelblogg i Rails"
57
+ msgstr "GetText eksempelblogg i RoR"
55
58
 
56
59
  #: app/views/blog/show.rhtml:16 app/views/blog/edit.rhtml:16
57
60
  msgid "Edit"
@@ -72,7 +75,7 @@ msgstr "Opprett"
72
75
 
73
76
  #: app/views/blog/list.rhtml:18
74
77
  msgid "No articles were found."
75
- msgstr "Ingen artikler funnet."
78
+ msgstr "Ingen artikler ble funnet"
76
79
 
77
80
  #: app/views/blog/edit.rhtml:12
78
81
  msgid "Editing article"
@@ -84,7 +87,7 @@ msgstr "Vis"
84
87
 
85
88
  #: app/views/blog/edit.rhtml:20
86
89
  msgid "Destroy"
87
- msgstr "Slett"
90
+ msgstr "Fjern"
88
91
 
89
92
  #: app/views/blog/edit.rhtml:20
90
93
  msgid "Are you sure?"
@@ -96,8 +99,9 @@ msgstr "Siste oppdatering"
96
99
 
97
100
  #: app/views/blog/_form.rhtml:18
98
101
  msgid "Title: Required."
99
- msgstr "Tittel: Påkrevd."
102
+ msgstr "Tittel: Påkrevet"
100
103
 
101
104
  #: app/views/blog/_form.rhtml:21
102
105
  msgid "Description: More than 10 characters."
103
106
  msgstr "Beskrivelse: Mer enn 10 tegn."
107
+
@@ -1,6 +1,6 @@
1
1
  # GetText Sample Blog on RoR.
2
2
  #
3
- # Copyright (C) 2005-2008 Masao Mutoh
3
+ # Copyright (C) 2005,2006 Masao Mutoh
4
4
  #
5
5
  # This file is distributed under the same license as the Ruby-GetText-Package.
6
6
  #
@@ -10,7 +10,7 @@ msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: blog 1.2.0\n"
12
12
  "POT-Creation-Date: 2006-10-15 00:12+0900\n"
13
- "PO-Revision-Date: 2008-05-10 20:49+0200\n"
13
+ "PO-Revision-Date: 2008-06-05 23:00+0200\n"
14
14
  "Last-Translator: Slobodan Paunović <slobodan.paunovic at gmail.com>\n"
15
15
  "Language-Team: Serbian\n"
16
16
  "MIME-Version: 1.0\n"
@@ -21,86 +21,86 @@ msgstr ""
21
21
 
22
22
  #: app/helpers/blog_helper.rb:43
23
23
  msgid "Ruby Links"
24
- msgstr "Ruby linkovi"
24
+ msgstr "Руби линкови"
25
25
 
26
26
  #: app/helpers/blog_helper.rb:51
27
27
  msgid "Old articles"
28
- msgstr "Stari članci"
28
+ msgstr "Стари чланци"
29
29
 
30
30
  #: app/models/article.rb:-
31
31
  msgid "article"
32
- msgstr "članak"
32
+ msgstr "чланак"
33
33
 
34
34
  #: app/models/article.rb:-
35
35
  msgid "Article|Title"
36
- msgstr "Naslov"
36
+ msgstr "Наслов"
37
37
 
38
38
  #: app/models/article.rb:-
39
39
  msgid "Article|Description"
40
- msgstr "Opis"
40
+ msgstr "Опис"
41
41
 
42
42
  #: app/models/article.rb:-
43
43
  msgid "Article|Lastupdate"
44
- msgstr "Poslednje ažuriranje"
44
+ msgstr "Последње ажурирање"
45
45
 
46
46
  #: app/controllers/blog_controller.rb:33
47
47
  msgid "Article was successfully created."
48
- msgstr "Članak je uspešno kreiran."
48
+ msgstr "Чланак је успешно креиран."
49
49
 
50
50
  #: app/controllers/blog_controller.rb:47
51
51
  msgid "Article was successfully updated."
52
- msgstr "Članak je uspešno ažuriran."
52
+ msgstr "Чланак је успешно ажуриран."
53
53
 
54
54
  #: app/views/blog/new.rhtml:13 app/views/blog/list.rhtml:15
55
55
  msgid "New article"
56
- msgstr "Nov članak"
56
+ msgstr "Нов чланак"
57
57
 
58
58
  #: app/views/blog/new.rhtml:17
59
59
  msgid "Create"
60
- msgstr "Kreiraj"
60
+ msgstr "Креирај"
61
61
 
62
62
  #: app/views/blog/new.rhtml:20 app/views/blog/edit.rhtml:21
63
63
  #: app/views/blog/show.rhtml:17
64
64
  msgid "Back"
65
- msgstr "Nazad"
65
+ msgstr "Назад"
66
66
 
67
67
  #: app/views/blog/_form.rhtml:16
68
68
  msgid "Lastupdate"
69
- msgstr "Poslednje ažuriranje"
69
+ msgstr "Последње ажурирање"
70
70
 
71
71
  #: app/views/blog/_form.rhtml:18
72
72
  msgid "Title: Required."
73
- msgstr "Naslov: Obavezan."
73
+ msgstr "Наслов: Обавезан."
74
74
 
75
75
  #: app/views/blog/_form.rhtml:21
76
76
  msgid "Description: More than 10 characters."
77
- msgstr "Opis: Više od 10 karaktera."
77
+ msgstr "Опис: Више од 10 карактера."
78
78
 
79
79
  #: app/views/blog/list.rhtml:13 app/views/blog/show.rhtml:13
80
80
  #: app/views/layouts/blog.rhtml:14
81
81
  msgid "GetText Sample Blog on RoR"
82
- msgstr "GetText blog na RoR"
82
+ msgstr "GetText блог на RoR"
83
83
 
84
84
  #: app/views/blog/list.rhtml:18
85
85
  msgid "No articles were found."
86
- msgstr "Nije pronađen ni jedan članak."
86
+ msgstr "Није пронађен ни један чланак."
87
87
 
88
88
  #: app/views/blog/edit.rhtml:12
89
89
  msgid "Editing article"
90
- msgstr "Izmena članka"
90
+ msgstr "Измена чланка"
91
91
 
92
92
  #: app/views/blog/edit.rhtml:16 app/views/blog/show.rhtml:16
93
93
  msgid "Edit"
94
- msgstr "Izmeni"
94
+ msgstr "Измени"
95
95
 
96
96
  #: app/views/blog/edit.rhtml:19
97
97
  msgid "Show"
98
- msgstr "Prikaži"
98
+ msgstr "Прикажи"
99
99
 
100
100
  #: app/views/blog/edit.rhtml:20
101
101
  msgid "Destroy"
102
- msgstr "Obriši"
102
+ msgstr "Обриши"
103
103
 
104
104
  #: app/views/blog/edit.rhtml:20
105
105
  msgid "Are you sure?"
106
- msgstr "Jeste li sigurni?"
106
+ msgstr "Јесте ли сигурни?"
@@ -35,15 +35,15 @@ msgstr "стаття"
35
35
 
36
36
  #: app/models/article.rb:-
37
37
  msgid "Article|Title"
38
- msgstr "Стаття|Назва"
38
+ msgstr "Назва"
39
39
 
40
40
  #: app/models/article.rb:-
41
41
  msgid "Article|Description"
42
- msgstr "Стаття|Опис"
42
+ msgstr "Опис"
43
43
 
44
44
  #: app/models/article.rb:-
45
45
  msgid "Article|Lastupdate"
46
- msgstr "Стаття|Оновлена"
46
+ msgstr "Оновлена"
47
47
 
48
48
  #: app/controllers/blog_controller.rb:33
49
49
  msgid "Article was successfully created."
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
1
+ // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
2
2
  // (c) 2005-2007 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
3
3
  // (c) 2005-2007 Jon Tirsen (http://www.tirsen.com)
4
4
  // Contributors:
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
1
+ // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
2
2
  // (c) 2005-2007 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
3
3
  //
4
4
  // script.aculo.us is freely distributable under the terms of an MIT-style license.
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
1
+ // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
2
2
  // Contributors:
3
3
  // Justin Palmer (http://encytemedia.com/)
4
4
  // Mark Pilgrim (http://diveintomark.org/)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,28 @@
1
+ # GetText Sample Blog on RoR.
2
+ #
3
+ # Copyright (C) 2005 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Aivars Akots, 2008.
8
+ #
9
+ msgid ""
10
+ msgstr ""
11
+ "Project-Id-Version: gettext_plugin 1.2.0\n"
12
+ "POT-Creation-Date: 2006-05-31 02:06+0900\n"
13
+ "PO-Revision-Date: 2008-07-22 09:03+0200\n"
14
+ "Last-Translator: Aivars Akots <aivars.akots@gmail.com>\n"
15
+ "Language-Team: Latvian\n"
16
+ "MIME-Version: 1.0\n"
17
+ "Content-Type: text/plain; charset=UTF-8\n"
18
+ "Content-Transfer-Encoding: 8bit\n"
19
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n"
20
+
21
+ #: lib/gettext_plugin.rb:18
22
+ msgid "Select locale"
23
+ msgstr "Izvēlies valodu"
24
+
25
+ #: lib/gettext_plugin.rb:30
26
+ msgid "Cookie &quot;lang&quot; is set: %s"
27
+ msgstr "Sīkdatne &quot;lang&quot; ir uzstādīta kā: %s"
28
+
@@ -1,27 +1,30 @@
1
1
  # GetText Sample Blog on RoR.
2
+ #
2
3
  # Copyright (C) 2005 Masao Mutoh
4
+ #
3
5
  # This file is distributed under the same license as the Ruby-GetText-Package.
4
6
  #
5
- # Runar Ingebrigtsen <runar at mopo.no>, 2007.
7
+ # Runar Ingebrigtsen <runar@mopo.no>, 2008.
8
+ #
6
9
  #
7
10
  msgid ""
8
11
  msgstr ""
9
12
  "Project-Id-Version: gettext_plugin 1.2.0\n"
13
+ "Report-Msgid-Bugs-To: \n"
10
14
  "POT-Creation-Date: 2006-05-31 02:06+0900\n"
11
- "PO-Revision-Date: 2007-04-03 13:25+0200\n"
12
- "Last-Translator: Runar Ingebrigtsen\n"
13
- "Language-Team: Norwegian\n"
15
+ "PO-Revision-Date: 2008-07-14 16:16+0200\n"
16
+ "Last-Translator: Runar Ingebrigtsen <runar@mopo.no>\n"
17
+ "Language-Team: Norwegian/Bokmaal <i18n-nb@lister.ping.uio.no>\n"
14
18
  "MIME-Version: 1.0\n"
15
19
  "Content-Type: text/plain; charset=UTF-8\n"
16
20
  "Content-Transfer-Encoding: 8bit\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
-
21
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;"
19
22
 
20
23
  #: lib/gettext_plugin.rb:18
21
24
  msgid "Select locale"
22
- msgstr "Velg språk"
25
+ msgstr "Velg lokale"
23
26
 
24
27
  #: lib/gettext_plugin.rb:30
25
28
  msgid "Cookie &quot;lang&quot; is set: %s"
26
- msgstr "Informasjonskapsel &quot;lang&quot; er satt: %s"
29
+ msgstr "Informasjonskapsel &quot;Norsk/bokmål&quoter satt:·%s"
27
30
 
@@ -1,6 +1,6 @@
1
1
  # GetText Sample Blog on RoR.
2
2
  #
3
- # Copyright (C) 2005-2008 Masao Mutoh
3
+ # Copyright (C) 2005 Masao Mutoh
4
4
  #
5
5
  # This file is distributed under the same license as the Ruby-GetText-Package.
6
6
  #
@@ -10,7 +10,7 @@ msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: gettext_plugin 1.2.0\n"
12
12
  "POT-Creation-Date: 2006-05-31 02:06+0900\n"
13
- "PO-Revision-Date: 2008-05-10 20:49+0200\n"
13
+ "PO-Revision-Date: 2008-06-05 23:02+0200\n"
14
14
  "Last-Translator: Slobodan Paunović <slobodan.paunovic at gmail.com>\n"
15
15
  "Language-Team: Serbian\n"
16
16
  "MIME-Version: 1.0\n"
@@ -21,8 +21,8 @@ msgstr ""
21
21
 
22
22
  #: lib/gettext_plugin.rb:18
23
23
  msgid "Select locale"
24
- msgstr "Izaberita locale"
24
+ msgstr "Изаберите језик"
25
25
 
26
26
  #: lib/gettext_plugin.rb:30
27
- msgid "Cookie &quot;lang&quot; is set: %s"
28
- msgstr "Cookie &quot;lang&quot; je podešen: %s"
27
+ msgid "Куки &quot;lang&quot; is set: %s"
28
+ msgstr "Куки &quot;lang&quot; је подешен: %s"
data/src/poparser.ry CHANGED
@@ -1,24 +1,36 @@
1
1
  #
2
2
  # poparser.ry - ruby version of msgfmt
3
3
  #
4
- # Copyright (C) 2002-2005 Masao Mutoh <mutoh@highway.ne.jp>
4
+ # Copyright (C) 2002-2008 Masao Mutoh <mutoh@highway.ne.jp>
5
5
  #
6
6
  # You may redistribute it and/or modify it under the same
7
7
  # license terms as Ruby.
8
8
 
9
9
  class GetText::PoParser
10
-
11
- token COMMENT MSGID MSGID_PLURAL MSGSTR STRING PLURAL_NUM
10
+ token COMMENT MSGID MSGCTXT MSGID_PLURAL MSGSTR STRING PLURAL_NUM
12
11
 
13
12
  rule
14
13
 
15
14
  msgfmt
16
15
  : /* empty */
17
16
  | msgfmt comment
17
+ | msgfmt msgctxt
18
18
  | msgfmt message
19
19
  ;
20
20
 
21
+ msgctxt
22
+ : MSGCTXT string_list
23
+ {
24
+ @msgctxt = unescape(val[1]) + "\004"
25
+ }
26
+ ;
27
+
21
28
  message
29
+ : single_message
30
+ | plural_message
31
+ ;
32
+
33
+ single_message
22
34
  : MSGID string_list MSGSTR string_list
23
35
  {
24
36
  if @fuzzy and $ignore_fuzzy
@@ -30,11 +42,13 @@ class GetText::PoParser
30
42
  end
31
43
  @fuzzy = false
32
44
  else
33
- on_message(unescape(val[1]), unescape(val[3]))
45
+ on_message(@msgctxt + unescape(val[1]), unescape(val[3]))
34
46
  end
35
47
  result = ""
36
48
  }
37
- | MSGID string_list MSGID_PLURAL string_list msgstr_plural
49
+
50
+ plural_message
51
+ : MSGID string_list MSGID_PLURAL string_list msgstr_plural
38
52
  {
39
53
  if @fuzzy and $ignore_fuzzy
40
54
  if val[1] != ""
@@ -45,7 +59,7 @@ class GetText::PoParser
45
59
  end
46
60
  @fuzzy = false
47
61
  else
48
- on_message(unescape(val[1]) + "\000" + unescape(val[3]), unescape(val[4]))
62
+ on_message(@msgctxt + unescape(val[1]) + "\000" + unescape(val[3]), unescape(val[4]))
49
63
  end
50
64
  result = ""
51
65
  }
@@ -106,13 +120,18 @@ end
106
120
  @comments = []
107
121
  @data = data
108
122
  @fuzzy = false
123
+ @msgctxt = ""
109
124
  $ignore_fuzzy = ignore_fuzzy
125
+
110
126
  str.strip!
111
127
  @q = []
112
128
  until str.empty? do
113
129
  case str
114
130
  when /\A\s+/
115
131
  str = $'
132
+ when /\Amsgctxt/
133
+ @q.push [:MSGCTXT, $&]
134
+ str = $'
116
135
  when /\Amsgid_plural/
117
136
  @q.push [:MSGID_PLURAL, $&]
118
137
  str = $'
@@ -167,6 +186,7 @@ end
167
186
  @data.set_comment(msgid, @comments.join("\n"))
168
187
  end
169
188
  @comments.clear
189
+ @msgctxt = ""
170
190
  end
171
191
 
172
192
  def on_comment(comment)
@@ -174,4 +194,5 @@ end
174
194
  @comments << comment
175
195
  end
176
196
 
197
+
177
198
  ---- footer