gettext 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (288) hide show
  1. data/ChangeLog +194 -0
  2. data/NEWS +49 -0
  3. data/README +28 -9
  4. data/Rakefile +54 -41
  5. data/bin/rgettext +2 -0
  6. data/bin/rmsgfmt +2 -0
  7. data/bin/rmsgmerge +24 -0
  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/es/LC_MESSAGES/rails.mo +0 -0
  13. data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
  14. data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
  15. data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
  16. data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
  17. data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
  18. data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
  19. data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
  20. data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
  21. data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
  22. data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
  23. data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
  24. data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
  25. data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
  26. data/lib/gettext.rb +17 -4
  27. data/lib/gettext/cgi.rb +34 -19
  28. data/lib/gettext/locale.rb +3 -13
  29. data/lib/gettext/locale_default.rb +2 -2
  30. data/lib/gettext/locale_win32.rb +27 -7
  31. data/lib/gettext/mo.rb +6 -1
  32. data/lib/gettext/parser/activerecord.rb +115 -0
  33. data/lib/gettext/parser/glade.rb +3 -1
  34. data/lib/gettext/parser/ruby.rb +56 -57
  35. data/lib/gettext/poparser.rb +297 -0
  36. data/lib/gettext/rails.rb +161 -3
  37. data/lib/gettext/rgettext.rb +19 -9
  38. data/lib/gettext/rmsgfmt.rb +7 -275
  39. data/lib/gettext/rmsgmerge.rb +381 -0
  40. data/lib/gettext/string.rb +26 -0
  41. data/lib/gettext/textdomain.rb +21 -18
  42. data/lib/gettext/utils.rb +55 -0
  43. data/lib/gettext/version.rb +1 -1
  44. data/po/cs/rails.po +83 -0
  45. data/po/cs/rgettext.po +104 -0
  46. data/po/de/rails.po +79 -0
  47. data/po/de/rgettext.po +72 -21
  48. data/po/es/rails.po +80 -0
  49. data/po/es/rgettext.po +75 -19
  50. data/po/fr/rails.po +81 -0
  51. data/po/fr/rgettext.po +75 -19
  52. data/po/it/rgettext.po +68 -17
  53. data/po/ja/rails.po +78 -0
  54. data/po/ja/rgettext.po +71 -20
  55. data/po/ko/rails.po +77 -0
  56. data/po/ko/rgettext.po +74 -22
  57. data/po/nl/rails.po +80 -0
  58. data/po/nl/rgettext.po +102 -0
  59. data/po/pt_BR/rails.po +79 -0
  60. data/po/pt_BR/rgettext.po +77 -24
  61. data/po/rails.pot +80 -0
  62. data/po/rgettext.pot +63 -13
  63. data/po/sv/rgettext.po +63 -15
  64. data/samples/cgi/cookie.cgi +5 -0
  65. data/samples/cgi/helloerb1.cgi +4 -0
  66. data/samples/cgi/helloerb2.cgi +5 -0
  67. data/samples/cgi/index.cgi +5 -0
  68. data/samples/cgi/locale/cs/LC_MESSAGES/helloerb1.mo +0 -0
  69. data/samples/cgi/locale/cs/LC_MESSAGES/helloerb2.mo +0 -0
  70. data/samples/cgi/locale/cs/LC_MESSAGES/hellolib.mo +0 -0
  71. data/samples/cgi/locale/cs/LC_MESSAGES/main.mo +0 -0
  72. data/samples/cgi/locale/fr/LC_MESSAGES/main.mo +0 -0
  73. data/samples/cgi/locale/ko/LC_MESSAGES/helloerb1.mo +0 -0
  74. data/samples/cgi/locale/ko/LC_MESSAGES/helloerb2.mo +0 -0
  75. data/samples/cgi/locale/ko/LC_MESSAGES/hellolib.mo +0 -0
  76. data/samples/cgi/locale/ko/LC_MESSAGES/main.mo +0 -0
  77. data/samples/cgi/locale/nl/LC_MESSAGES/helloerb1.mo +0 -0
  78. data/samples/cgi/locale/nl/LC_MESSAGES/helloerb2.mo +0 -0
  79. data/samples/cgi/locale/nl/LC_MESSAGES/hellolib.mo +0 -0
  80. data/samples/cgi/locale/nl/LC_MESSAGES/main.mo +0 -0
  81. data/samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb1.mo +0 -0
  82. data/samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb2.mo +0 -0
  83. data/samples/cgi/locale/pt_BR/LC_MESSAGES/hellolib.mo +0 -0
  84. data/samples/cgi/locale/pt_BR/LC_MESSAGES/main.mo +0 -0
  85. data/samples/cgi/po/cs/helloerb1.po +66 -0
  86. data/samples/cgi/po/cs/helloerb2.po +52 -0
  87. data/samples/cgi/po/cs/hellolib.po +25 -0
  88. data/samples/cgi/po/cs/main.po +78 -0
  89. data/samples/cgi/po/fr/main.po +8 -8
  90. data/samples/cgi/po/ko/helloerb1.po +2 -3
  91. data/samples/cgi/po/ko/helloerb2.po +1 -2
  92. data/samples/cgi/po/ko/hellolib.po +1 -2
  93. data/samples/cgi/po/ko/main.po +2 -3
  94. data/samples/cgi/po/nl/helloerb1.po +60 -0
  95. data/samples/cgi/po/nl/helloerb2.po +52 -0
  96. data/samples/cgi/po/nl/hellolib.po +24 -0
  97. data/samples/cgi/po/nl/main.po +76 -0
  98. data/samples/cgi/po/pt_BR/helloerb1.po +59 -0
  99. data/samples/cgi/po/pt_BR/helloerb2.po +51 -0
  100. data/samples/cgi/po/pt_BR/hellolib.po +22 -0
  101. data/samples/cgi/po/pt_BR/main.po +75 -0
  102. data/samples/locale/cs/LC_MESSAGES/hello.mo +0 -0
  103. data/samples/locale/cs/LC_MESSAGES/hello2.mo +0 -0
  104. data/samples/locale/cs/LC_MESSAGES/hello_noop.mo +0 -0
  105. data/samples/locale/cs/LC_MESSAGES/hello_plural.mo +0 -0
  106. data/samples/locale/cs/LC_MESSAGES/helloglade2.mo +0 -0
  107. data/samples/locale/cs/LC_MESSAGES/hellogtk.mo +0 -0
  108. data/samples/locale/cs/LC_MESSAGES/hellotk.mo +0 -0
  109. data/samples/locale/fr/LC_MESSAGES/helloglade2.mo +0 -0
  110. data/samples/locale/ko/LC_MESSAGES/hello.mo +0 -0
  111. data/samples/locale/ko/LC_MESSAGES/hello2.mo +0 -0
  112. data/samples/locale/ko/LC_MESSAGES/hello_noop.mo +0 -0
  113. data/samples/locale/ko/LC_MESSAGES/hello_plural.mo +0 -0
  114. data/samples/locale/ko/LC_MESSAGES/helloglade2.mo +0 -0
  115. data/samples/locale/ko/LC_MESSAGES/hellogtk.mo +0 -0
  116. data/samples/locale/ko/LC_MESSAGES/hellotk.mo +0 -0
  117. data/samples/locale/nl/LC_MESSAGES/hello.mo +0 -0
  118. data/samples/locale/nl/LC_MESSAGES/hello2.mo +0 -0
  119. data/samples/locale/nl/LC_MESSAGES/hello_noop.mo +0 -0
  120. data/samples/locale/nl/LC_MESSAGES/hello_plural.mo +0 -0
  121. data/samples/locale/nl/LC_MESSAGES/helloglade2.mo +0 -0
  122. data/samples/locale/nl/LC_MESSAGES/hellogtk.mo +0 -0
  123. data/samples/locale/nl/LC_MESSAGES/hellotk.mo +0 -0
  124. data/samples/locale/pt_BR/LC_MESSAGES/hello.mo +0 -0
  125. data/samples/locale/pt_BR/LC_MESSAGES/hello2.mo +0 -0
  126. data/samples/locale/pt_BR/LC_MESSAGES/hello_noop.mo +0 -0
  127. data/samples/locale/pt_BR/LC_MESSAGES/hello_plural.mo +0 -0
  128. data/samples/locale/pt_BR/LC_MESSAGES/helloglade2.mo +0 -0
  129. data/samples/locale/pt_BR/LC_MESSAGES/hellogtk.mo +0 -0
  130. data/samples/locale/pt_BR/LC_MESSAGES/hellotk.mo +0 -0
  131. data/samples/po/cs/hello.po +23 -0
  132. data/samples/po/cs/hello2.po +31 -0
  133. data/samples/po/cs/hello_noop.po +27 -0
  134. data/samples/po/cs/hello_plural.po +26 -0
  135. data/samples/po/cs/helloglade2.po +37 -0
  136. data/samples/po/cs/hellogtk.po +23 -0
  137. data/samples/po/cs/hellotk.po +23 -0
  138. data/samples/po/fr/helloglade2.po +2 -2
  139. data/samples/po/hello.pot +1 -0
  140. data/samples/po/hello2.pot +1 -0
  141. data/samples/po/hello_noop.pot +2 -1
  142. data/samples/po/hello_plural.pot +6 -2
  143. data/samples/po/helloglade2.pot +8 -3
  144. data/samples/po/hellotk.pot +4 -0
  145. data/samples/po/ko/hello.po +1 -2
  146. data/samples/po/ko/hello2.po +1 -2
  147. data/samples/po/ko/hello_noop.po +1 -2
  148. data/samples/po/ko/hello_plural.po +1 -2
  149. data/samples/po/ko/helloglade2.po +2 -2
  150. data/samples/po/ko/hellogtk.po +1 -2
  151. data/samples/po/ko/hellotk.po +1 -2
  152. data/samples/po/nl/hello.po +24 -0
  153. data/samples/po/nl/hello2.po +32 -0
  154. data/samples/po/nl/hello_noop.po +28 -0
  155. data/samples/po/nl/hello_plural.po +26 -0
  156. data/samples/po/nl/helloglade2.po +31 -0
  157. data/samples/po/nl/hellogtk.po +24 -0
  158. data/samples/po/nl/hellotk.po +24 -0
  159. data/samples/po/pt_BR/hello.po +6 -5
  160. data/samples/po/pt_BR/hello2.po +6 -5
  161. data/samples/po/pt_BR/hello_noop.po +6 -5
  162. data/samples/po/pt_BR/hello_plural.po +6 -6
  163. data/samples/po/pt_BR/helloglade2.po +6 -5
  164. data/samples/po/pt_BR/hellogtk.po +6 -5
  165. data/samples/po/pt_BR/hellotk.po +6 -5
  166. data/samples/rails/README +21 -15
  167. data/samples/rails/Rakefile +10 -1
  168. data/samples/rails/app/controllers/application.rb +10 -18
  169. data/samples/rails/app/controllers/blog_controller.rb +1 -5
  170. data/samples/rails/app/helpers/blog_helper.rb +1 -1
  171. data/samples/rails/app/models/article.rb +15 -0
  172. data/samples/rails/app/views/blog/_form.rhtml +2 -2
  173. data/samples/rails/config/boot.rb +17 -0
  174. data/samples/rails/config/database.yml +5 -3
  175. data/samples/rails/config/environment.rb +40 -75
  176. data/samples/rails/config/environments/development.rb +12 -7
  177. data/samples/rails/config/environments/production.rb +17 -6
  178. data/samples/rails/config/environments/test.rb +8 -6
  179. data/samples/rails/locale/cs/LC_MESSAGES/blog.mo +0 -0
  180. data/samples/rails/locale/cs/LC_MESSAGES/gettext_plugin.mo +0 -0
  181. data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
  182. data/samples/rails/locale/de/LC_MESSAGES/gettext_plugin.mo +0 -0
  183. data/samples/rails/locale/en/LC_MESSAGES/blog.mo +0 -0
  184. data/samples/rails/locale/es/LC_MESSAGES/blog.mo +0 -0
  185. data/samples/rails/locale/es/LC_MESSAGES/gettext_plugin.mo +0 -0
  186. data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
  187. data/samples/rails/locale/fr/LC_MESSAGES/{lang_helper.mo → gettext_plugin.mo} +0 -0
  188. data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
  189. data/samples/rails/locale/ja/LC_MESSAGES/{lang_helper.mo → gettext_plugin.mo} +0 -0
  190. data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
  191. data/samples/rails/locale/ko/LC_MESSAGES/gettext_plugin.mo +0 -0
  192. data/samples/rails/locale/nl/LC_MESSAGES/blog.mo +0 -0
  193. data/samples/rails/locale/nl/LC_MESSAGES/gettext_plugin.mo +0 -0
  194. data/samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
  195. data/samples/rails/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo +0 -0
  196. data/samples/rails/po/blog.pot +57 -37
  197. data/samples/rails/po/cs/blog.po +116 -0
  198. data/samples/rails/po/cs/gettext_plugin.po +29 -0
  199. data/samples/rails/po/de/blog.po +70 -51
  200. data/samples/rails/po/de/{lang_helper.po → gettext_plugin.po} +4 -5
  201. data/samples/rails/po/en/blog.po +111 -0
  202. data/samples/rails/po/es/blog.po +67 -47
  203. data/samples/rails/po/es/{lang_helper.po → gettext_plugin.po} +5 -5
  204. data/samples/rails/po/fr/blog.po +65 -45
  205. data/samples/rails/po/fr/{lang_helper.po → gettext_plugin.po} +4 -4
  206. data/samples/rails/po/{lang_helper.pot → gettext_plugin.pot} +4 -4
  207. data/samples/rails/po/ja/blog.po +64 -44
  208. data/samples/rails/po/ja/{lang_helper.po → gettext_plugin.po} +4 -4
  209. data/samples/rails/po/ko/blog.po +65 -46
  210. data/samples/rails/po/ko/{lang_helper.po → gettext_plugin.po} +5 -6
  211. data/samples/rails/po/nl/blog.po +115 -0
  212. data/samples/rails/po/nl/gettext_plugin.po +28 -0
  213. data/samples/rails/po/pt_BR/blog.po +109 -0
  214. data/samples/rails/po/pt_BR/gettext_plugin.po +27 -0
  215. data/samples/rails/public/images/rails.png +0 -0
  216. data/samples/rails/public/index.html +272 -71
  217. data/samples/rails/public/javascripts/controls.js +441 -166
  218. data/samples/rails/public/javascripts/dragdrop.js +261 -279
  219. data/samples/rails/public/javascripts/effects.js +657 -277
  220. data/samples/rails/public/javascripts/prototype.js +911 -223
  221. data/samples/rails/public/robots.txt +1 -0
  222. data/samples/rails/public/stylesheets/scaffold.css +1 -1
  223. data/samples/rails/script/about +3 -0
  224. data/samples/rails/script/breakpointer +3 -4
  225. data/samples/rails/script/console +3 -23
  226. data/samples/rails/script/destroy +3 -7
  227. data/samples/rails/script/generate +3 -7
  228. data/samples/rails/script/performance/benchmarker +3 -0
  229. data/samples/rails/script/performance/profiler +3 -0
  230. data/samples/rails/script/plugin +3 -0
  231. data/samples/rails/script/process/reaper +3 -0
  232. data/samples/rails/script/process/spawner +3 -0
  233. data/samples/rails/script/process/spinner +3 -0
  234. data/samples/rails/script/runner +3 -29
  235. data/samples/rails/script/server +3 -49
  236. data/samples/rails/vendor/plugins/gettext/init.rb +19 -0
  237. data/samples/rails/vendor/{lang_helper.rb → plugins/gettext/lib/gettext_plugin.rb} +15 -11
  238. data/src/poparser.ry +171 -0
  239. data/test/gettext_runner.rb +3 -1
  240. data/test/gettext_test.rb +56 -31
  241. data/test/gettext_test_cgi.rb +12 -0
  242. data/test/gettext_test_parser.rb +3 -0
  243. data/test/gettext_test_string.rb +14 -0
  244. data/test/locale/cr/LC_MESSAGES/plural.mo +0 -0
  245. data/test/locale/da/LC_MESSAGES/plural.mo +0 -0
  246. data/test/locale/da/LC_MESSAGES/plural_error.mo +0 -0
  247. data/test/locale/fr/LC_MESSAGES/plural.mo +0 -0
  248. data/test/locale/fr/LC_MESSAGES/plural_error.mo +0 -0
  249. data/test/locale/ir/LC_MESSAGES/plural.mo +0 -0
  250. data/test/locale/la/LC_MESSAGES/plural.mo +0 -0
  251. data/test/locale/li/LC_MESSAGES/plural.mo +0 -0
  252. data/test/locale/po/LC_MESSAGES/plural.mo +0 -0
  253. data/test/locale/sl/LC_MESSAGES/plural.mo +0 -0
  254. data/test/po/cr/plural.po +3 -3
  255. data/test/po/da/plural.po +2 -2
  256. data/test/po/da/plural_error.po +2 -1
  257. data/test/po/fr/plural.po +2 -2
  258. data/test/po/fr/plural_error.po +2 -1
  259. data/test/po/ir/plural.po +3 -3
  260. data/test/po/la/plural.po +3 -3
  261. data/test/po/li/plural.po +3 -3
  262. data/test/po/po/plural.po +3 -3
  263. data/test/po/sl/plural.po +4 -4
  264. data/test/test.sh +1 -0
  265. data/test/test_rubyparser.rb +20 -0
  266. metadata +678 -551
  267. data/README.ja +0 -115
  268. data/data/locale/de/LC_MESSAGES/rmsgfmt.mo +0 -0
  269. data/data/locale/es/LC_MESSAGES/rmsgfmt.mo +0 -0
  270. data/data/locale/fr/LC_MESSAGES/rmsgfmt.mo +0 -0
  271. data/data/locale/it/LC_MESSAGES/rmsgfmt.mo +0 -0
  272. data/data/locale/ja/LC_MESSAGES/rmsgfmt.mo +0 -0
  273. data/data/locale/ko/LC_MESSAGES/rmsgfmt.mo +0 -0
  274. data/data/locale/pt_BR/LC_MESSAGES/rmsgfmt.mo +0 -0
  275. data/data/locale/sv/LC_MESSAGES/rmsgfmt.mo +0 -0
  276. data/po/de/rmsgfmt.po +0 -45
  277. data/po/es/rmsgfmt.po +0 -43
  278. data/po/fr/rmsgfmt.po +0 -43
  279. data/po/it/rmsgfmt.po +0 -44
  280. data/po/ja/rmsgfmt.po +0 -43
  281. data/po/ko/rmsgfmt.po +0 -40
  282. data/po/pt_BR/rmsgfmt.po +0 -42
  283. data/po/rmsgfmt.pot +0 -40
  284. data/po/sv/rmsgfmt.po +0 -43
  285. data/samples/rails/locale/de/LC_MESSAGES/lang_helper.mo +0 -0
  286. data/samples/rails/locale/es/LC_MESSAGES/lang_helper.mo +0 -0
  287. data/samples/rails/locale/ko/LC_MESSAGES/lang_helper.mo +0 -0
  288. data/src/rmsgfmt.ry +0 -233
