gettext 1.1.0 → 1.1.1

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 (169) hide show
  1. data/ChangeLog +41 -0
  2. data/NEWS +6 -0
  3. data/README +17 -11
  4. data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
  5. data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
  6. data/lib/gettext/parser/activerecord.rb +10 -9
  7. data/lib/gettext/parser/erb.rb +15 -2
  8. data/lib/gettext/parser/glade.rb +5 -2
  9. data/lib/gettext/poparser.rb +2 -2
  10. data/lib/gettext/rails.rb +24 -15
  11. data/lib/gettext/version.rb +2 -2
  12. data/po/el/rails.po +79 -0
  13. data/po/el/rgettext.po +98 -0
  14. data/po/it/messages.mo +0 -0
  15. data/samples/cgi/Rakefile +20 -2
  16. data/samples/cgi/index.cgi +1 -1
  17. data/samples/cgi/locale/cs/LC_MESSAGES/helloerb1.mo +0 -0
  18. data/samples/cgi/locale/cs/LC_MESSAGES/helloerb2.mo +0 -0
  19. data/samples/cgi/locale/cs/LC_MESSAGES/hellolib.mo +0 -0
  20. data/samples/cgi/locale/cs/LC_MESSAGES/main.mo +0 -0
  21. data/samples/cgi/locale/de/LC_MESSAGES/helloerb1.mo +0 -0
  22. data/samples/cgi/locale/de/LC_MESSAGES/helloerb2.mo +0 -0
  23. data/samples/cgi/locale/de/LC_MESSAGES/hellolib.mo +0 -0
  24. data/samples/cgi/locale/de/LC_MESSAGES/main.mo +0 -0
  25. data/samples/cgi/locale/el/LC_MESSAGES/helloerb1.mo +0 -0
  26. data/samples/cgi/locale/el/LC_MESSAGES/helloerb2.mo +0 -0
  27. data/samples/cgi/locale/el/LC_MESSAGES/hellolib.mo +0 -0
  28. data/samples/cgi/locale/el/LC_MESSAGES/main.mo +0 -0
  29. data/samples/cgi/locale/es/LC_MESSAGES/helloerb1.mo +0 -0
  30. data/samples/cgi/locale/es/LC_MESSAGES/helloerb2.mo +0 -0
  31. data/samples/cgi/locale/es/LC_MESSAGES/hellolib.mo +0 -0
  32. data/samples/cgi/locale/es/LC_MESSAGES/main.mo +0 -0
  33. data/samples/cgi/locale/fr/LC_MESSAGES/helloerb1.mo +0 -0
  34. data/samples/cgi/locale/fr/LC_MESSAGES/helloerb2.mo +0 -0
  35. data/samples/cgi/locale/fr/LC_MESSAGES/hellolib.mo +0 -0
  36. data/samples/cgi/locale/fr/LC_MESSAGES/main.mo +0 -0
  37. data/samples/cgi/locale/it/LC_MESSAGES/helloerb1.mo +0 -0
  38. data/samples/cgi/locale/it/LC_MESSAGES/helloerb2.mo +0 -0
  39. data/samples/cgi/locale/it/LC_MESSAGES/hellolib.mo +0 -0
  40. data/samples/cgi/locale/it/LC_MESSAGES/main.mo +0 -0
  41. data/samples/cgi/locale/ja/LC_MESSAGES/helloerb1.mo +0 -0
  42. data/samples/cgi/locale/ja/LC_MESSAGES/helloerb2.mo +0 -0
  43. data/samples/cgi/locale/ja/LC_MESSAGES/hellolib.mo +0 -0
  44. data/samples/cgi/locale/ja/LC_MESSAGES/main.mo +0 -0
  45. data/samples/cgi/locale/ko/LC_MESSAGES/helloerb1.mo +0 -0
  46. data/samples/cgi/locale/ko/LC_MESSAGES/helloerb2.mo +0 -0
  47. data/samples/cgi/locale/ko/LC_MESSAGES/hellolib.mo +0 -0
  48. data/samples/cgi/locale/ko/LC_MESSAGES/main.mo +0 -0
  49. data/samples/cgi/locale/nl/LC_MESSAGES/helloerb1.mo +0 -0
  50. data/samples/cgi/locale/nl/LC_MESSAGES/helloerb2.mo +0 -0
  51. data/samples/cgi/locale/nl/LC_MESSAGES/hellolib.mo +0 -0
  52. data/samples/cgi/locale/nl/LC_MESSAGES/main.mo +0 -0
  53. data/samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb1.mo +0 -0
  54. data/samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb2.mo +0 -0
  55. data/samples/cgi/locale/pt_BR/LC_MESSAGES/hellolib.mo +0 -0
  56. data/samples/cgi/locale/pt_BR/LC_MESSAGES/main.mo +0 -0
  57. data/samples/cgi/po/cs/helloerb1.po +14 -19
  58. data/samples/cgi/po/cs/helloerb2.po +11 -11
  59. data/samples/cgi/po/cs/hellolib.po +4 -4
  60. data/samples/cgi/po/cs/main.po +30 -23
  61. data/samples/cgi/po/de/helloerb1.po +18 -17
  62. data/samples/cgi/po/de/helloerb2.po +12 -12
  63. data/samples/cgi/po/de/hellolib.po +7 -6
  64. data/samples/cgi/po/de/main.po +35 -25
  65. data/samples/cgi/po/el/helloerb1.po +60 -0
  66. data/samples/cgi/po/el/helloerb2.po +51 -0
  67. data/samples/cgi/po/el/hellolib.po +23 -0
  68. data/samples/cgi/po/el/main.po +84 -0
  69. data/samples/cgi/po/es/helloerb1.po +13 -13
  70. data/samples/cgi/po/es/helloerb2.po +11 -11
  71. data/samples/cgi/po/es/hellolib.po +3 -3
  72. data/samples/cgi/po/es/main.po +33 -24
  73. data/samples/cgi/po/fr/helloerb1.po +14 -14
  74. data/samples/cgi/po/fr/helloerb2.po +13 -13
  75. data/samples/cgi/po/fr/hellolib.po +3 -3
  76. data/samples/cgi/po/fr/main.po +38 -28
  77. data/samples/cgi/po/helloerb1.pot +13 -13
  78. data/samples/cgi/po/helloerb2.pot +10 -10
  79. data/samples/cgi/po/hellolib.pot +4 -3
  80. data/samples/cgi/po/it/helloerb1.po +13 -14
  81. data/samples/cgi/po/it/helloerb2.po +9 -9
  82. data/samples/cgi/po/it/hellolib.po +2 -2
  83. data/samples/cgi/po/it/main.po +30 -22
  84. data/samples/cgi/po/it/messages.mo +0 -0
  85. data/samples/cgi/po/ja/helloerb1.po +14 -13
  86. data/samples/cgi/po/ja/helloerb2.po +10 -10
  87. data/samples/cgi/po/ja/hellolib.po +5 -4
  88. data/samples/cgi/po/ja/main.po +31 -22
  89. data/samples/cgi/po/ko/helloerb1.po +15 -13
  90. data/samples/cgi/po/ko/helloerb2.po +11 -11
  91. data/samples/cgi/po/ko/hellolib.po +5 -3
  92. data/samples/cgi/po/ko/main.po +33 -22
  93. data/samples/cgi/po/main.pot +23 -19
  94. data/samples/cgi/po/nl/helloerb1.po +16 -15
  95. data/samples/cgi/po/nl/helloerb2.po +11 -11
  96. data/samples/cgi/po/nl/hellolib.po +4 -4
  97. data/samples/cgi/po/nl/main.po +33 -23
  98. data/samples/cgi/po/pt_BR/helloerb1.po +13 -13
  99. data/samples/cgi/po/pt_BR/helloerb2.po +9 -9
  100. data/samples/cgi/po/pt_BR/hellolib.po +3 -2
  101. data/samples/cgi/po/pt_BR/main.po +30 -21
  102. data/samples/locale/el/LC_MESSAGES/hello.mo +0 -0
  103. data/samples/locale/el/LC_MESSAGES/hello2.mo +0 -0
  104. data/samples/locale/el/LC_MESSAGES/hello_noop.mo +0 -0
  105. data/samples/locale/el/LC_MESSAGES/hello_plural.mo +0 -0
  106. data/samples/locale/el/LC_MESSAGES/helloglade2.mo +0 -0
  107. data/samples/locale/el/LC_MESSAGES/hellogtk.mo +0 -0
  108. data/samples/locale/el/LC_MESSAGES/hellotk.mo +0 -0
  109. data/samples/po/el/hello.po +23 -0
  110. data/samples/po/el/hello2.po +31 -0
  111. data/samples/po/el/hello_noop.po +27 -0
  112. data/samples/po/el/hello_plural.po +25 -0
  113. data/samples/po/el/helloglade2.po +31 -0
  114. data/samples/po/el/hellogtk.po +22 -0
  115. data/samples/po/el/hellotk.po +23 -0
  116. data/samples/po/hello.pot +4 -2
  117. data/samples/po/hello2.pot +4 -2
  118. data/samples/po/hello_noop.pot +4 -2
  119. data/samples/po/hello_plural.pot +3 -3
  120. data/samples/po/helloglade2.pot +2 -2
  121. data/samples/po/hellogtk.pot +5 -2
  122. data/samples/po/hellotk.pot +1 -1
  123. data/samples/rails/README +6 -0
  124. data/samples/rails/app/controllers/blog_controller.rb +1 -1
  125. data/samples/rails/config/database.yml +5 -1
  126. data/samples/rails/locale/cs/LC_MESSAGES/blog.mo +0 -0
  127. data/samples/rails/locale/cs/LC_MESSAGES/gettext_plugin.mo +0 -0
  128. data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
  129. data/samples/rails/locale/de/LC_MESSAGES/gettext_plugin.mo +0 -0
  130. data/samples/rails/locale/el/LC_MESSAGES/blog.mo +0 -0
  131. data/samples/rails/locale/el/LC_MESSAGES/gettext_plugin.mo +0 -0
  132. data/samples/rails/locale/en/LC_MESSAGES/blog.mo +0 -0
  133. data/samples/rails/locale/es/LC_MESSAGES/blog.mo +0 -0
  134. data/samples/rails/locale/es/LC_MESSAGES/gettext_plugin.mo +0 -0
  135. data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
  136. data/samples/rails/locale/fr/LC_MESSAGES/gettext_plugin.mo +0 -0
  137. data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
  138. data/samples/rails/locale/ja/LC_MESSAGES/gettext_plugin.mo +0 -0
  139. data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
  140. data/samples/rails/locale/ko/LC_MESSAGES/gettext_plugin.mo +0 -0
  141. data/samples/rails/locale/nl/LC_MESSAGES/blog.mo +0 -0
  142. data/samples/rails/locale/nl/LC_MESSAGES/gettext_plugin.mo +0 -0
  143. data/samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
  144. data/samples/rails/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo +0 -0
  145. data/samples/rails/po/blog.pot +4 -4
  146. data/samples/rails/po/cs/blog.po +6 -6
  147. data/samples/rails/po/cs/gettext_plugin.po +3 -3
  148. data/samples/rails/po/de/blog.po +9 -6
  149. data/samples/rails/po/de/gettext_plugin.po +5 -3
  150. data/samples/rails/po/el/blog.po +109 -0
  151. data/samples/rails/po/el/gettext_plugin.po +27 -0
  152. data/samples/rails/po/en/blog.po +4 -4
  153. data/samples/rails/po/es/blog.po +7 -6
  154. data/samples/rails/po/es/gettext_plugin.po +4 -4
  155. data/samples/rails/po/fr/blog.po +5 -5
  156. data/samples/rails/po/fr/gettext_plugin.po +3 -3
  157. data/samples/rails/po/gettext_plugin.pot +3 -3
  158. data/samples/rails/po/ja/blog.po +5 -5
  159. data/samples/rails/po/ja/gettext_plugin.po +3 -3
  160. data/samples/rails/po/ko/blog.po +9 -5
  161. data/samples/rails/po/ko/gettext_plugin.po +6 -4
  162. data/samples/rails/po/nl/blog.po +12 -15
  163. data/samples/rails/po/nl/gettext_plugin.po +5 -5
  164. data/samples/rails/po/pt_BR/blog.po +5 -5
  165. data/samples/rails/po/pt_BR/gettext_plugin.po +3 -3
  166. data/samples/rails/test/functional/blog_controller_test.rb +11 -1
  167. data/test/gettext_test_parser.rb +16 -0
  168. data/test/test_erb.rxml +16 -0
  169. metadata +47 -2
