gettext 1.8.0 → 1.9.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 (180) hide show
  1. data/ChangeLog +120 -0
  2. data/NEWS +16 -0
  3. data/README +27 -19
  4. data/data/locale/ca/LC_MESSAGES/rails.mo +0 -0
  5. data/data/locale/ca/LC_MESSAGES/rgettext.mo +0 -0
  6. data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
  7. data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
  8. data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
  9. data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
  10. data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
  11. data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
  12. data/data/locale/eo/LC_MESSAGES/rails.mo +0 -0
  13. data/data/locale/eo/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 +13 -10
  37. data/lib/gettext/active_record.rb +130 -113
  38. data/lib/gettext/erb.rb +2 -2
  39. data/lib/gettext/locale.rb +11 -5
  40. data/lib/gettext/locale_cgi.rb +3 -3
  41. data/lib/gettext/locale_posix.rb +2 -2
  42. data/lib/gettext/locale_win32.rb +2 -1
  43. data/lib/gettext/parser/active_record.rb +24 -14
  44. data/lib/gettext/parser/ruby.rb +4 -63
  45. data/lib/gettext/poparser.rb +3 -3
  46. data/lib/gettext/rails.rb +23 -20
  47. data/lib/gettext/rgettext.rb +6 -6
  48. data/lib/gettext/utils.rb +12 -6
  49. data/lib/gettext/version.rb +2 -2
  50. data/po/ca/rails.po +121 -0
  51. data/po/ca/rgettext.po +130 -0
  52. data/po/cs/rails.po +30 -26
  53. data/po/cs/rgettext.po +44 -36
  54. data/po/de/rails.po +28 -24
  55. data/po/de/rgettext.po +43 -35
  56. data/po/el/rails.po +38 -34
  57. data/po/el/rgettext.po +54 -46
  58. data/po/eo/rails.po +121 -0
  59. data/po/eo/rgettext.po +127 -0
  60. data/po/es/rails.po +28 -24
  61. data/po/es/rgettext.po +45 -37
  62. data/po/et/rails.po +28 -24
  63. data/po/fr/rails.po +39 -33
  64. data/po/fr/rgettext.po +43 -35
  65. data/po/it/rails.po +28 -24
  66. data/po/it/rgettext.po +43 -35
  67. data/po/ja/rails.po +30 -26
  68. data/po/ja/rgettext.po +44 -36
  69. data/po/ko/rails.po +36 -32
  70. data/po/ko/rgettext.po +43 -35
  71. data/po/nl/rails.po +32 -28
  72. data/po/nl/rgettext.po +46 -38
  73. data/po/pt_BR/rails.po +36 -31
  74. data/po/pt_BR/rgettext.po +45 -37
  75. data/po/rails.pot +28 -24
  76. data/po/rgettext.pot +39 -31
  77. data/po/ru/rails.po +36 -30
  78. data/po/ru/rgettext.po +50 -41
  79. data/po/sv/rgettext.po +40 -32
  80. data/po/zh/rails.po +29 -24
  81. data/po/zh/rgettext.po +46 -36
  82. data/po/zh_TW/rails.po +29 -24
  83. data/po/zh_TW/rgettext.po +45 -36
  84. data/samples/cgi/locale/ca/LC_MESSAGES/helloerb1.mo +0 -0
  85. data/samples/cgi/locale/ca/LC_MESSAGES/helloerb2.mo +0 -0
  86. data/samples/cgi/locale/ca/LC_MESSAGES/hellolib.mo +0 -0
  87. data/samples/cgi/locale/ca/LC_MESSAGES/main.mo +0 -0
  88. data/samples/cgi/locale/eo/LC_MESSAGES/helloerb1.mo +0 -0
  89. data/samples/cgi/locale/eo/LC_MESSAGES/helloerb2.mo +0 -0
  90. data/samples/cgi/locale/eo/LC_MESSAGES/hellolib.mo +0 -0
  91. data/samples/cgi/locale/eo/LC_MESSAGES/main.mo +0 -0
  92. data/samples/cgi/po/ca/helloerb1.po +59 -0
  93. data/samples/cgi/po/ca/helloerb2.po +51 -0
  94. data/samples/cgi/po/ca/hellolib.po +23 -0
  95. data/samples/cgi/po/ca/main.po +83 -0
  96. data/samples/cgi/po/eo/helloerb1.po +60 -0
  97. data/samples/cgi/po/eo/helloerb2.po +52 -0
  98. data/samples/cgi/po/eo/hellolib.po +24 -0
  99. data/samples/cgi/po/eo/main.po +84 -0
  100. data/samples/locale/ca/LC_MESSAGES/hello.mo +0 -0
  101. data/samples/locale/ca/LC_MESSAGES/hello2.mo +0 -0
  102. data/samples/locale/ca/LC_MESSAGES/hello_noop.mo +0 -0
  103. data/samples/locale/ca/LC_MESSAGES/hello_plural.mo +0 -0
  104. data/samples/locale/ca/LC_MESSAGES/helloglade2.mo +0 -0
  105. data/samples/locale/ca/LC_MESSAGES/hellogtk.mo +0 -0
  106. data/samples/locale/ca/LC_MESSAGES/hellotk.mo +0 -0
  107. data/samples/locale/eo/LC_MESSAGES/hello.mo +0 -0
  108. data/samples/locale/eo/LC_MESSAGES/hello2.mo +0 -0
  109. data/samples/locale/eo/LC_MESSAGES/hello_noop.mo +0 -0
  110. data/samples/locale/eo/LC_MESSAGES/hello_plural.mo +0 -0
  111. data/samples/locale/eo/LC_MESSAGES/helloglade2.mo +0 -0
  112. data/samples/locale/eo/LC_MESSAGES/hellogtk.mo +0 -0
  113. data/samples/locale/eo/LC_MESSAGES/hellotk.mo +0 -0
  114. data/samples/po/ca/hello.po +23 -0
  115. data/samples/po/ca/hello2.po +31 -0
  116. data/samples/po/ca/hello_noop.po +27 -0
  117. data/samples/po/ca/hello_plural.po +25 -0
  118. data/samples/po/ca/helloglade2.po +31 -0
  119. data/samples/po/ca/hellogtk.po +23 -0
  120. data/samples/po/ca/hellotk.po +23 -0
  121. data/samples/po/eo/hello.po +23 -0
  122. data/samples/po/eo/hello2.po +31 -0
  123. data/samples/po/eo/hello_noop.po +27 -0
  124. data/samples/po/eo/hello_plural.po +26 -0
  125. data/samples/po/eo/helloglade2.po +32 -0
  126. data/samples/po/eo/hellogtk.po +23 -0
  127. data/samples/po/eo/hellotk.po +24 -0
  128. data/samples/rails/app/views/blog/list.rhtml +0 -1
  129. data/samples/rails/config/environment.rb +2 -0
  130. data/samples/rails/db/schema.rb +0 -79
  131. data/samples/rails/lib/tasks/gettext.rake +2 -1
  132. data/samples/rails/locale/ca/LC_MESSAGES/blog.mo +0 -0
  133. data/samples/rails/locale/cs/LC_MESSAGES/blog.mo +0 -0
  134. data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
  135. data/samples/rails/locale/el/LC_MESSAGES/blog.mo +0 -0
  136. data/samples/rails/locale/en/LC_MESSAGES/blog.mo +0 -0
  137. data/samples/rails/locale/eo/LC_MESSAGES/blog.mo +0 -0
  138. data/samples/rails/locale/es/LC_MESSAGES/blog.mo +0 -0
  139. data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
  140. data/samples/rails/locale/it/LC_MESSAGES/blog.mo +0 -0
  141. data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
  142. data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
  143. data/samples/rails/locale/nl/LC_MESSAGES/blog.mo +0 -0
  144. data/samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
  145. data/samples/rails/locale/ru/LC_MESSAGES/blog.mo +0 -0
  146. data/samples/rails/locale/zh/LC_MESSAGES/blog.mo +0 -0
  147. data/samples/rails/locale/zh_TW/LC_MESSAGES/blog.mo +0 -0
  148. data/samples/rails/po/blog.pot +106 -106
  149. data/samples/rails/po/ca/blog.po +105 -0
  150. data/samples/rails/po/cs/blog.po +107 -110
  151. data/samples/rails/po/de/blog.po +107 -107
  152. data/samples/rails/po/el/blog.po +105 -105
  153. data/samples/rails/po/en/blog.po +107 -107
  154. data/samples/rails/po/eo/blog.po +106 -0
  155. data/samples/rails/po/es/blog.po +105 -105
  156. data/samples/rails/po/fr/blog.po +105 -105
  157. data/samples/rails/po/it/blog.po +105 -105
  158. data/samples/rails/po/ja/blog.po +105 -105
  159. data/samples/rails/po/ko/blog.po +105 -105
  160. data/samples/rails/po/nl/blog.po +105 -105
  161. data/samples/rails/po/pt_BR/blog.po +105 -105
  162. data/samples/rails/po/ru/blog.po +105 -105
  163. data/samples/rails/po/zh/blog.po +105 -105
  164. data/samples/rails/po/zh_TW/blog.po +107 -107
  165. data/samples/rails/vendor/plugins/gettext/locale/ca/LC_MESSAGES/gettext_plugin.mo +0 -0
  166. data/samples/rails/vendor/plugins/gettext/po/ca/gettext_plugin.po +27 -0
  167. data/test/README +6 -0
  168. data/test/Rakefile +1 -1
  169. data/test/fixtures/book.rb +3 -0
  170. data/test/fixtures/user.rb +3 -0
  171. data/test/gettext_test_active_record.rb +347 -67
  172. data/test/gettext_test_cgi.rb +27 -2
  173. data/test/gettext_test_parser.rb +102 -4
  174. data/test/gettext_test_rails.rb +6 -1
  175. data/test/locale/ja/LC_MESSAGES/active_record.mo +0 -0
  176. data/test/po/ja/active_record.po +17 -17
  177. data/test/test.sh +1 -0
  178. data/test/test_rubyparser.rb +6 -4
  179. metadata +889 -795
  180. data/pkg/ruby-gettext-package-1.8.0/ext/gettext/extconf.rb +0 -20