@@ -4,12 +4,11 @@
4
4
  #
5
5
  # This file is distributed under the same license as the Ruby-GetText-Package.
6
6
  #
7
- #, fuzzy
8
7
  msgid ""
9
8
  msgstr ""
10
9
  "Project-Id-Version: 1.0\n"
11
- "POT-Creation-Date: 2005-08-27 23:23+0900\n"
12
- "PO-Revision-Date: 2005-08-29 08:30+0900\n"
10
+ "POT-Creation-Date: 2005-12-17 13:59+0900\n"
11
+ "PO-Revision-Date: 2005-12-23 02:00+0900\n"
13
12
  "Last-Translator: Gyoung-Yoon Noh <nohmad@gmail.com>\n"
14
13
  "Language-Team: Korean <LL@li.org>\n"
15
14
  "MIME-Version: 1.0\n"
@@ -17,10 +16,10 @@ msgstr ""
17
16
  "Content-Transfer-Encoding: 8bit\n"
18
17
  "Plural-Forms: nplurals=1; plural=0;\n"
19
18
 
20
- #: vendor/lang_helper.rb:11
19
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:24
21
20
  msgid "Select locale"
22
21
  msgstr "로케일을 선택하세요"
23
22
 
24
- #: vendor/lang_helper.rb:19
23
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:33
25
24
  msgid "Cookie &quot;lang&quot; is set: %s"