@@ -9,7 +9,7 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: blog 1.1.0\n"
12
- "POT-Creation-Date: 2005-12-23 01:29+0900\n"
12
+ "POT-Creation-Date: 2006-01-11 00:45+0900\n"
13
13
  "PO-Revision-Date: 2005-08-26 23:02+0900\n"
14
14
  "Last-Translator: Masao Mutoh <mutoh@highway.ne.jp>\n"
15
15
  "Language-Team: Japanese\n"
@@ -27,12 +27,12 @@ msgid "Old articles"
27
27
  msgstr "過去の記事"
28
28
 
29
29
  #: app/models/article.rb:-
30
- msgid "Article"
30
+ msgid "article"
31
31
  msgstr "記事"
32
32
 
33
33
  #: app/models/article.rb:-
34
34
  msgid "Article|Id"
35
- msgstr "記事"
35
+ msgstr "ID"
36
36
 
37
37
  #: app/models/article.rb:-
38
38
  msgid "Article|Title"
@@ -46,11 +46,11 @@ msgstr "内容"
46
46
  msgid "Article|Lastupdate"
47
47
  msgstr "投稿日"
48
48
 
49
- #: app/controllers/blog_controller.rb:37
49
+ #: app/controllers/blog_controller.rb:33
50
50
  msgid "Article was successfully created."