@@ -0,0 +1,27 @@
1
+ # Hello World noop -- sample for ruby-gettext-package
2
+ #
3
+ # Copyright (C) 2002-2006 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Ramon Salvadó <rsalvado at gnuine.com>, 2006.
8
+ #
9
+ msgid ""
10
+ msgstr ""
11
+ "Project-Id-Version: ruby-gettext 1.1.1\n"
12
+ "POT-Creation-Date: 2002-02-21 23:23:08+0900\n"
13
+ "PO-Revision-Date: 2005-12-20 10:33+0900E\n"
14
+ "Last-Translator: Ramon Salvadó <rsalvado at gnuine.com>\n"
15
+ "Language-Team: Catalan\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=2; plural=(n != 1);\n"
20
+
21
+ #: hello_noop.rb:8
22
+ msgid "Hello World"
23
+ msgstr "Hola Món"
24
+
25
+ #: hello_noop.rb:8
26
+ msgid "Hello World2"
27
+ msgstr "Hola Món2"
@@ -0,0 +1,25 @@
1
+ # hello_plural.po - sample for plural messages
2
+ #
3
+ # Copyright (C) 2002-2006 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Ramon Salvadó <rsalvado at gnuine.com>, 2006.
8
+ #
9
+ msgid ""
10
+ msgstr ""
11
+ "Project-Id-Version: ruby-gettext 1.1.1\n"
12
+ "POT-Creation-Date: 2002-10-21 15:32:15+0900\n"
13
+ "PO-Revision-Date: 2005-12-20 10:33+0900E\n"
14
+ "Last-Translator: Ramon Salvadó <rsalvado at gnuine.com>\n"
15
+ "Language-Team: Catalan\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=2; plural=(n != 1);\n"
20
+
21
+ #: hello_plural.rb:11
22
+ msgid "There is an apple.\n"
23
+ msgid_plural "There are %{num} apples.\n"
24
+ msgstr[0] "Hi ha %{num} poma.\n"
25
+ msgstr[1] "Hi ha %{num} pomes.\n"
@@ -0,0 +1,31 @@
1
+ # helloglade2.po - sample for Ruby/Libglade2
2
+ #
3
+ # Copyright (C) 2005,2006 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Ramon Salvadó <rsalvado at gnuine.com>, 2006.
8
+ #
9
+ msgid ""
10
+ msgstr ""
11
+ "Project-Id-Version: ruby-gettext 1.1.1\n"
12
+ "POT-Creation-Date: 2004-07-03 23:38+0900\n"
13
+ "PO-Revision-Date: 2005-12-20 10:33+0900E\n"
14
+ "Last-Translator: Ramon Salvadó <rsalvado at gnuine.com>\n"
15
+ "Language-Team: Catalan\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=2; plural=(n != 1);\n"
20
+
21
+ #: helloglade2.glade:8
22
+ msgid "window1"
23
+ msgstr "Finestra1"
24
+
25
+ #: helloglade2.glade:29
26
+ msgid "first line\nsecond line\nthird line"
27
+ msgstr "Primera línia\nsegona línia\ntercera línia"
28
+
29
+ #: helloglade2.glade:53
30
+ msgid "<Hello world>"
31
+ msgstr "<Hola Món>"
@@ -0,0 +1,23 @@
1
+ # Hello World for Ruby/GTK -- sample for ruby-gettext-package
2
+ #
3
+ # Copyright (C) 2001-2006 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Ramon Salvadó <rsalvado at gnuine.com>, 2006.
8
+ #
9
+ msgid ""
10
+ msgstr ""
11
+ "Project-Id-Version: ruby-gettext 1.1.1\n"
12
+ "POT-Creation-Date: 2001-12-24 01:52:10+0900\n"
13
+ "PO-Revision-Date: 2005-12-20 10:33+0900E\n"
14
+ "Last-Translator: Ramon Salvadó <rsalvado at gnuine.com>\n"
15
+ "Language-Team: Catalan\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=2; plural=(n != 1);\n"
20
+
21
+ #: ../hellogtk.rb:14
22
+ msgid "hello, gtk world"
23
+ msgstr "hola, món gtk"
@@ -0,0 +1,23 @@
1
+ # hellotk.po - sample for Ruby/TK
2
+ #
3
+ # Copyright (C) 2004 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Ramon Salvadó <rsalvado at gnuine.com>, 2006.
8
+ #
9
+ msgid ""
10
+ msgstr ""
11
+ "Project-Id-Version: ruby-gettext 1.1.1\n"
12
+ "POT-Creation-Date: 2004-11-05 21:38+0900\n"
13
+ "PO-Revision-Date: 2005-12-20 10:33+0900E\n"
14
+ "Last-Translator: Ramon Salvadó <rsalvado at gnuine.com>\n"
15
+ "Language-Team: Catalan\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=2; plural=(n != 1);\n"
20
+
21
+ #: hellotk.rb:10
22
+ msgid "hello, tk world"
23
+ msgstr "hola, món tk"
@@ -0,0 +1,23 @@
1
+ # Hello World -- a sample for Ruby-GetText-Package
2
+ #
3
+ # Copyright (C) 2001-2006 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Malte Milatz <malte@gmx-topmail.de>, 2006.
8
+ #
9
+ #, fuzzy
10
+ msgid ""
11
+ msgstr ""
12
+ "Project-Id-Version: ruby-gettext 1.1.1\n"
13
+ "POT-Creation-Date: 2001-12-24 01:30:54+0900\n"
14
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
15
+ "Last-Translator: Malte Milatz <malte@gmx-topmail.de>\n"
16
+ "Language-Team: Esperanto\n"
17
+ "MIME-Version: 1.0\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+ "Content-Transfer-Encoding: 8bit\n"
20
+
21
+ #: ../hello.rb:7
22
+ msgid "Hello World\n"
23
+ msgstr "Saluton!\n"
@@ -0,0 +1,31 @@
1
+ # Hello World 2 -- sample for ruby-gettext-package
2
+ #
3
+ # Copyright (C) 2002-2006 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Malte Milatz <malte@gmx-topmail.de>, 2006.
8
+ #
9
+ #, fuzzy
10
+ msgid ""
11
+ msgstr ""
12
+ "Project-Id-Version: ruby-gettext 1.1.1\n"
13
+ "POT-Creation-Date: 2002-01-01 03:05:08+0900\n"
14
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
15
+ "Last-Translator: Malte Milatz <malte@gmx-topmail.de>\n"
16
+ "Language-Team: Esperanto\n"
17
+ "MIME-Version: 1.0\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+ "Content-Transfer-Encoding: 8bit\n"
20
+
21
+ #: hello2.rb:9
22
+ msgid "World"
23
+ msgstr "homoj"
24
+
25
+ #: hello2.rb:8
26
+ msgid "One is %{num}\n"
27
+ msgstr "Unu estas %{num}.\n"
28
+
29
+ #: hello2.rb:9
30
+ msgid "Hello %{world}\n"
31
+ msgstr "Saluton, %{world}!\n"
@@ -0,0 +1,27 @@
1
+ # Hello World noop -- sample for ruby-gettext-package
2
+ #
3
+ # Copyright (C) 2002-2006 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Malte Milatz <malte@gmx-topmail.de>, 2006.
8
+ #
9
+ #, fuzzy
10
+ msgid ""
11
+ msgstr ""
12
+ "Project-Id-Version: ruby-gettext 1.1.1\n"
13
+ "POT-Creation-Date: 2002-02-21 23:23:08+0900\n"
14
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
15
+ "Last-Translator: Malte Milatz <malte@gmx-topmail.de>\n"
16
+ "Language-Team: Esperanto\n"
17
+ "MIME-Version: 1.0\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+ "Content-Transfer-Encoding: 8bit\n"
20
+
21
+ #: hello_noop.rb:8
22
+ msgid "Hello World"
23
+ msgstr "Saluton!"
24
+
25
+ #: hello_noop.rb:8
26
+ msgid "Hello World2"
27
+ msgstr "Saluton plifoje!"
@@ -0,0 +1,26 @@
1
+ # hello_plural.po - sample for plural messages
2
+ #
3
+ # Copyright (C) 2002-2006 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Malte Milatz <malte@gmx-topmail.de>, 2006.
8
+ #
9
+ #, fuzzy
10
+ msgid ""
11
+ msgstr ""
12
+ "Project-Id-Version: ruby-gettext 1.1.1\n"
13
+ "POT-Creation-Date: 2002-10-21 15:32:15+0900\n"
14
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
15
+ "Last-Translator: Malte Milatz <malte@gmx-topmail.de>\n"
16
+ "Language-Team: Esperanto\n"
17
+ "MIME-Version: 1.0\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+ "Content-Transfer-Encoding: 8bit\n"
20
+ "Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;\n"
21
+
22
+ #: hello_plural.rb:11
23
+ msgid "There is an apple.\n"
24
+ msgid_plural "There are %{num} apples.\n"
25
+ msgstr[0] "Jen pomo.\n"
26
+ msgstr[1] "Jen %{num} pomoj.\n"
@@ -0,0 +1,32 @@
1
+ # helloglade2.po - sample for Ruby/Libglade2
2
+ #
3
+ # Copyright (C) 2005,2006 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Malte Milatz <malte@gmx-topmail.de>, 2006.
8
+ #
9
+ #, fuzzy
10
+ msgid ""
11
+ msgstr ""
12
+ "Project-Id-Version: ruby-gettext 1.1.1\n"
13
+ "POT-Creation-Date: 2004-07-03 23:38+0900\n"
14
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
15
+ "Last-Translator: Malte Milatz <malte@gmx-topmail.de>\n"
16
+ "Language-Team: Esperanto\n"
17
+ "MIME-Version: 1.0\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+ "Content-Transfer-Encoding: 8bit\n"
20
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
+
22
+ #: helloglade2.glade:8
23
+ msgid "window1"
24
+ msgstr "fenestro1"
25
+
26
+ #: helloglade2.glade:29
27
+ msgid "first line\nsecond line\nthird line"
28
+ msgstr "unua linio\ndua linio\ntria linio"
29
+
30
+ #: helloglade2.glade:53
31
+ msgid "<Hello world>"
32
+ msgstr "<Saluton!>"
@@ -0,0 +1,23 @@
1
+ # Hello World for Ruby/GTK -- sample for ruby-gettext-package
2
+ #
3
+ # Copyright (C) 2001-2006 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Malte Milatz <malte@gmx-topmail.de>, 2006.
8
+ #
9
+ #, fuzzy
10
+ msgid ""
11
+ msgstr ""
12
+ "Project-Id-Version: ruby-gettext 1.1.1\n"
13
+ "POT-Creation-Date: 2001-12-24 01:52:10+0900\n"
14
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
15
+ "Last-Translator: Malte Milatz <malte@gmx-topmail.de>\n"
16
+ "Language-Team: Esperanto\n"
17
+ "MIME-Version: 1.0\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+ "Content-Transfer-Encoding: 8bit\n"
20
+
21
+ #: ../hellogtk.rb:14
22
+ msgid "hello, gtk world"
23
+ msgstr "GTK-an saluton!"
@@ -0,0 +1,24 @@
1
+ # hellotk.po - sample for Ruby/TK
2
+ #
3
+ # Copyright (C) 2004 Masao Mutoh
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Malte Milatz <malte@gmx-topmail.de>, 2006.
8
+ #
9
+ #, fuzzy
10
+ msgid ""
11
+ msgstr ""
12
+ "Project-Id-Version: ruby-gettext 1.1.1\n"
13
+ "POT-Creation-Date: 2004-11-05 21:38+0900\n"
14
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
15
+ "Last-Translator: Malte Milatz <malte@gmx-topmail.de>\n"
16
+ "Language-Team: Esperanto\n"
17
+ "MIME-Version: 1.0\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+ "Content-Transfer-Encoding: 8bit\n"
20
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
+
22
+ #: hellotk.rb:10
23
+ msgid "hello, tk world"
24
+ msgstr "TK-an saluton!"
@@ -27,4 +27,3 @@
27
27
  %>