26
- msgstr ""
25
+ msgstr "쿠키 언어가 %s로 설정되었습니다."
@@ -0,0 +1,115 @@
1
+ # GetText Sample Blog on RoR.
2
+ #
3
+ # Copyright (C) 2005 Masao Mutoh <mutoh@highway.ne.jp>
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Menno Jonkers <ruby-gettext@jonkers.com>, 2005.
8
+ #
9
+ #, fuzzy
10
+ msgid ""
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"
14
+ "PO-Revision-Date: 2005-12-19 21:44+0100\n"
15
+ "Last-Translator: Menno Jonkers <ruby-gettext@jonkers.com>\n"
16
+ "Language-Team: Dutch <ruby_gettext@jonkers.com>\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
+ #: app/helpers/blog_helper.rb:43
23
+ msgid "Ruby Links"
24
+ msgstr "Ruby links"
25
+
26
+ #: app/helpers/blog_helper.rb:51
27
+ msgid "Old articles"
28
+ msgstr "Oude artikelen"
29
+
30
+ #: app/models/article.rb:-
31
+ msgid "Article"
32
+ msgstr "Artikel"
33
+
34
+ #: app/models/article.rb:-
35
+ msgid "Article|Id"
36
+ msgstr "Id"
37
+
38
+ #: app/models/article.rb:-
39
+ msgid "Article|Title"
40
+ msgstr "Titel"
41
+
42
+ #: app/models/article.rb:-
43
+ msgid "Article|Description"
44
+ msgstr "Beschrijving"
45
+
46
+ #: app/models/article.rb:-
47
+ msgid "Article|Lastupdate"
48
+ msgstr "Laatste wijziging"
49
+
50
+ #: app/controllers/blog_controller.rb:37
51
+ msgid "Article was successfully created."
52
+ msgstr "Het artikel is aangemaakt."
53
+
54
+ #: app/controllers/blog_controller.rb:51
55
+ msgid "Article was successfully updated."
56
+ msgstr "Het artikel is gewijzigd."
57
+
58
+ #: app/views/blog/new.rhtml:13
59
+ #: app/views/blog/list.rhtml:15
60
+ msgid "New article"
61
+ msgstr "Nieuw artikel"
62
+
63
+ #: app/views/blog/new.rhtml:17
64
+ msgid "Create"
65
+ msgstr "Maak aan"
66
+
67
+ #: app/views/blog/new.rhtml:20
68
+ #: app/views/blog/edit.rhtml:21
69
+ #: app/views/blog/show.rhtml:17
70
+ msgid "Back"
71
+ msgstr "Terug"
72
+
73
+ #: app/views/blog/_form.rhtml:16
74
+ msgid "Lastupdate"
75
+ msgstr "Laatste wijziging"
76
+
77
+ #: app/views/blog/_form.rhtml:18
78
+ msgid "Title: Required."
79
+ msgstr "Titel: vereist."
80
+
81
+ #: app/views/blog/_form.rhtml:21
82
+ msgid "Description: More than 10 characters."
83
+ msgstr "Beschrijving: meer dan 10 tekens."
84
+
85
+ #: app/views/blog/list.rhtml:13
86
+ #: app/views/blog/show.rhtml:13
87
+ #: app/views/layouts/blog.rhtml:14
88
+ msgid "GetText Sample Blog on RoR"
89
+ msgstr "GetText voorbeeld-blog op RoR"
90
+
91
+ #: app/views/blog/list.rhtml:18
92
+ msgid "No articles were found."
93
+ msgstr "Geen artikelen gevonden."
94
+
95
+ #: app/views/blog/edit.rhtml:12
96
+ msgid "Editing article"
97
+ msgstr "Bewerken artikel"
98
+
99
+ #: app/views/blog/edit.rhtml:16
100
+ #: app/views/blog/show.rhtml:16
101
+ msgid "Edit"
102
+ msgstr "Bewerk"
103
+
104
+ #: app/views/blog/edit.rhtml:19
105
+ msgid "Show"
106
+ msgstr "Toon"
107
+
108
+ #: app/views/blog/edit.rhtml:20
109
+ msgid "Destroy"
110
+ msgstr "Verwijder"
111
+
112
+ #: app/views/blog/edit.rhtml:20
113
+ msgid "Are you sure?"
114
+ msgstr "Weet u dit zeker?"
115
+
@@ -0,0 +1,28 @@
1
+ # GetText Sample Blog on RoR.
2
+ #
3
+ # Copyright (C) 2005 Masao Mutoh <mutoh@highway.ne.jp>
4
+ #
5
+ # This file is distributed under the same license as the Ruby-GetText-Package.
6
+ #
7
+ # Menno Jonkers <ruby-gettext@jonkers.com>, 2005.
8
+ #
9
+ #, fuzzy
10
+ msgid ""
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"
14
+ "PO-Revision-Date: 2005-12-19 21:44+0100\n"
15
+ "Last-Translator: Menno Jonkers <ruby-gettext@jonkers.com>\n"
16
+ "Language-Team: Dutch <ruby_gettext@jonkers.com>\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
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:24
23
+ msgid "Select locale"
24
+ msgstr "Kies locale"
25
+
26
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:33
27
+ msgid "Cookie &quot;lang&quot; is set: %s"
28
+ msgstr "Cookie &quot;lang&quot; is ingesteld: %s"
@@ -0,0 +1,109 @@
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
+ # Joao Pedrosa <joaopedrosa@gmail.com>, 2005.
8
+ #
9
+ msgid ""
10
+ msgstr ""
11
+ "Project-Id-Version: blog 1.1.0\n"
12
+ "POT-Creation-Date: 2005-12-23 01:29+0900\n"
13
+ "PO-Revision-Date: 2005-12-17 10:12-0300\n"
14
+ "Last-Translator: Joao Pedrosa <joaopedrosa@gmail.com>\n"
15
+ "Language-Team: Portuguese(Brazil)\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
+ #: app/helpers/blog_helper.rb:43
22
+ msgid "Ruby Links"
23
+ msgstr "Links de Ruby"
24
+
25
+ #: app/helpers/blog_helper.rb:51
26
+ msgid "Old articles"
27
+ msgstr "Artigos antigos"
28
+
29
+ #: app/models/article.rb:-
30
+ msgid "Article"
31
+ msgstr "Artigo"
32
+
33
+ #: app/models/article.rb:-
34
+ msgid "Article|Id"
35
+ msgstr "Id"
36
+
37
+ #: app/models/article.rb:-
38
+ msgid "Article|Title"
39
+ msgstr "Título"
40
+
41
+ #: app/models/article.rb:-
42
+ msgid "Article|Description"
43
+ msgstr "Descrição"
44
+
45
+ #: app/models/article.rb:-
46
+ msgid "Article|Lastupdate"
47
+ msgstr "Última Atualização"
48
+
49
+ #: app/controllers/blog_controller.rb:37
50
+ msgid "Article was successfully created."
51
+ msgstr "Artigo criado com sucesso"
52
+
53
+ #: app/controllers/blog_controller.rb:51
54
+ msgid "Article was successfully updated."
55
+ msgstr "Artigo atualizado com sucesso"
56
+
57
+ #: app/views/blog/new.rhtml:13 app/views/blog/list.rhtml:15
58
+ msgid "New article"
59
+ msgstr "Novo artigo"
60
+
61
+ #: app/views/blog/new.rhtml:17
62
+ msgid "Create"
63
+ msgstr "Criar"
64
+
65
+ #: app/views/blog/new.rhtml:20 app/views/blog/edit.rhtml:21
66
+ #: app/views/blog/show.rhtml:17
67
+ msgid "Back"
68
+ msgstr "Voltar"
69
+
70
+ #: app/views/blog/_form.rhtml:16
71
+ msgid "Lastupdate"
72
+ msgstr "Última atualização"
73
+
74
+ #: app/views/blog/_form.rhtml:18
75
+ msgid "Title: Required."
76
+ msgstr "Título: Exigido."
77
+
78
+ #: app/views/blog/_form.rhtml:21
79
+ msgid "Description: More than 10 characters."
80
+ msgstr "Descrição: Mais que 10 caracteres."
81
+
82
+ #: app/views/blog/list.rhtml:13 app/views/blog/show.rhtml:13
83
+ #: app/views/layouts/blog.rhtml:14
84
+ msgid "GetText Sample Blog on RoR"
85
+ msgstr "Blog de Exemplo do GetText no RoR"
86
+
87
+ #: app/views/blog/list.rhtml:18
88
+ msgid "No articles were found."
89
+ msgstr "Nenhum artigo foi achado."
90
+
91
+ #: app/views/blog/edit.rhtml:12
92
+ msgid "Editing article"
93
+ msgstr "Editando artigo"
94
+
95
+ #: app/views/blog/edit.rhtml:16 app/views/blog/show.rhtml:16
96
+ msgid "Edit"
97
+ msgstr "Editar"
98
+
99
+ #: app/views/blog/edit.rhtml:19
100
+ msgid "Show"
101
+ msgstr "Mostrar"
102
+
103
+ #: app/views/blog/edit.rhtml:20
104
+ msgid "Destroy"
105
+ msgstr "Destruir"
106
+
107
+ #: app/views/blog/edit.rhtml:20
108
+ msgid "Are you sure?"
109
+ msgstr "Tem certeza?"
@@ -0,0 +1,27 @@
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
+ # Joao Pedrosa <joaopedrosa@gmail.com>, 2005.
8
+ #
9
+ msgid ""
10
+ msgstr ""
11
+ "Project-Id-Version: gettext_plugin 1.1.0\n"
12
+ "POT-Creation-Date: 2005-12-23 01:29+0900\n"
13
+ "PO-Revision-Date: 2005-12-17 10:12-0300\n"
14
+ "Last-Translator: Joao Pedrosa <joaopedrosa@gmail.com>\n"
15
+ "Language-Team: Portuguese(Brazil)\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
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:24
22
+ msgid "Select locale"
23
+ msgstr "Selecione o 'locale'"
24
+
25
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:36
26
+ msgid "Cookie &quot;lang&quot; is set: %s"
27
+ msgstr "Cookie &quot;lang&quot; está configurado: %s"
@@ -1,78 +1,279 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
- "http://www.w3.org/TR/html4/loose.dtd">
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
3
  <html>