51
51
  msgstr "記事の投稿に成功しました。"
52
52
 
53
- #: app/controllers/blog_controller.rb:51
53
+ #: app/controllers/blog_controller.rb:47
54
54
  msgid "Article was successfully updated."
55
55
  msgstr "記事の更新に成功しました。"
56
56
 
@@ -10,7 +10,7 @@
10
10
  msgid ""
11
11
  msgstr ""
12
12
  "Project-Id-Version: gettext_plugin 1.1.0\n"
13
- "POT-Creation-Date: 2005-12-23 01:29+0900\n"
13
+ "POT-Creation-Date: 2006-01-11 00:45+0900\n"
14
14
  "PO-Revision-Date: 2005-08-27 23:23+0900\n"
15
15
  "Last-Translator: Masao Mutoh <mutoh@highway.ne.jp>\n"
16
16
  "Language-Team: Japanese\n"
@@ -19,10 +19,10 @@ msgstr ""
19
19
  "Content-Transfer-Encoding: 8bit\n"
20
20
  "Plural-Forms: nplurals=1; plural=0;\n"
21
21
 
22
- #: vendor/plugins/gettext/lib/gettext_plugin.rb:24
22
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:25
23
23
  msgid "Select locale"
24
24
  msgstr "ロケールの選択"