28
28
  <% end %>
29
29
 
30
-
@@ -5,6 +5,8 @@
5
5
  # ENV['RAILS_ENV'] ||= 'production'
6
6
 
7
7
  # Bootstrap the Rails environment, frameworks, and default configuration
8
+ $KCODE="U"
9
+
8
10
  require File.join(File.dirname(__FILE__), 'boot')
9
11
 
10
12
  Rails::Initializer.run do |config|
@@ -3,88 +3,9 @@
3
3
  # then regenerate this schema definition.
4
4
 
5
5
  ActiveRecord::Schema.define(:version => 1) do
6
-
7
6
  create_table "articles", :force => true do |t|
8
7
  t.column "title", :string, :default => "", :null => false
9
8
  t.column "description", :text, :default => "", :null => false
10
9
  t.column "lastupdate", :date
11
10
  end
12
-
13
- create_table "engine_schema_info", :id => false, :force => true do |t|
14
- t.column "engine_name", :string
15
- t.column "version", :integer
16
- end
17
-
18
- create_table "foos", :force => true do |t|
19
- t.column "name", :string, :default => "", :null => false
20
- end
21
-
22
- create_table "globalize_countries", :force => true do |t|
23
- t.column "code", :string, :limit => 2
24
- t.column "english_name", :string
25
- t.column "date_format", :string
26
- t.column "currency_format", :string
27
- t.column "currency_code", :string, :limit => 3
28
- t.column "thousands_sep", :string, :limit => 2
29
- t.column "decimal_sep", :string, :limit => 2
30
- t.column "currency_decimal_sep", :string, :limit => 2
31
- t.column "number_grouping_scheme", :string
32
- end
33
-
34
- add_index "globalize_countries", ["code"], :name => "globalize_countries_code_index"
35
-
36
- create_table "globalize_languages", :force => true do |t|
37
- t.column "iso_639_1", :string, :limit => 2
38
- t.column "iso_639_2", :string, :limit => 3
39
- t.column "iso_639_3", :string, :limit => 3
40
- t.column "rfc_3066", :string
41
- t.column "english_name", :string
42
- t.column "english_name_locale", :string
43
- t.column "english_name_modifier", :string
44
- t.column "native_name", :string
45
- t.column "native_name_locale", :string
46
- t.column "native_name_modifier", :string
47
- t.column "macro_language", :boolean
48
- t.column "direction", :string
49
- t.column "pluralization", :string
50
- t.column "scope", :string, :limit => 1
51
- end
52
-
53
- add_index "globalize_languages", ["iso_639_1"], :name => "globalize_languages_iso_639_1_index"
54
- add_index "globalize_languages", ["iso_639_2"], :name => "globalize_languages_iso_639_2_index"
55
- add_index "globalize_languages", ["iso_639_3"], :name => "globalize_languages_iso_639_3_index"
56
- add_index "globalize_languages", ["rfc_3066"], :name => "globalize_languages_rfc_3066_index"
57
-
58
- create_table "globalize_translations", :force => true do |t|
59
- t.column "type", :string
60
- t.column "tr_key", :string
61
- t.column "table_name", :string
62
- t.column "item_id", :integer
63
- t.column "facet", :string
64
- t.column "language_id", :integer
65
- t.column "pluralization_index", :integer
66
- t.column "text", :text
67
- end
68
-
69
- add_index "globalize_translations", ["tr_key", "language_id"], :name => "globalize_translations_tr_key_index"
70
- add_index "globalize_translations", ["table_name", "item_id", "language_id"], :name => "globalize_translations_table_name_index"
71
-
72
- create_table "users", :force => true do |t|
73
- t.column "login", :string, :limit => 80, :default => "", :null => false
74
- t.column "salted_password", :string, :limit => 40, :default => "", :null => false
75
- t.column "email", :string, :limit => 60, :default => "", :null => false
76
- t.column "firstname", :string, :limit => 40
77
- t.column "lastname", :string, :limit => 40
78
- t.column "salt", :string, :limit => 40, :default => "", :null => false
79
- t.column "verified", :integer, :default => 0
80
- t.column "role", :string, :limit => 40
81
- t.column "security_token", :string, :limit => 40
82
- t.column "token_expiry", :datetime
83
- t.column "created_at", :datetime
84
- t.column "updated_at", :datetime
85
- t.column "logged_in_at", :datetime
86
- t.column "deleted", :integer, :default => 0
87
- t.column "delete_after", :datetime
88
- end
89
-
90
11
  end
@@ -2,14 +2,15 @@
2
2
  # Added for Ruby-GetText-Package
3
3
  #
4
4
 
5
- require 'gettext/utils'
6
5
  desc "Create mo-files for L10n"
7
6
  task :makemo do
7
+ require 'gettext/utils'
8
8
  GetText.create_mofiles(true, "po", "locale")
9
9
  end
10
10
 
11
11
  desc "Update pot/po files to match new version."
12
12
  task :updatepo do
13
+ require 'gettext/utils'
13
14
  GetText.update_pofiles("blog", Dir.glob("{app,lib}/**/*.{rb,rhtml}"),
14
15
  "blog 1.2.0")
15
16
  end