4
- <head>
5
- <title>Rails: Welcome on board</title>
6
- <style>
7
- body { background-color: #fff; color: #333; }
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6
+ <title>Ruby on Rails: Welcome aboard</title>
7
+ <style type="text/css" media="screen">
8
+ body {
9
+ margin: 0;
10
+ margin-bottom: 25px;
11
+ padding: 0;
12
+ background-color: #f0f0f0;
13
+ font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
14
+ font-size: 13px;
15
+ color: #333;
16
+ }
17
+
18
+ h1 {
19
+ font-size: 28px;
20
+ color: #000;
21
+ }
22
+
23
+ a {color: #03c}
24
+ a:hover {
25
+ background-color: #03c;
26
+ color: white;
27
+ text-decoration: none;
28
+ }
29
+
30
+
31
+ #page {
32
+ background-color: #f0f0f0;
33
+ width: 750px;
34
+ margin: 0;
35
+ margin-left: auto;
36
+ margin-right: auto;
37
+ }
38
+
39
+ #content {
40
+ float: left;
41
+ background-color: white;
42
+ border: 3px solid #aaa;
43
+ border-top: none;
44
+ padding: 25px;
45
+ width: 500px;
46
+ }
47
+
48
+ #sidebar {
49
+ float: right;
50
+ width: 175px;
51
+ }
8
52
 