25
25
 
26
- #: vendor/plugins/gettext/lib/gettext_plugin.rb:36
26
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:37
27
27
  msgid "Cookie &quot;lang&quot; is set: %s"
28
28
  msgstr "クッキーの&quot;lang&quot;に %s がセットされました。"
@@ -1,12 +1,15 @@
1
+ # GetText Sample Blog on RoR.
1
2
  #
2
3
  # Copyright (C) 2005 Masao Mutoh
3
4
  #
4
5
  # This file is distributed under the same license as the Ruby-GetText-Package.
5
6
  #
7
+ # Gyoung-Yoon Noh <nohmad@gmail.com>
8
+ #
6
9
  msgid ""
7
10
  msgstr ""
8
- "Project-Id-Version: 1.0\n"
9
- "POT-Creation-Date: 2005-12-17 13:59+0900\n"
11
+ "Project-Id-Version: blog 1.1.0\n"
12
+ "POT-Creation-Date: 2006-01-11 00:45+0900\n"
10
13
  "PO-Revision-Date: 2005-12-23 02:00+0900\n"
11
14
  "Last-Translator: Gyoung-Yoon Noh <nohmad@gmail.com>\n"
12
15
  "Language-Team: Korean\n"
@@ -24,9 +27,10 @@ msgid "Old articles"
24
27
  msgstr "이전 글들"
25
28
 
26
29
  #: app/models/article.rb:-
27
- msgid "Article"
30
+ msgid "article"
28
31
  msgstr "새 글"
29
32
 
33
+
30
34
  #: app/models/article.rb:-
31
35
  msgid "Article|Id"
32
36
  msgstr ""
@@ -43,11 +47,11 @@ msgstr "설명"
43
47
  msgid "Article|Lastupdate"
44
48
  msgstr "마지막 변경"
45
49
 
46
- #: app/controllers/blog_controller.rb:37
50
+ #: app/controllers/blog_controller.rb:33
47
51
  msgid "Article was successfully created."
48
52
  msgstr "글이 성공적으로 생성되었습니다."
49
53
 
50
- #: app/controllers/blog_controller.rb:51
54
+ #: app/controllers/blog_controller.rb:47
51
55
  msgid "Article was successfully updated."
52
56
  msgstr "글이 성공적으로 갱신되었습니다."
53
57
 
@@ -4,10 +4,12 @@
4
4
  #
5
5
  # This file is distributed under the same license as the Ruby-GetText-Package.
6
6
  #
7
+ # Gyoung-Yoon Noh <nohmad@gmail.com>
8
+ #
7
9
  msgid ""
8
10
  msgstr ""
9
- "Project-Id-Version: 1.0\n"
10
- "POT-Creation-Date: 2005-12-17 13:59+0900\n"
11
+ "Project-Id-Version: gettext_plugin 1.1.0\n"
12
+ "POT-Creation-Date: 2006-01-11 00:45+0900\n"
11
13
  "PO-Revision-Date: 2005-12-23 02:00+0900\n"
12
14
  "Last-Translator: Gyoung-Yoon Noh <nohmad@gmail.com>\n"
13
15
  "Language-Team: Korean <LL@li.org>\n"
@@ -16,10 +18,10 @@ msgstr ""
16
18
  "Content-Transfer-Encoding: 8bit\n"
17
19
  "Plural-Forms: nplurals=1; plural=0;\n"
18
20
 
19
- #: vendor/plugins/gettext/lib/gettext_plugin.rb:24
21
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:25
20
22
  msgid "Select locale"
21
23
  msgstr "로케일을 선택하세요"
22
24
 
23
- #: vendor/plugins/gettext/lib/gettext_plugin.rb:33
25
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:37
24
26
  msgid "Cookie &quot;lang&quot; is set: %s"
25
27
  msgstr "쿠키 언어가 %s로 설정되었습니다."
@@ -9,13 +9,13 @@
9
9
  #, fuzzy
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: ruby-gettext-package 1.1.0\n"
13
- "POT-Creation-Date: 2001-12-24 01:30:54+0900\n"
12
+ "Project-Id-Version: blog 1.1.0\n"
13
+ "POT-Creation-Date: 2006-01-11 00:45+0900\n"
14
14
  "PO-Revision-Date: 2005-12-19 21:44+0100\n"
15
15
  "Last-Translator: Menno Jonkers <ruby-gettext@jonkers.com>\n"
16
16
  "Language-Team: Dutch <ruby_gettext@jonkers.com>\n"
17
17
  "MIME-Version: 1.0\n"
18
- "Content-Type: text/plain; charset=utf-8\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
19
  "Content-Transfer-Encoding: 8bit\n"
20
20
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
21
21
 
