gettext_rails 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +55 -0
- data/ChangeLog +4 -0
- data/README.rdoc +173 -0
- data/Rakefile +113 -0
- data/data/locale/bg/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/bs/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/ca/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/cs/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/de/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/el/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/eo/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/es/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/et/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/hr/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/hu/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/it/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/ja/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/ko/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/lv/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/nb/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/nl/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/pt_BR/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/ru/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/sr/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/ua/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/vi/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/zh/LC_MESSAGES/gettext_rails.mo +0 -0
- data/data/locale/zh_TW/LC_MESSAGES/gettext_rails.mo +0 -0
- data/lib/gettext_rails.rb +33 -0
- data/lib/gettext_rails/action_controller.rb +104 -0
- data/lib/gettext_rails/action_mailer.rb +45 -0
- data/lib/gettext_rails/action_view.rb +16 -0
- data/lib/gettext_rails/action_view/active_record_helper.rb +109 -0
- data/lib/gettext_rails/action_view/date_helper.rb +48 -0
- data/lib/gettext_rails/action_view/form_builder.rb +26 -0
- data/lib/gettext_rails/tools.rb +22 -0
- data/lib/gettext_rails/version.rb +14 -0
- data/po/bg/gettext_rails.po +89 -0
- data/po/bs/gettext_rails.po +98 -0
- data/po/ca/gettext_rails.po +90 -0
- data/po/cs/gettext_rails.po +102 -0
- data/po/de/gettext_rails.po +94 -0
- data/po/el/gettext_rails.po +89 -0
- data/po/eo/gettext_rails.po +90 -0
- data/po/es/gettext_rails.po +90 -0
- data/po/et/gettext_rails.po +90 -0
- data/po/fr/gettext_rails.po +94 -0
- data/po/gettext_rails.pot +87 -0
- data/po/hr/gettext_rails.po +99 -0
- data/po/hu/gettext_rails.po +90 -0
- data/po/it/gettext_rails.po +89 -0
- data/po/ja/gettext_rails.po +90 -0
- data/po/ko/gettext_rails.po +87 -0
- data/po/lv/gettext_rails.po +95 -0
- data/po/nb/gettext_rails.po +91 -0
- data/po/nl/gettext_rails.po +91 -0
- data/po/pt_BR/gettext_rails.po +91 -0
- data/po/ru/gettext_rails.po +98 -0
- data/po/sr/gettext_rails.po +98 -0
- data/po/test.rb +11 -0
- data/po/ua/gettext_rails.po +104 -0
- data/po/vi/gettext_rails.po +90 -0
- data/po/zh/gettext_rails.po +86 -0
- data/po/zh_TW/gettext_rails.po +86 -0
- data/replace.rb +21 -0
- data/sample/README +80 -0
- data/sample/Rakefile +11 -0
- data/sample/app/controllers/application_controller.rb +37 -0
- data/sample/app/controllers/articles_controller.rb +97 -0
- data/sample/app/helpers/application_helper.rb +3 -0
- data/sample/app/helpers/articles_helper.rb +60 -0
- data/sample/app/models/article.rb +16 -0
- data/sample/app/views/articles/edit.html.erb +22 -0
- data/sample/app/views/articles/index.html.erb +18 -0
- data/sample/app/views/articles/new.html.erb +20 -0
- data/sample/app/views/articles/show.html.erb +7 -0
- data/sample/app/views/layouts/articles.html.erb +27 -0
- data/sample/config/boot.rb +109 -0
- data/sample/config/database.yml +22 -0
- data/sample/config/environment.rb +45 -0
- data/sample/config/environments/development.rb +17 -0
- data/sample/config/environments/production.rb +27 -0
- data/sample/config/environments/test.rb +27 -0
- data/sample/config/initializers/backtrace_silencers.rb +7 -0
- data/sample/config/initializers/inflections.rb +10 -0
- data/sample/config/initializers/mime_types.rb +5 -0
- data/sample/config/initializers/new_rails_defaults.rb +19 -0
- data/sample/config/initializers/session_store.rb +15 -0
- data/sample/config/routes.rb +45 -0
- data/sample/db/development.sqlite3 +0 -0
- data/sample/db/production.sqlite3 +0 -0
- data/sample/db/schema.rb +19 -0
- data/sample/db/test.sqlite3 +0 -0
- data/sample/doc/README_FOR_APP +2 -0
- data/sample/lib/tasks/gettext.rake +13 -0
- data/sample/locale/bg/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/bs/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/ca/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/cs/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/de/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/el/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/en/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/eo/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/es/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/fr/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/hr/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/hu/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/it/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/ja/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/ko/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/lv/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/nb/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/nl/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/ru/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/sr/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/ua/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/vi/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/zh/LC_MESSAGES/blog.mo +0 -0
- data/sample/locale/zh_TW/LC_MESSAGES/blog.mo +0 -0
- data/sample/log/development.log +635 -0
- data/sample/log/production.log +79475 -0
- data/sample/log/test.log +1592 -0
- data/sample/po/bg/blog.po +101 -0
- data/sample/po/blog.pot +102 -0
- data/sample/po/bs/blog.po +103 -0
- data/sample/po/ca/blog.po +101 -0
- data/sample/po/cs/blog.po +104 -0
- data/sample/po/de/blog.po +104 -0
- data/sample/po/el/blog.po +102 -0
- data/sample/po/en/blog.po +103 -0
- data/sample/po/eo/blog.po +102 -0
- data/sample/po/eo/tmp.patch +21 -0
- data/sample/po/es/blog.po +101 -0
- data/sample/po/fr/blog.po +102 -0
- data/sample/po/hr/blog.po +102 -0
- data/sample/po/hu/blog.po +101 -0
- data/sample/po/it/blog.po +102 -0
- data/sample/po/ja/blog.po +101 -0
- data/sample/po/ko/blog.po +102 -0
- data/sample/po/lv/blog.po +103 -0
- data/sample/po/nb/blog.po +102 -0
- data/sample/po/nl/blog.po +102 -0
- data/sample/po/pt_BR/blog.po +102 -0
- data/sample/po/ru/blog.po +102 -0
- data/sample/po/sr/blog.po +103 -0
- data/sample/po/ua/blog.po +105 -0
- data/sample/po/vi/blog.po +102 -0
- data/sample/po/zh/blog.po +101 -0
- data/sample/po/zh_TW/blog.po +103 -0
- data/sample/public/404.html +30 -0
- data/sample/public/422.html +30 -0
- data/sample/public/500.html +33 -0
- data/sample/public/favicon.ico +0 -0
- data/sample/public/images/rails.png +0 -0
- data/sample/public/index.html +275 -0
- data/sample/public/javascripts/application.js +2 -0
- data/sample/public/javascripts/controls.js +963 -0
- data/sample/public/javascripts/dragdrop.js +973 -0
- data/sample/public/javascripts/effects.js +1128 -0
- data/sample/public/javascripts/prototype.js +4320 -0
- data/sample/public/robots.txt +5 -0
- data/sample/public/stylesheets/blog.css +136 -0
- data/sample/public/stylesheets/scaffold.css +54 -0
- data/sample/script/about +4 -0
- data/sample/script/console +3 -0
- data/sample/script/dbconsole +3 -0
- data/sample/script/destroy +3 -0
- data/sample/script/generate +3 -0
- data/sample/script/performance/benchmarker +3 -0
- data/sample/script/performance/profiler +3 -0
- data/sample/script/plugin +3 -0
- data/sample/script/runner +3 -0
- data/sample/script/server +3 -0
- data/sample/test/fixtures/articles.yml +11 -0
- data/sample/test/functional/articles_controller_test.rb +45 -0
- data/sample/test/performance/browsing_test.rb +9 -0
- data/sample/test/result/en/list.html +69 -0
- data/sample/test/test_helper.rb +38 -0
- data/sample/test/unit/article_test.rb +8 -0
- data/sample/test/unit/helpers/articles_helper_test.rb +4 -0
- data/sample/vendor/plugins/lang_helper/README +17 -0
- data/sample/vendor/plugins/lang_helper/Rakefile +17 -0
- data/sample/vendor/plugins/lang_helper/init.rb +21 -0
- data/sample/vendor/plugins/lang_helper/lib/lang_helper.rb +32 -0
- data/sample/vendor/plugins/lang_helper/locale/bg/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/bs/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/ca/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/cs/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/de/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/el/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/eo/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/es/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/fr/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/hr/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/hu/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/it/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/ja/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/ko/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/lv/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/nb/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/nl/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/pt_BR/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/ru/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/sr/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/ua/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/vi/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/zh/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/locale/zh_TW/LC_MESSAGES/lang_helper.mo +0 -0
- data/sample/vendor/plugins/lang_helper/po/bg/lang_helper.po +27 -0
- data/sample/vendor/plugins/lang_helper/po/bs/lang_helper.po +27 -0
- data/sample/vendor/plugins/lang_helper/po/ca/lang_helper.po +27 -0
- data/sample/vendor/plugins/lang_helper/po/cs/lang_helper.po +29 -0
- data/sample/vendor/plugins/lang_helper/po/de/lang_helper.po +29 -0
- data/sample/vendor/plugins/lang_helper/po/el/lang_helper.po +27 -0
- data/sample/vendor/plugins/lang_helper/po/eo/lang_helper.po +28 -0
- data/sample/vendor/plugins/lang_helper/po/es/lang_helper.po +28 -0
- data/sample/vendor/plugins/lang_helper/po/fr/lang_helper.po +27 -0
- data/sample/vendor/plugins/lang_helper/po/hr/lang_helper.po +27 -0
- data/sample/vendor/plugins/lang_helper/po/hu/lang_helper.po +27 -0
- data/sample/vendor/plugins/lang_helper/po/it/lang_helper.po +27 -0
- data/sample/vendor/plugins/lang_helper/po/ja/lang_helper.po +28 -0
- data/sample/vendor/plugins/lang_helper/po/ko/lang_helper.po +27 -0
- data/sample/vendor/plugins/lang_helper/po/lang_helper.pot +28 -0
- data/sample/vendor/plugins/lang_helper/po/lv/lang_helper.po +28 -0
- data/sample/vendor/plugins/lang_helper/po/nb/lang_helper.po +29 -0
- data/sample/vendor/plugins/lang_helper/po/nl/lang_helper.po +28 -0
- data/sample/vendor/plugins/lang_helper/po/pt_BR/lang_helper.po +27 -0
- data/sample/vendor/plugins/lang_helper/po/ru/lang_helper.po +25 -0
- data/sample/vendor/plugins/lang_helper/po/sr/lang_helper.po +28 -0
- data/sample/vendor/plugins/lang_helper/po/ua/lang_helper.po +30 -0
- data/sample/vendor/plugins/lang_helper/po/vi/lang_helper.po +27 -0
- data/sample/vendor/plugins/lang_helper/po/zh/lang_helper.po +27 -0
- data/sample/vendor/plugins/lang_helper/po/zh_TW/lang_helper.po +29 -0
- data/test/README +6 -0
- data/test/Rakefile +27 -0
- data/test/app/controllers/application_controller.rb +18 -0
- data/test/app/controllers/articles_controller.rb +114 -0
- data/test/app/controllers/mailers_controller.rb +18 -0
- data/test/app/controllers/users_controller.rb +19 -0
- data/test/app/helpers/application_helper.rb +3 -0
- data/test/app/helpers/articles_helper.rb +2 -0
- data/test/app/models/article.rb +9 -0
- data/test/app/models/human_resources/resume.rb +3 -0
- data/test/app/models/mailer.rb +38 -0
- data/test/app/models/user.rb +4 -0
- data/test/app/models/user_observer.rb +7 -0
- data/test/app/views/articles/_form.html.erb +13 -0
- data/test/app/views/articles/_form_fr.html.erb +1 -0
- data/test/app/views/articles/active_form_error.html.erb +1 -0
- data/test/app/views/articles/change_title_error_messages_for.html.erb +15 -0
- data/test/app/views/articles/edit.html.erb +9 -0
- data/test/app/views/articles/list.html.erb +25 -0
- data/test/app/views/articles/list_fr.html.erb +1 -0
- data/test/app/views/articles/multi_error_messages_for.html.erb +19 -0
- data/test/app/views/articles/new.html.erb +8 -0
- data/test/app/views/articles/show.html.erb +9 -0
- data/test/app/views/layouts/application.html.erb +16 -0
- data/test/app/views/layouts/mailers.html.erb +20 -0
- data/test/app/views/layouts/users.html.erb +14 -0
- data/test/app/views/mailer/coverpage.html.erb +6 -0
- data/test/app/views/mailer/coverpage_fr.html.erb +6 -0
- data/test/app/views/mailer/index.html.erb +1 -0
- data/test/app/views/mailer/singlepart.html.erb +3 -0
- data/test/app/views/mailer/singlepart_fr.html.erb +3 -0
- data/test/app/views/users/custom_error_message.html.erb +13 -0
- data/test/app/views/users/custom_error_message_fr.html.erb +13 -0
- data/test/app/views/users/distance_of_time_in_words.html.erb +18 -0
- data/test/config/boot.rb +109 -0
- data/test/config/database.yml +22 -0
- data/test/config/environment.rb +45 -0
- data/test/config/environments/development.rb +17 -0
- data/test/config/environments/production.rb +27 -0
- data/test/config/environments/test.rb +27 -0
- data/test/config/initializers/backtrace_silencers.rb +7 -0
- data/test/config/initializers/inflections.rb +10 -0
- data/test/config/initializers/mime_types.rb +5 -0
- data/test/config/initializers/new_rails_defaults.rb +19 -0
- data/test/config/initializers/session_store.rb +15 -0
- data/test/config/routes.rb +13 -0
- data/test/db/development.sqlite3 +0 -0
- data/test/db/schema.rb +45 -0
- data/test/db/test.sqlite3 +0 -0
- data/test/doc/README_FOR_APP +2 -0
- data/test/locale/ja/LC_MESSAGES/rails_test.mo +0 -0
- data/test/log/development.log +1284 -0
- data/test/log/test.log +5595 -0
- data/test/po/ja/rails_test.po +206 -0
- data/test/po/rails_test.pot +206 -0
- data/test/public/404.html +30 -0
- data/test/public/422.html +30 -0
- data/test/public/500.html +33 -0
- data/test/public/favicon.ico +0 -0
- data/test/public/images/rails.png +0 -0
- data/test/public/index.html +28 -0
- data/test/public/javascripts/application.js +2 -0
- data/test/public/javascripts/controls.js +963 -0
- data/test/public/javascripts/dragdrop.js +973 -0
- data/test/public/javascripts/effects.js +1128 -0
- data/test/public/javascripts/prototype.js +4320 -0
- data/test/public/robots.txt +5 -0
- data/test/public/stylesheets/blog.css +136 -0
- data/test/public/stylesheets/scaffold.css +54 -0
- data/test/script/about +4 -0
- data/test/script/console +3 -0
- data/test/script/dbconsole +3 -0
- data/test/script/destroy +3 -0
- data/test/script/generate +3 -0
- data/test/script/performance/benchmarker +3 -0
- data/test/script/performance/profiler +3 -0
- data/test/script/plugin +3 -0
- data/test/script/runner +3 -0
- data/test/script/server +3 -0
- data/test/test/fixtures/articles.yml +13 -0
- data/test/test/functional/articles_controller_test.rb +97 -0
- data/test/test/functional/mailers_controller_test.rb +54 -0
- data/test/test/functional/users_controller_test.rb +47 -0
- data/test/test/performance/browsing_test.rb +9 -0
- data/test/test/result/en/change_title_error_messages_for.html +89 -0
- data/test/test/result/en/create_error.html +97 -0
- data/test/test/result/en/custom_error_message.html +84 -0
- data/test/test/result/en/custom_error_message_with_plural.html +84 -0
- data/test/test/result/en/distance_of_time_in_words.html +32 -0
- data/test/test/result/en/list.html +62 -0
- data/test/test/result/en/multi_error_messages_for.html +155 -0
- data/test/test/result/en/multipart.html +175 -0
- data/test/test/result/en/new.html +97 -0
- data/test/test/result/en/show.html +33 -0
- data/test/test/result/en/singlepart.html +10 -0
- data/test/test/result/fr/custom_error_message.html +84 -0
- data/test/test/result/fr/custom_error_message_with_plural.html +84 -0
- data/test/test/result/fr/distance_of_time_in_words.html +32 -0
- data/test/test/result/fr/list.html +17 -0
- data/test/test/result/fr/multipart.html +175 -0
- data/test/test/result/fr/new.html +25 -0
- data/test/test/result/fr/singlepart.html +10 -0
- data/test/test/result/ja/change_title_error_messages_for.html +89 -0
- data/test/test/result/ja/create_error.html +97 -0
- data/test/test/result/ja/custom_error_message.html +84 -0
- data/test/test/result/ja/custom_error_message_with_plural.html +84 -0
- data/test/test/result/ja/distance_of_time_in_words.html +32 -0
- data/test/test/result/ja/list.html +62 -0
- data/test/test/result/ja/multi_error_messages_for.html +155 -0
- data/test/test/result/ja/multipart.html +175 -0
- data/test/test/result/ja/new.html +97 -0
- data/test/test/result/ja/show.html +33 -0
- data/test/test/result/ja/singlepart.html +10 -0
- data/test/test/test_helper.rb +83 -0
- data/test/test/unit/article_test.rb +8 -0
- data/test/test/unit/helpers/articles_helper_test.rb +4 -0
- metadata +754 -0
@@ -0,0 +1,89 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
4
|
+
<title>Ruby-GetText-Package Test Application</title>
|
5
|
+
<link href="/stylesheets/scaffold.css" media="screen" rel="Stylesheet" type="text/css" />
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
|
9
|
+
<p style="color: green"></p>
|
10
|
+
|
11
|
+
<div class="errorExplanation" id="errorExplanation"><h2>Message Titles</h2><p>Message Explanations</p><ul><li>Title can't be blank</li><li>Description is too short (minimum is 3 characters)</li></ul></div>
|
12
|
+
|
13
|
+
<!--[form:article]-->
|
14
|
+
<p><label for="article_title">Title</label><br/>
|
15
|
+
<div class="fieldWithErrors"><input id="article_title" name="article[title]" size="30" type="text" value="" /></div></p>
|
16
|
+
|
17
|
+
<p><label for="article_description">Description</label><br/>
|
18
|
+
<div class="fieldWithErrors"><textarea cols="40" id="article_description" name="article[description]" rows="20"></textarea></div></p>
|
19
|
+
|
20
|
+
<p><label for="article_lastupdate">Lastupdate</label><br/>
|
21
|
+
<select id="article_lastupdate_1i" name="article[lastupdate(1i)]">
|
22
|
+
<option value="2002">2002</option>
|
23
|
+
<option value="2003">2003</option>
|
24
|
+
<option value="2004">2004</option>
|
25
|
+
<option value="2005">2005</option>
|
26
|
+
<option value="2006">2006</option>
|
27
|
+
<option selected="selected" value="2007">2007</option>
|
28
|
+
<option value="2008">2008</option>
|
29
|
+
<option value="2009">2009</option>
|
30
|
+
<option value="2010">2010</option>
|
31
|
+
<option value="2011">2011</option>
|
32
|
+
<option value="2012">2012</option>
|
33
|
+
</select>
|
34
|
+
<select id="article_lastupdate_2i" name="article[lastupdate(2i)]">
|
35
|
+
<option value="1">January</option>
|
36
|
+
<option value="2">February</option>
|
37
|
+
<option value="3">March</option>
|
38
|
+
<option selected="selected" value="4">April</option>
|
39
|
+
<option value="5">May</option>
|
40
|
+
<option value="6">June</option>
|
41
|
+
<option value="7">July</option>
|
42
|
+
<option value="8">August</option>
|
43
|
+
<option value="9">September</option>
|
44
|
+
<option value="10">October</option>
|
45
|
+
<option value="11">November</option>
|
46
|
+
<option value="12">December</option>
|
47
|
+
</select>
|
48
|
+
<select id="article_lastupdate_3i" name="article[lastupdate(3i)]">
|
49
|
+
<option selected="selected" value="1">1</option>
|
50
|
+
<option value="2">2</option>
|
51
|
+
<option value="3">3</option>
|
52
|
+
<option value="4">4</option>
|
53
|
+
<option value="5">5</option>
|
54
|
+
<option value="6">6</option>
|
55
|
+
<option value="7">7</option>
|
56
|
+
<option value="8">8</option>
|
57
|
+
<option value="9">9</option>
|
58
|
+
<option value="10">10</option>
|
59
|
+
<option value="11">11</option>
|
60
|
+
<option value="12">12</option>
|
61
|
+
<option value="13">13</option>
|
62
|
+
<option value="14">14</option>
|
63
|
+
<option value="15">15</option>
|
64
|
+
<option value="16">16</option>
|
65
|
+
<option value="17">17</option>
|
66
|
+
<option value="18">18</option>
|
67
|
+
<option value="19">19</option>
|
68
|
+
<option value="20">20</option>
|
69
|
+
<option value="21">21</option>
|
70
|
+
<option value="22">22</option>
|
71
|
+
<option value="23">23</option>
|
72
|
+
<option value="24">24</option>
|
73
|
+
<option value="25">25</option>
|
74
|
+
<option value="26">26</option>
|
75
|
+
<option value="27">27</option>
|
76
|
+
<option value="28">28</option>
|
77
|
+
<option value="29">29</option>
|
78
|
+
<option value="30">30</option>
|
79
|
+
<option value="31">31</option>
|
80
|
+
</select>
|
81
|
+
</p>
|
82
|
+
<!--[eoform:article]-->
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
<br/>
|
87
|
+
<a href="/">Back to Top</a>
|
88
|
+
</body>
|
89
|
+
</html>
|
@@ -0,0 +1,97 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
4
|
+
<title>Ruby-GetText-Package Test Application</title>
|
5
|
+
<link href="/stylesheets/scaffold.css" media="screen" rel="Stylesheet" type="text/css" />
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
|
9
|
+
<p style="color: green"></p>
|
10
|
+
|
11
|
+
<h1>New article</h1>
|
12
|
+
|
13
|
+
<form action="/articles" method="post">
|
14
|
+
<div class="errorExplanation" id="errorExplanation"><h2>2 errors prohibited this article from being saved</h2><p>There were problems with the following fields:</p><ul><li>Title can't be blank</li><li>Description is too short (minimum is 3 characters)</li></ul></div>
|
15
|
+
|
16
|
+
<!--[form:article]-->
|
17
|
+
<p><label for="article_title">Title</label><br/>
|
18
|
+
<div class="fieldWithErrors"><input id="article_title" name="article[title]" size="30" type="text" value="" /></div></p>
|
19
|
+
|
20
|
+
<p><label for="article_description">Description</label><br/>
|
21
|
+
<div class="fieldWithErrors"><textarea cols="40" id="article_description" name="article[description]" rows="20"></textarea></div></p>
|
22
|
+
|
23
|
+
<p><label for="article_lastupdate">Lastupdate</label><br/>
|
24
|
+
<select id="article_lastupdate_1i" name="article[lastupdate(1i)]">
|
25
|
+
<option value="2002">2002</option>
|
26
|
+
<option value="2003">2003</option>
|
27
|
+
<option value="2004">2004</option>
|
28
|
+
<option value="2005">2005</option>
|
29
|
+
<option value="2006">2006</option>
|
30
|
+
<option selected="selected" value="2007">2007</option>
|
31
|
+
<option value="2008">2008</option>
|
32
|
+
<option value="2009">2009</option>
|
33
|
+
<option value="2010">2010</option>
|
34
|
+
<option value="2011">2011</option>
|
35
|
+
<option value="2012">2012</option>
|
36
|
+
</select>
|
37
|
+
<select id="article_lastupdate_2i" name="article[lastupdate(2i)]">
|
38
|
+
<option value="1">January</option>
|
39
|
+
<option value="2">February</option>
|
40
|
+
<option value="3">March</option>
|
41
|
+
<option selected="selected" value="4">April</option>
|
42
|
+
<option value="5">May</option>
|
43
|
+
<option value="6">June</option>
|
44
|
+
<option value="7">July</option>
|
45
|
+
<option value="8">August</option>
|
46
|
+
<option value="9">September</option>
|
47
|
+
<option value="10">October</option>
|
48
|
+
<option value="11">November</option>
|
49
|
+
<option value="12">December</option>
|
50
|
+
</select>
|
51
|
+
<select id="article_lastupdate_3i" name="article[lastupdate(3i)]">
|
52
|
+
<option selected="selected" value="1">1</option>
|
53
|
+
<option value="2">2</option>
|
54
|
+
<option value="3">3</option>
|
55
|
+
<option value="4">4</option>
|
56
|
+
<option value="5">5</option>
|
57
|
+
<option value="6">6</option>
|
58
|
+
<option value="7">7</option>
|
59
|
+
<option value="8">8</option>
|
60
|
+
<option value="9">9</option>
|
61
|
+
<option value="10">10</option>
|
62
|
+
<option value="11">11</option>
|
63
|
+
<option value="12">12</option>
|
64
|
+
<option value="13">13</option>
|
65
|
+
<option value="14">14</option>
|
66
|
+
<option value="15">15</option>
|
67
|
+
<option value="16">16</option>
|
68
|
+
<option value="17">17</option>
|
69
|
+
<option value="18">18</option>
|
70
|
+
<option value="19">19</option>
|
71
|
+
<option value="20">20</option>
|
72
|
+
<option value="21">21</option>
|
73
|
+
<option value="22">22</option>
|
74
|
+
<option value="23">23</option>
|
75
|
+
<option value="24">24</option>
|
76
|
+
<option value="25">25</option>
|
77
|
+
<option value="26">26</option>
|
78
|
+
<option value="27">27</option>
|
79
|
+
<option value="28">28</option>
|
80
|
+
<option value="29">29</option>
|
81
|
+
<option value="30">30</option>
|
82
|
+
<option value="31">31</option>
|
83
|
+
</select>
|
84
|
+
</p>
|
85
|
+
<!--[eoform:article]-->
|
86
|
+
|
87
|
+
|
88
|
+
<input name="commit" type="submit" value="Create" />
|
89
|
+
</form>
|
90
|
+
|
91
|
+
<a href="/articles">Back</a>
|
92
|
+
|
93
|
+
|
94
|
+
<br/>
|
95
|
+
<a href="/">Back to Top</a>
|
96
|
+
</body>
|
97
|
+
</html>
|
@@ -0,0 +1,84 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
4
|
+
<title>Ruby-GetText-Package Test Application</title>
|
5
|
+
<link href="/stylesheets/scaffold.css" media="screen" rel="Stylesheet" type="text/css" />
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<p style="color: green"></p>
|
9
|
+
|
10
|
+
<div class="errorExplanation" id="errorExplanation"><h2>Singular Custom Error message user: 1</h2><p>Singular Custom Error explanation 1</p><ul><li>Name is too short (minimum is 10 characters)</li></ul></div>
|
11
|
+
|
12
|
+
<!--[form:article]-->
|
13
|
+
<p><label for="user_name">Name</label><br/>
|
14
|
+
<div class="fieldWithErrors"><input id="user_name" name="user[name]" size="30" type="text" value="foo" /></div></p>
|
15
|
+
|
16
|
+
<p><label for="user_lastupdate">Lastupdate</label><br/>
|
17
|
+
<select id="user_lastupdate_1i" name="user[lastupdate(1i)]">
|
18
|
+
<option value="2002">2002</option>
|
19
|
+
<option value="2003">2003</option>
|
20
|
+
<option value="2004">2004</option>
|
21
|
+
<option value="2005">2005</option>
|
22
|
+
<option value="2006">2006</option>
|
23
|
+
<option selected="selected" value="2007">2007</option>
|
24
|
+
<option value="2008">2008</option>
|
25
|
+
<option value="2009">2009</option>
|
26
|
+
<option value="2010">2010</option>
|
27
|
+
<option value="2011">2011</option>
|
28
|
+
<option value="2012">2012</option>
|
29
|
+
</select>
|
30
|
+
<select id="user_lastupdate_2i" name="user[lastupdate(2i)]">
|
31
|
+
<option selected="selected" value="1">January</option>
|
32
|
+
<option value="2">February</option>
|
33
|
+
<option value="3">March</option>
|
34
|
+
<option value="4">April</option>
|
35
|
+
<option value="5">May</option>
|
36
|
+
<option value="6">June</option>
|
37
|
+
<option value="7">July</option>
|
38
|
+
<option value="8">August</option>
|
39
|
+
<option value="9">September</option>
|
40
|
+
<option value="10">October</option>
|
41
|
+
<option value="11">November</option>
|
42
|
+
<option value="12">December</option>
|
43
|
+
</select>
|
44
|
+
<select id="user_lastupdate_3i" name="user[lastupdate(3i)]">
|
45
|
+
<option selected="selected" value="1">1</option>
|
46
|
+
<option value="2">2</option>
|
47
|
+
<option value="3">3</option>
|
48
|
+
<option value="4">4</option>
|
49
|
+
<option value="5">5</option>
|
50
|
+
<option value="6">6</option>
|
51
|
+
<option value="7">7</option>
|
52
|
+
<option value="8">8</option>
|
53
|
+
<option value="9">9</option>
|
54
|
+
<option value="10">10</option>
|
55
|
+
<option value="11">11</option>
|
56
|
+
<option value="12">12</option>
|
57
|
+
<option value="13">13</option>
|
58
|
+
<option value="14">14</option>
|
59
|
+
<option value="15">15</option>
|
60
|
+
<option value="16">16</option>
|
61
|
+
<option value="17">17</option>
|
62
|
+
<option value="18">18</option>
|
63
|
+
<option value="19">19</option>
|
64
|
+
<option value="20">20</option>
|
65
|
+
<option value="21">21</option>
|
66
|
+
<option value="22">22</option>
|
67
|
+
<option value="23">23</option>
|
68
|
+
<option value="24">24</option>
|
69
|
+
<option value="25">25</option>
|
70
|
+
<option value="26">26</option>
|
71
|
+
<option value="27">27</option>
|
72
|
+
<option value="28">28</option>
|
73
|
+
<option value="29">29</option>
|
74
|
+
<option value="30">30</option>
|
75
|
+
<option value="31">31</option>
|
76
|
+
</select>
|
77
|
+
</p>
|
78
|
+
<!--[eoform:article]-->
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
<a href="/">Back to Top</a>
|
83
|
+
</body>
|
84
|
+
</html>
|
@@ -0,0 +1,84 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
4
|
+
<title>Ruby-GetText-Package Test Application</title>
|
5
|
+
<link href="/stylesheets/scaffold.css" media="screen" rel="Stylesheet" type="text/css" />
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<p style="color: green"></p>
|
9
|
+
|
10
|
+
<div class="errorExplanation" id="errorExplanation"><h2>Plural Custom Error message user: 2</h2><p>Plural Custom Error explanation 2</p><ul><li>Name is too short (minimum is 10 characters)</li><li>Lastupdate can't be blank</li></ul></div>
|
11
|
+
|
12
|
+
<!--[form:article]-->
|
13
|
+
<p><label for="user_name">Name</label><br/>
|
14
|
+
<div class="fieldWithErrors"><input id="user_name" name="user[name]" size="30" type="text" value="foo" /></div></p>
|
15
|
+
|
16
|
+
<p><label for="user_lastupdate">Lastupdate</label><br/>
|
17
|
+
<div class="fieldWithErrors"><select id="user_lastupdate_1i" name="user[lastupdate(1i)]">
|
18
|
+
<option value="2002">2002</option>
|
19
|
+
<option value="2003">2003</option>
|
20
|
+
<option value="2004">2004</option>
|
21
|
+
<option value="2005">2005</option>
|
22
|
+
<option value="2006">2006</option>
|
23
|
+
<option selected="selected" value="2007">2007</option>
|
24
|
+
<option value="2008">2008</option>
|
25
|
+
<option value="2009">2009</option>
|
26
|
+
<option value="2010">2010</option>
|
27
|
+
<option value="2011">2011</option>
|
28
|
+
<option value="2012">2012</option>
|
29
|
+
</select>
|
30
|
+
<select id="user_lastupdate_2i" name="user[lastupdate(2i)]">
|
31
|
+
<option selected="selected" value="1">January</option>
|
32
|
+
<option value="2">February</option>
|
33
|
+
<option value="3">March</option>
|
34
|
+
<option value="4">April</option>
|
35
|
+
<option value="5">May</option>
|
36
|
+
<option value="6">June</option>
|
37
|
+
<option value="7">July</option>
|
38
|
+
<option value="8">August</option>
|
39
|
+
<option value="9">September</option>
|
40
|
+
<option value="10">October</option>
|
41
|
+
<option value="11">November</option>
|
42
|
+
<option value="12">December</option>
|
43
|
+
</select>
|
44
|
+
<select id="user_lastupdate_3i" name="user[lastupdate(3i)]">
|
45
|
+
<option selected="selected" value="1">1</option>
|
46
|
+
<option value="2">2</option>
|
47
|
+
<option value="3">3</option>
|
48
|
+
<option value="4">4</option>
|
49
|
+
<option value="5">5</option>
|
50
|
+
<option value="6">6</option>
|
51
|
+
<option value="7">7</option>
|
52
|
+
<option value="8">8</option>
|
53
|
+
<option value="9">9</option>
|
54
|
+
<option value="10">10</option>
|
55
|
+
<option value="11">11</option>
|
56
|
+
<option value="12">12</option>
|
57
|
+
<option value="13">13</option>
|
58
|
+
<option value="14">14</option>
|
59
|
+
<option value="15">15</option>
|
60
|
+
<option value="16">16</option>
|
61
|
+
<option value="17">17</option>
|
62
|
+
<option value="18">18</option>
|
63
|
+
<option value="19">19</option>
|
64
|
+
<option value="20">20</option>
|
65
|
+
<option value="21">21</option>
|
66
|
+
<option value="22">22</option>
|
67
|
+
<option value="23">23</option>
|
68
|
+
<option value="24">24</option>
|
69
|
+
<option value="25">25</option>
|
70
|
+
<option value="26">26</option>
|
71
|
+
<option value="27">27</option>
|
72
|
+
<option value="28">28</option>
|
73
|
+
<option value="29">29</option>
|
74
|
+
<option value="30">30</option>
|
75
|
+
<option value="31">31</option>
|
76
|
+
</select>
|
77
|
+
</div></p>
|
78
|
+
<!--[eoform:article]-->
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
<a href="/">Back to Top</a>
|
83
|
+
</body>
|
84
|
+
</html>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
4
|
+
<title>Ruby-GetText-Package Test Application</title>
|
5
|
+
<link href="/stylesheets/scaffold.css" media="screen" rel="Stylesheet" type="text/css" />
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<p style="color: green"></p>
|
9
|
+
|
10
|
+
<h2>test for distance_of_time_in_words</h2>
|
11
|
+
|
12
|
+
less than 5 seconds<br/>
|
13
|
+
less than 10 seconds<br/>
|
14
|
+
half a minute<br/>
|
15
|
+
less than a minute<br/>
|
16
|
+
1 minute<br/>
|
17
|
+
2 minutes<br/>
|
18
|
+
about 1 hour<br/>
|
19
|
+
about 2 hours<br/>
|
20
|
+
1 day<br/>
|
21
|
+
2 days<br/>
|
22
|
+
about 1 month<br/>
|
23
|
+
2 months<br/>
|
24
|
+
about 1 year<br/>
|
25
|
+
over 2 years<br/>
|
26
|
+
over 4 years<br/>
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
<a href="/">Back to Top</a>
|
31
|
+
</body>
|
32
|
+
</html>
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
4
|
+
<title>Ruby-GetText-Package Test Application</title>
|
5
|
+
<link href="/stylesheets/scaffold.css" media="screen" rel="Stylesheet" type="text/css" />
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
|
9
|
+
<p style="color: green"></p>
|
10
|
+
|
11
|
+
<h1>Listing articles</h1>
|
12
|
+
|
13
|
+
<table>
|
14
|
+
<tr>
|
15
|
+
|
16
|
+
<th>Title</th>
|
17
|
+
|
18
|
+
<th>Description</th>
|
19
|
+
|
20
|
+
<th>Lastupdate</th>
|
21
|
+
|
22
|
+
</tr>
|
23
|
+
|
24
|
+
|
25
|
+
<tr>
|
26
|
+
|
27
|
+
<td>MyString</td>
|
28
|
+
|
29
|
+
<td>MyText</td>
|
30
|
+
|
31
|
+
<td></td>
|
32
|
+
|
33
|
+
<td><a href="/articles/1">Show</a></td>
|
34
|
+
<td><a href="/articles/1/edit">Edit</a></td>
|
35
|
+
<td><a href="/articles/1" onclick="if (confirm('Are you sure?')) { var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;f.submit(); };return false;">Destroy</a></td>
|
36
|
+
</tr>
|
37
|
+
|
38
|
+
<tr>
|
39
|
+
|
40
|
+
<td>MyString2</td>
|
41
|
+
|
42
|
+
<td>MyText</td>
|
43
|
+
|
44
|
+
<td></td>
|
45
|
+
|
46
|
+
<td><a href="/articles/2">Show</a></td>
|
47
|
+
<td><a href="/articles/2/edit">Edit</a></td>
|
48
|
+
<td><a href="/articles/2" onclick="if (confirm('Are you sure?')) { var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;f.submit(); };return false;">Destroy</a></td>
|
49
|
+
</tr>
|
50
|
+
|
51
|
+
</table>
|
52
|
+
|
53
|
+
<br />
|
54
|
+
|
55
|
+
<a href="/articles/new">New article</a>
|
56
|
+
<br />
|
57
|
+
|
58
|
+
|
59
|
+
<br/>
|
60
|
+
<a href="/">Back to Top</a>
|
61
|
+
</body>
|
62
|
+
</html>
|