9
- body, p, ol, ul, td {
10
- font-family: verdana, arial, helvetica, sans-serif;
11
- font-size: 12px;
12
- line-height: 18px;
13
- }
53
+ #footer {
54
+ clear: both;
55
+ }
56
+
14
57
 
15
- li {
16
- margin-bottom: 7px;
17
- }
58
+ #header, #about, #getting-started {
59
+ padding-left: 75px;
60
+ padding-right: 30px;
61
+ }
18
62
 
19
- pre {
20
- background-color: #eee;
21
- padding: 10px;
22
- font-size: 11px;
23
- }
24
63
 
25
- a { color: #000; }
26
- a:visited { color: #666; }
27
- a:hover { color: #fff; background-color:#000; }
28
- </style>
29
- </head>
30
- <body>
64
+ #header {
65
+ background-image: url("images/rails.png");
66
+ background-repeat: no-repeat;
67
+ background-position: top left;
68
+ height: 64px;
69
+ }
70
+ #header h1, #header h2 {margin: 0}
71
+ #header h2 {
72
+ color: #888;
73
+ font-weight: normal;
74
+ font-size: 16px;
75
+ }
76
+
77
+
78
+ #about h3 {
79
+ margin: 0;
80
+ margin-bottom: 10px;
81
+ font-size: 14px;
82
+ }
83
+
84
+ #about-content {
85
+ background-color: #ffd;
86
+ border: 1px solid #fc0;
87
+ margin-left: -11px;
88
+ }
89
+ #about-content table {
90
+ margin-top: 10px;
91
+ margin-bottom: 10px;
92
+ font-size: 11px;
93
+ border-collapse: collapse;
94
+ }
95
+ #about-content td {
96
+ padding: 10px;
97
+ padding-top: 3px;
98
+ padding-bottom: 3px;
99
+ }
100
+ #about-content td.name {color: #555}
101
+ #about-content td.value {color: #000}
102
+
103
+ #about-content.failure {
104
+ background-color: #fcc;
105
+ border: 1px solid #f00;
106
+ }
107
+ #about-content.failure p {
108
+ margin: 0;
109
+ padding: 10px;
110
+ }
111
+
112
+
113
+ #getting-started {
114
+ border-top: 1px solid #ccc;
115
+ margin-top: 25px;
116
+ padding-top: 15px;
117
+ }
118
+ #getting-started h1 {
119
+ margin: 0;
120
+ font-size: 20px;
121
+ }
122
+ #getting-started h2 {
123
+ margin: 0;
124
+ font-size: 14px;
125
+ font-weight: normal;
126
+ color: #333;
127
+ margin-bottom: 25px;
128
+ }
129
+ #getting-started ol {
130
+ margin-left: 0;
131
+ padding-left: 0;
132
+ }
133
+ #getting-started li {
134
+ font-size: 18px;
135
+ color: #888;
136
+ margin-bottom: 25px;
137
+ }
138
+ #getting-started li h2 {
139
+ margin: 0;
140
+ font-weight: normal;
141
+ font-size: 18px;
142
+ color: #333;
143
+ }
144
+ #getting-started li p {
145
+ color: #555;
146
+ font-size: 13px;
147
+ }
148
+
149
+
150
+ #search {
151
+ margin: 0;
152
+ padding-top: 10px;
153
+ padding-bottom: 10px;
154
+ font-size: 11px;
155
+ }
156
+ #search input {
157
+ font-size: 11px;
158
+ margin: 2px;
159
+ }
160
+ #search-text {width: 170px}
161
+
162
+
163
+ #sidebar ul {
164
+ margin-left: 0;
165
+ padding-left: 0;
166
+ }
167
+ #sidebar ul h3 {
168
+ margin-top: 25px;
169
+ font-size: 16px;
170
+ padding-bottom: 10px;
171
+ border-bottom: 1px solid #ccc;
172
+ }
173
+ #sidebar li {
174
+ list-style-type: none;
175
+ }
176
+ #sidebar ul.links li {
177
+ margin-bottom: 5px;
178
+ }
179
+
180
+ </style>
181
+ <script type="text/javascript" src="javascripts/prototype.js"></script>
182
+ <script type="text/javascript" src="javascripts/effects.js"></script>
183
+ <script type="text/javascript">
184
+ function about() {
185
+ if (Element.empty('about-content')) {
186
+ new Ajax.Updater('about-content', 'rails_info/properties', {
187
+ method: 'get',
188
+ onFailure: function() {Element.classNames('about-content').add('failure')},
189
+ onComplete: function() {new Effect.BlindDown('about-content', {duration: 0.25})}
190
+ });
191
+ } else {
192
+ new Effect[Element.visible('about-content') ?
193
+ 'BlindUp' : 'BlindDown']('about-content', {duration: 0.25});
194
+ }
195
+ }
196
+
197
+ window.onload = function() {
198
+ $('search-text').value = '';
199
+ $('search').onsubmit = function() {
200
+ $('search-text').value = 'site:rubyonrails.com ' + $F('search-text');
201
+ }
202
+ }
203
+ </script>
204
+ </head>
205
+ <body>
206
+ <div id="page">
207
+ <div id="sidebar">
208
+ <ul id="sidebar-items">
209
+ <li>
210
+ <form id="search" action="http://www.google.com/search" method="get">
211
+ <input type="hidden" name="hl" value="en" />
212
+ <input type="text" id="search-text" name="q" value="site:rubyonrails.com " />
213
+ <input type="submit" value="Search" /> the Rails site
214
+ </form>
215
+ </li>
216
+
217
+ <li>
218
+ <h3>Join the community</h3>
219
+ <ul class="links">
220
+ <li><a href="http://www.rubyonrails.com/">Ruby on Rails</a></li>
221
+ <li><a href="http://weblog.rubyonrails.com/">Official weblog</a></li>
222
+ <li><a href="http://lists.rubyonrails.org/">Mailing lists</a></li>
223
+ <li><a href="http://wiki.rubyonrails.com/rails/pages/IRC">IRC channel</a></li>
224
+ <li><a href="http://wiki.rubyonrails.com/">Wiki</a></li>
225
+ <li><a href="http://dev.rubyonrails.com/">Bug tracker</a></li>
226
+ </ul>
227
+ </li>
228
+
229
+ <li>
230
+ <h3>Browse the documentation</h3>
231
+ <ul class="links">
232
+ <li><a href="http://manuals.rubyonrails.com/">Manuals</a></li>
233
+ <li><a href="http://api.rubyonrails.com/">All APIs</a></li>
234
+ <li><a href="http://ar.rubyonrails.com/">Active Record</a></li>
235
+ <li><a href="http://ap.rubyonrails.com/">Action Pack</a></li>
236
+ <li><a href="http://as.rubyonrails.com/">Active Support</a></li>
237
+ </ul>
238
+ </li>
239
+ </ul>
240
+ </div>
31
241
 