@@ -28,8 +28,8 @@ msgid "Old articles"
28
28
  msgstr "Oude artikelen"
29
29
 
30
30
  #: app/models/article.rb:-
31
- msgid "Article"
32
- msgstr "Artikel"
31
+ msgid "article"
32
+ msgstr "artikel"
33
33
 
34
34
  #: app/models/article.rb:-
35
35
  msgid "Article|Id"
@@ -47,16 +47,15 @@ msgstr "Beschrijving"
47
47
  msgid "Article|Lastupdate"
48
48
  msgstr "Laatste wijziging"
49
49
 
50
- #: app/controllers/blog_controller.rb:37
50
+ #: app/controllers/blog_controller.rb:33
51
51
  msgid "Article was successfully created."
52
52
  msgstr "Het artikel is aangemaakt."
53
53
 
54
- #: app/controllers/blog_controller.rb:51
54
+ #: app/controllers/blog_controller.rb:47
55
55
  msgid "Article was successfully updated."
56
56
  msgstr "Het artikel is gewijzigd."
57
57
 
58
- #: app/views/blog/new.rhtml:13
59
- #: app/views/blog/list.rhtml:15
58
+ #: app/views/blog/new.rhtml:13 app/views/blog/list.rhtml:15
60
59
  msgid "New article"
61
60
  msgstr "Nieuw artikel"
62
61
 
@@ -64,8 +63,7 @@ msgstr "Nieuw artikel"
64
63
  msgid "Create"
65
64
  msgstr "Maak aan"
66
65
 
67
- #: app/views/blog/new.rhtml:20
68
- #: app/views/blog/edit.rhtml:21
66
+ #: app/views/blog/new.rhtml:20 app/views/blog/edit.rhtml:21
69
67
  #: app/views/blog/show.rhtml:17
70
68
  msgid "Back"
71
69
  msgstr "Terug"
@@ -82,8 +80,7 @@ msgstr "Titel: vereist."
82
80
  msgid "Description: More than 10 characters."
83
81
  msgstr "Beschrijving: meer dan 10 tekens."
84
82
 
85
- #: app/views/blog/list.rhtml:13
86
- #: app/views/blog/show.rhtml:13
83
+ #: app/views/blog/list.rhtml:13 app/views/blog/show.rhtml:13
87
84
  #: app/views/layouts/blog.rhtml:14
88
85
  msgid "GetText Sample Blog on RoR"
89
86
  msgstr "GetText voorbeeld-blog op RoR"
@@ -96,8 +93,7 @@ msgstr "Geen artikelen gevonden."
96
93
  msgid "Editing article"
97
94
  msgstr "Bewerken artikel"
98
95
 
99
- #: app/views/blog/edit.rhtml:16
100
- #: app/views/blog/show.rhtml:16
96
+ #: app/views/blog/edit.rhtml:16 app/views/blog/show.rhtml:16
101
97
  msgid "Edit"
102
98
  msgstr "Bewerk"
103
99
 
@@ -113,3 +109,4 @@ msgstr "Verwijder"
113
109
  msgid "Are you sure?"
114
110
  msgstr "Weet u dit zeker?"
115
111
 
112
+
@@ -9,20 +9,20 @@
9
9
  #, fuzzy
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: ruby-gettext-package 1.1.0\n"
13
- "POT-Creation-Date: 2001-12-24 01:30:54+0900\n"
12
+ "Project-Id-Version: gettext_plugin 1.1.0\n"
13
+ "POT-Creation-Date: 2006-01-11 00:45+0900\n"
14
14
  "PO-Revision-Date: 2005-12-19 21:44+0100\n"
15
15
  "Last-Translator: Menno Jonkers <ruby-gettext@jonkers.com>\n"
16
16
  "Language-Team: Dutch <ruby_gettext@jonkers.com>\n"
17
17
  "MIME-Version: 1.0\n"
18
- "Content-Type: text/plain; charset=utf-8\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
19
  "Content-Transfer-Encoding: 8bit\n"
20
20
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
21
21
 
22
- #: vendor/plugins/gettext/lib/gettext_plugin.rb:24
22
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:25
23
23
  msgid "Select locale"
24
24
  msgstr "Kies locale"
25
25
 
26
- #: vendor/plugins/gettext/lib/gettext_plugin.rb:33
26
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:37
27
27
  msgid "Cookie &quot;lang&quot; is set: %s"
28
28
  msgstr "Cookie &quot;lang&quot; is ingesteld: %s"
@@ -9,7 +9,7 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: blog 1.1.0\n"
12
- "POT-Creation-Date: 2005-12-23 01:29+0900\n"
12
+ "POT-Creation-Date: 2006-01-11 00:45+0900\n"
13
13
  "PO-Revision-Date: 2005-12-17 10:12-0300\n"
14
14
  "Last-Translator: Joao Pedrosa <joaopedrosa@gmail.com>\n"
15
15
  "Language-Team: Portuguese(Brazil)\n"
@@ -27,8 +27,8 @@ msgid "Old articles"
27
27
  msgstr "Artigos antigos"