32
- <h1>Congratulations, you've put Ruby on Rails!</h1>
242
+ <div id="content">
243
+ <div id="header">
244
+ <h1>Welcome aboard</h2>
245
+ <h2>You&rsquo;re riding the Rails!</h2>
246
+ </div>
33
247
 
34
- <p><b>Before you move on</b>, verify that the following conditions have been met:</p>
35
-
36
- <ol>
37
- <li>The log and public directories must be writable to the web server (<code>chmod -R 775 log</code> and <code>chmod -R 775 public</code>).
38
- <li>
39
- The shebang line in the public/dispatch* files must reference your Ruby installation. <br/>
40
- You might need to change it to <code>#!/usr/bin/env ruby</code> or point directly at the installation.
41
- </li>
42
- <li>
43
- Rails on Apache needs to have the cgi handler and mod_rewrite enabled. <br/>
44
- Somewhere in your httpd.conf, you should have:<br/>
45
- <code>AddHandler cgi-script .cgi</code><br/>
46
- <code>LoadModule rewrite_module libexec/httpd/mod_rewrite.so</code><br/>
47
- <code>AddModule mod_rewrite.c</code>
48
- </li>
49
- </ol>
50
-
51
- <p>Take the following steps to get started:</p>
52
-
53
- <ol>
54
- <li>Create empty development and test databases for your application.<br/>
55
- <small>Recommendation: Use *_development and *_test names, such as basecamp_development and basecamp_test</small><br/>
56
- <small>Warning: Don't point your test database at your development database, it'll destroy the latter on test runs!</small>
57
- <li>Edit config/database.yml with your database settings.
58
- <li>Create controllers and models using the generator in <code>script/generate</code> <br/>
59
- <small>Help: Run the generator with no arguments for documentation</small>
60
- <li>See all the tests run by running <code>rake</code>.
61
- <li>Develop your Rails application!
62
- <li>Setup Apache with <a href="http://www.fastcgi.com">FastCGI</a> (and <a href="http://raa.ruby-lang.org/list.rhtml?name=fcgi">Ruby bindings</a>), if you need better performance
63
- <li>Remove the dispatches you don't use (so if you're on FastCGI, delete/move dispatch.rb, dispatch.cgi and gateway.cgi)</li>
64
- </ol>
65
-
66
- <p>
67
- Trying to setup a default page for Rails using Routes? You'll have to delete this file (public/index.html) to get under way. Then define a new route in <tt>config/routes.rb</tt> of the form:
68
- <pre> map.connect '', :controller => 'wiki/page', :action => 'show', :title => 'Welcome'</pre>
69
- </p>
70
-
71
- <p>
72
- Having problems getting up and running? First try debugging it yourself by looking at the log files. <br/>
73
- Then try the friendly Rails community <a href="http://www.rubyonrails.org">on the web</a> or <a href="http://www.rubyonrails.org/show/IRC">on IRC</a>
74
- (<a href="irc://irc.freenode.net/#rubyonrails">FreeNode#rubyonrails</a>).
75
- </p>
76
-
77
- </body>
78
- </html>
248
+ <div id="about">
249
+ <h3><a href="rails_info/properties" onclick="about(); return false">About your application&rsquo;s environment</a></h3>
250
+ <div id="about-content" style="display: none"></div>
251
+ </div>
252
+
253
+ <div id="getting-started">
254
+ <h1>Getting started</h1>
255
+ <h2>Here&rsquo;s how to get rolling:</h2>
256
+
257
+ <ol>
258
+ <li>
259
+ <h2>Create your databases and edit <tt>database.yml</tt></h2>
260
+ <p>Instructions here</p>
261
+ </li>
262
+
263
+ <li>
264
+ <h2>Use <tt>script/generate</tt> to create your models and controllers</h2>
265
+ <p>Instructions here</p>
266
+ </li>
267
+
268
+ <li>
269
+ <h2>Set up a default route and remove or rename this file</h2>
270
+ <p>Instructions here</p>
271
+ </li>
272
+ </ol>
273
+ </div>
274
+ </div>
275
+
276
+ <div id="footer">&nbsp;</div>
277
+ </div>
278
+ </body>
279
+ </html>