28
28
 
29
29
  #: app/models/article.rb:-
30
- msgid "Article"
31
- msgstr "Artigo"
30
+ msgid "article"
31
+ msgstr "artigo"
32
32
 
33
33
  #: app/models/article.rb:-
34
34
  msgid "Article|Id"
@@ -46,11 +46,11 @@ msgstr "Descrição"
46
46
  msgid "Article|Lastupdate"
47
47
  msgstr "Última Atualização"
48
48
 
49
- #: app/controllers/blog_controller.rb:37
49
+ #: app/controllers/blog_controller.rb:33
50
50
  msgid "Article was successfully created."
51
51
  msgstr "Artigo criado com sucesso"
52
52
 
53
- #: app/controllers/blog_controller.rb:51
53
+ #: app/controllers/blog_controller.rb:47
54
54
  msgid "Article was successfully updated."
55
55
  msgstr "Artigo atualizado com sucesso"
56
56
 
@@ -9,7 +9,7 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: gettext_plugin 1.1.0\n"
12
- "POT-Creation-Date: 2005-12-23 01:29+0900\n"
12
+ "POT-Creation-Date: 2006-01-11 00:45+0900\n"
13
13
  "PO-Revision-Date: 2005-12-17 10:12-0300\n"
14
14
  "Last-Translator: Joao Pedrosa <joaopedrosa@gmail.com>\n"
15
15
  "Language-Team: Portuguese(Brazil)\n"
@@ -18,10 +18,10 @@ msgstr ""
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
20
 
21
- #: vendor/plugins/gettext/lib/gettext_plugin.rb:24
21
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:25
22
22
  msgid "Select locale"
23
23
  msgstr "Selecione o 'locale'"
24
24
 
25
- #: vendor/plugins/gettext/lib/gettext_plugin.rb:36
25
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:37
26
26
  msgid "Cookie &quot;lang&quot; is set: %s"
27
27
  msgstr "Cookie &quot;lang&quot; está configurado: %s"
@@ -11,6 +11,12 @@ class BlogControllerTest < Test::Unit::TestCase
11
11
  @controller = BlogController.new
12
12
  @request = ActionController::TestRequest.new
13
13
  @response = ActionController::TestResponse.new
14
+
15
+ article = Article.find(1)
16
+ article.update_attributes("title"=>"aaaaaaaaaa",
17
+ "lastupdate"=> Time.now,
18
+ "description"=>"aaaaaaaaaa")
19
+ article.save
14
20
  end
15
21
 
16
22
  def test_index
@@ -50,7 +56,10 @@ class BlogControllerTest < Test::Unit::TestCase
50
56
  def test_create
51
57
  num_articles = Article.count
52
58
 
53
- post :create, :article => {}
59
+ post :create, :article => {
60
+ "title"=>"aaaaaaaaaa",
61
+ "lastupdate"=> Time.now,
62
+ "description"=>"aaaaaaaaaa"}
54
63
 
55
64
  assert_response :redirect
56
65
  assert_redirected_to :action => 'list'
@@ -85,4 +94,5 @@ class BlogControllerTest < Test::Unit::TestCase
85
94
  Article.find(1)
86
95
  }
87
96
  end
97
+
88
98
  end
@@ -2,6 +2,7 @@ require 'test/unit'
2
2
  require 'gettext/parser/ruby'
3
3
  require 'gettext/parser/glade'
4
4
  require 'gettext/parser/erb'
5
+ require 'gettext/rgettext'
5
6
 
6
7
  class TestGetTextParser < Test::Unit::TestCase
7
8
  def test_ruby
@@ -80,4 +81,19 @@ class TestGetTextParser < Test::Unit::TestCase
80
81
  assert_equal(["ccc1\000ccc2", 'test_erb.rhtml:13'], ary[3])
81
82
  end
82
83
 
84
+ def test_rgettext_parse
85
+ GetText::ErbParser.init(:extnames => ['.rhtml', '.rxml'])
86
+ ary = GetText::RGetText.parse('test_erb.rhtml')
87
+ assert_equal(['aaa', 'test_erb.rhtml:8'], ary[0])
88
+ assert_equal(['aaa\n', 'test_erb.rhtml:11'], ary[1])
89
+ assert_equal(['bbb', 'test_erb.rhtml:12'], ary[2])
90
+ assert_equal(["ccc1\000ccc2", 'test_erb.rhtml:13'], ary[3])
91
+
92
+ ary = GetText::RGetText.parse('test_erb.rxml')
93
+ assert_equal(['aaa', 'test_erb.rxml:9'], ary[0])
94
+ assert_equal(['aaa\n', 'test_erb.rxml:12'], ary[1])
95
+ assert_equal(['bbb', 'test_erb.rxml:13'], ary[2])
96
+ assert_equal(["ccc1\000ccc2", 'test_erb.rxml:14'], ary[3])
97
+ end
98
+
83
99
  end
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <%
3
+ require 'gettext'
4
+ include GetText
5
+ bindtextdomain("helloerb", "locale")
6
+ %>
7
+ <html>
8
+ <head>
9
+ <title><%= _("aaa") %></title>
10
+ </head>
11
+ <body>
12
+ <h1><%= _("aaa\n") %></h1>
13
+ <p><%= N_("bbb") %></p>
14
+ <p><%= n_("ccc1", "ccc2", 1) %></p>
15
+ </body>
16
+ </html>
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: gettext
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2005-12-29 00:00:00 +09:00
6
+ version: 1.1.1
7
+ date: 2006-01-14 00:00:00 +09:00
8
8
  summary: Ruby-GetText-Package is Native Language Support Library and Tools which modeled after GNU gettext package.
9
9
  require_paths:
10
10
  - lib
@@ -55,6 +55,7 @@ files:
55
55
  - data/locale/es
56
56
  - data/locale/nl
57
57
  - data/locale/it
58
+ - data/locale/el
58
59
  - data/locale/fr
59
60
  - data/locale/de/LC_MESSAGES
60
61
  - data/locale/de/LC_MESSAGES/rails.mo
@@ -81,6 +82,9 @@ files:
81
82
  - data/locale/nl/LC_MESSAGES/rgettext.mo
82
83
  - data/locale/it/LC_MESSAGES
83
84
  - data/locale/it/LC_MESSAGES/rgettext.mo
85
+ - data/locale/el/LC_MESSAGES
86
+ - data/locale/el/LC_MESSAGES/rails.mo
87
+ - data/locale/el/LC_MESSAGES/rgettext.mo
84
88
  - data/locale/fr/LC_MESSAGES
85
89
  - data/locale/fr/LC_MESSAGES/rails.mo
86
90
  - data/locale/fr/LC_MESSAGES/rgettext.mo
@@ -148,6 +152,7 @@ files:
148
152
  - samples/rails/po/nl
149
153
  - samples/rails/po/gettext_plugin.pot
150
154
  - samples/rails/po/blog.pot
155
+ - samples/rails/po/el
151
156
  - samples/rails/po/en
152
157
  - samples/rails/po/fr
153
158
  - samples/rails/po/de/blog.po
@@ -164,6 +169,8 @@ files:
164
169
  - samples/rails/po/es/gettext_plugin.po
165
170
  - samples/rails/po/nl/blog.po
166
171
  - samples/rails/po/nl/gettext_plugin.po
172
+ - samples/rails/po/el/blog.po
173
+ - samples/rails/po/el/gettext_plugin.po
167
174
  - samples/rails/po/en/blog.po
168
175
  - samples/rails/po/fr/blog.po
169
176
  - samples/rails/po/fr/gettext_plugin.po
@@ -216,6 +223,7 @@ files:
216
223
  - samples/rails/locale/cs
217
224
  - samples/rails/locale/es
218
225
  - samples/rails/locale/nl
226
+ - samples/rails/locale/el
219
227
  - samples/rails/locale/en
220
228
  - samples/rails/locale/fr
221
229
  - samples/rails/locale/de/LC_MESSAGES
@@ -239,6 +247,9 @@ files:
239
247
  - samples/rails/locale/nl/LC_MESSAGES
240
248
  - samples/rails/locale/nl/LC_MESSAGES/blog.mo
241
249
  - samples/rails/locale/nl/LC_MESSAGES/gettext_plugin.mo
250
+ - samples/rails/locale/el/LC_MESSAGES
251
+ - samples/rails/locale/el/LC_MESSAGES/blog.mo
252
+ - samples/rails/locale/el/LC_MESSAGES/gettext_plugin.mo
242
253
  - samples/rails/locale/en/LC_MESSAGES
243
254
  - samples/rails/locale/en/LC_MESSAGES/blog.mo
244
255
  - samples/rails/locale/fr/LC_MESSAGES
@@ -274,6 +285,7 @@ files:
274
285
  - samples/cgi/po/main.pot
275
286
  - samples/cgi/po/nl
276
287
  - samples/cgi/po/it
288
+ - samples/cgi/po/el
277
289
  - samples/cgi/po/helloerb1.pot
278
290
  - samples/cgi/po/fr
279
291
  - samples/cgi/po/de/helloerb2.po
@@ -304,10 +316,15 @@ files:
304
316
  - samples/cgi/po/nl/main.po
305
317
  - samples/cgi/po/nl/helloerb1.po
306
318
  - samples/cgi/po/nl/hellolib.po
319
+ - samples/cgi/po/it/messages.mo
307
320
  - samples/cgi/po/it/helloerb2.po
308
321
  - samples/cgi/po/it/main.po
309
322
  - samples/cgi/po/it/helloerb1.po
310
323
  - samples/cgi/po/it/hellolib.po
324
+ - samples/cgi/po/el/helloerb2.po
325
+ - samples/cgi/po/el/main.po
326
+ - samples/cgi/po/el/helloerb1.po
327
+ - samples/cgi/po/el/hellolib.po
311
328
  - samples/cgi/po/fr/helloerb2.po
312
329
  - samples/cgi/po/fr/main.po
313
330
  - samples/cgi/po/fr/helloerb1.po
@@ -320,6 +337,7 @@ files:
320
337
  - samples/cgi/locale/es
321
338
  - samples/cgi/locale/nl
322
339
  - samples/cgi/locale/it
340
+ - samples/cgi/locale/el
323
341
  - samples/cgi/locale/fr
324
342
  - samples/cgi/locale/de/LC_MESSAGES
325
343
  - samples/cgi/locale/de/LC_MESSAGES/helloerb1.mo
@@ -361,6 +379,11 @@ files:
361
379
  - samples/cgi/locale/it/LC_MESSAGES/hellolib.mo
362
380
  - samples/cgi/locale/it/LC_MESSAGES/main.mo
363
381
  - samples/cgi/locale/it/LC_MESSAGES/helloerb2.mo
382
+ - samples/cgi/locale/el/LC_MESSAGES
383
+ - samples/cgi/locale/el/LC_MESSAGES/helloerb1.mo
384
+ - samples/cgi/locale/el/LC_MESSAGES/hellolib.mo
385
+ - samples/cgi/locale/el/LC_MESSAGES/main.mo
386
+ - samples/cgi/locale/el/LC_MESSAGES/helloerb2.mo
364
387
  - samples/cgi/locale/fr/LC_MESSAGES
365
388
  - samples/cgi/locale/fr/LC_MESSAGES/helloerb1.mo
366
389
  - samples/cgi/locale/fr/LC_MESSAGES/hellolib.mo
@@ -378,6 +401,7 @@ files:
378
401
  - samples/po/hellogtk.pot
379
402
  - samples/po/nl
380
403
  - samples/po/it
404
+ - samples/po/el
381
405
  - samples/po/hellotk.pot
382
406
  - samples/po/hello_noop.pot
383
407
  - samples/po/helloglade2.pot
@@ -446,6 +470,13 @@ files:
446
470
  - samples/po/it/hello_noop.po
447
471
  - samples/po/it/hello.po
448
472
  - samples/po/it/hello_plural.po
473
+ - samples/po/el/hellotk.po
474
+ - samples/po/el/hellogtk.po
475
+ - samples/po/el/hello2.po
476
+ - samples/po/el/helloglade2.po
477
+ - samples/po/el/hello_noop.po
478
+ - samples/po/el/hello.po
479
+ - samples/po/el/hello_plural.po
449
480
  - samples/po/fr/hellotk.po
450
481
  - samples/po/fr/hellogtk.po
451
482
  - samples/po/fr/hello2.po
@@ -462,6 +493,7 @@ files:
462
493
  - samples/locale/es
463
494
  - samples/locale/nl
464
495
  - samples/locale/it
496
+ - samples/locale/el
465
497
  - samples/locale/fr
466
498
  - samples/locale/de/LC_MESSAGES
467
499
  - samples/locale/de/LC_MESSAGES/helloglade2.mo
@@ -535,6 +567,14 @@ files:
535
567
  - samples/locale/it/LC_MESSAGES/hello_plural.mo
536
568
  - samples/locale/it/LC_MESSAGES/hello_noop.mo
537
569
  - samples/locale/it/LC_MESSAGES/hellogtk.mo
570
+ - samples/locale/el/LC_MESSAGES
571
+ - samples/locale/el/LC_MESSAGES/helloglade2.mo
572
+ - samples/locale/el/LC_MESSAGES/hello.mo
573
+ - samples/locale/el/LC_MESSAGES/hello2.mo
574
+ - samples/locale/el/LC_MESSAGES/hellotk.mo
575
+ - samples/locale/el/LC_MESSAGES/hello_plural.mo
576
+ - samples/locale/el/LC_MESSAGES/hello_noop.mo
577
+ - samples/locale/el/LC_MESSAGES/hellogtk.mo
538
578
  - samples/locale/fr/LC_MESSAGES
539
579
  - samples/locale/fr/LC_MESSAGES/helloglade2.mo
540
580
  - samples/locale/fr/LC_MESSAGES/hello.mo
@@ -558,6 +598,7 @@ files:
558
598
  - po/es
559
599
  - po/nl
560
600
  - po/it
601
+ - po/el
561
602
  - po/rails.pot
562
603
  - po/fr
563
604
  - po/de/rgettext.po
@@ -575,7 +616,10 @@ files:
575
616
  - po/es/rails.po
576
617
  - po/nl/rgettext.po
577
618
  - po/nl/rails.po
619
+ - po/it/messages.mo
578
620
  - po/it/rgettext.po
621
+ - po/el/rgettext.po
622
+ - po/el/rails.po
579
623
  - po/fr/rgettext.po
580
624
  - po/fr/rails.po
581
625
  - lib/gettext
@@ -619,6 +663,7 @@ files:
619
663
  - test/gettext_test_string.rb
620
664
  - test/po
621
665
  - test/test_rubyparser.rb
666
+ - test/test_erb.rxml
622
667
  - test/locale
623
668
  - test/gettext_test_cgi.rb
624
669
  - test/testlib4.rb