aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides/html/i18n.html
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-01-16 04:34:34 +0000
committerPratik Naik <pratiknaik@gmail.com>2009-01-16 04:34:34 +0000
commitea21b23b92fec1eb5fcc180f8bc054151216538b (patch)
treeee6e833d61873ef019742809a53e4bc7ab26dca6 /railties/doc/guides/html/i18n.html
parent7d2e3ef315489d06e5074c2a7b9b6425aa3e74ce (diff)
downloadrails-ea21b23b92fec1eb5fcc180f8bc054151216538b.tar.gz
rails-ea21b23b92fec1eb5fcc180f8bc054151216538b.tar.bz2
rails-ea21b23b92fec1eb5fcc180f8bc054151216538b.zip
* Tabs -> Spaces in guides templates
* Move inline css to a file
Diffstat (limited to 'railties/doc/guides/html/i18n.html')
-rw-r--r--railties/doc/guides/html/i18n.html394
1 files changed, 113 insertions, 281 deletions
diff --git a/railties/doc/guides/html/i18n.html b/railties/doc/guides/html/i18n.html
index 4d2e4bb7a3..7326244ce0 100644
--- a/railties/doc/guides/html/i18n.html
+++ b/railties/doc/guides/html/i18n.html
@@ -1,287 +1,119 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>The Rails Internationalization API</title>
- <!--[if lt IE 8]>
- <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
- <![endif]-->
- <link href="stylesheets/base.css" media="screen" rel="Stylesheet" type="text/css" />
- <link href="stylesheets/forms.css" media="screen" rel="Stylesheet" type="text/css" />
- <link href="stylesheets/more.css" media="screen" rel="Stylesheet" type="text/css" />
- <style type="text/css">
- div#container {
- max-width: 900px;
- padding-bottom: 3em;
-}
-
-div#content {
- margin-left: 200px;
-}
-
-div#container.notoc {
- max-width: 600px;
-}
-
-.notoc div#content {
- margin-left: 0;
-}
-
-pre {
- line-height: 1.4em;
-}
-
-#content p tt {
- background: #eeeeee;
- border: solid 1px #cccccc;
- padding: 3px;
-}
-
-dt {
- font-weight: bold;
-}
-
-#content dt tt {
- font-size: 10pt;
-}
-
-dd {
- margin-left: 3em;
-}
-
-#content dt tt, #content pre tt {
- background: none;
- padding: 0;
- border: 0;
-}
-
-#content .olist ol {
- margin-left: 2em;
-}
-
-#header {
- position: relative;
- max-width: 840px;
- margin-left: auto;
- margin-right: auto;
-}
-
-#header.notoc {
- max-width: 580px;
-}
-
-#logo {
- position: absolute;
- left: 10px;
- top: 10px;
- width: 110px;
- height: 140px;
-}
-
-div#header h1#site_title {
- background: url('images/ruby_on_rails_by_mike_rundle2.gif') top left no-repeat;
- position: absolute;
- width: 392px;
- height: 55px;
- left: 145px;
- top: 20px;
- margin: 0;
- padding: 0;
-}
-
-#site_title span {
- display: none;
-}
-
-#site_title_tagline {
- display: none;
-}
-
-ul#navMain {
- position: absolute;
- margin: 0;
- padding: 0;
- top: 97px;
- left: 145px;
-}
-
-.left-floaty, .right-floaty {
- padding: 15px;
-}
-
-.admonitionblock,
-.tableblock {
- margin-left: 1em;
- margin-right: 1em;
- margin-top: 0.25em;
- margin-bottom: 1em;
-}
-
-.admonitionblock .icon {
- padding-right: 8px;
-}
-
-.admonitionblock .content {
- border: solid 1px #ffda78;
- background: #fffebd;
- padding: 10px;
- padding-top: 8px;
- padding-bottom: 8px;
-}
-
-.admonitionblock .title {
- font-size: 140%;
- margin-bottom: 0.5em;
-}
-
-.tableblock table {
- border: solid 1px #aaaaff;
- background: #f0f0ff;
-}
-
-.tableblock th {
- background: #e0e0e0;
-}
-
-.tableblock th,
-.tableblock td {
- padding: 3px;
- padding-left: 5px;
- padding-right: 5px;
-}
-
-.sidebarblock {
- margin-top: 0.25em;
- margin: 1em;
- border: solid 1px #ccccbb;
- padding: 8px;
- background: #ffffe0;
-}
-
-.sidebarblock .sidebar-title {
- font-size: 140%;
- font-weight: 600;
- margin-bottom: 0.3em;
-}
-
-.sidebarblock .sidebar-content > .para:last-child > p {
- margin-bottom: 0;
-}
-
-.sidebarblock .sidebar-title a {
- text-decoration: none;
-}
-
-.sidebarblock .sidebar-title a:hover {
- text-decoration: underline;
-}
-
- </style>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>The Rails Internationalization API</title>
+ <!--[if lt IE 8]>
+ <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
+ <![endif]-->
+ <link href="stylesheets/base.css" media="screen" rel="Stylesheet" type="text/css" />
+ <link href="stylesheets/forms.css" media="screen" rel="Stylesheet" type="text/css" />
+ <link href="stylesheets/more.css" media="screen" rel="Stylesheet" type="text/css" />
</head>
<body>
- <div id="header" >
- <div id="logo">
- <a href="index.html" title="Ruby on Rails"><img src="images/rails_logo_remix.gif" alt="Rails" height="140" width="110" /></a>
- </div>
-
- <h1 id="site_title"><span>Ruby on Rails</span></h1>
- <h2 id="site_title_tagline">Sustainable productivity for web-application development</h2>
-
- <ul id="navMain">
- <li class="first-child"><a href="http://www.rubyonrails.org/" title="Ruby on Rails" class="ruby_on_rails">Ruby on Rails</a></li>
- <li><a class="manuals" href="index.html" title="Manuals Index">Guides Index</a></li>
- </ul>
- </div>
-
- <div id="container">
-
- <div id="sidebar">
- <h2>Chapters</h2>
- <ol>
- <li>
- <a href="#_how_i18n_in_ruby_on_rails_works">How I18n in Ruby on Rails works</a>
- <ul>
-
- <li><a href="#_the_overall_architecture_of_the_library">The overall architecture of the library</a></li>
-
- <li><a href="#_the_public_i18n_api">The public I18n API</a></li>
-
- </ul>
- </li>
- <li>
- <a href="#_walkthrough_setup_a_simple_i18n_8217_ed_rails_application">Walkthrough: setup a simple I18n&#8217;ed Rails application</a>
- <ul>
-
- <li><a href="#_configure_the_i18n_module">Configure the I18n module</a></li>
-
- <li><a href="#_optional_custom_i18n_configuration_setup">Optional: custom I18n configuration setup</a></li>
-
- <li><a href="#_set_the_locale_in_each_request">Set the locale in each request</a></li>
-
- </ul>
- </li>
- <li>
- <a href="#_internationalize_your_application">Internationalize your application</a>
- <ul>
-
- <li><a href="#_adding_translations">Adding Translations</a></li>
-
- <li><a href="#_adding_date_time_formats">Adding Date/Time formats</a></li>
-
- </ul>
- </li>
- <li>
- <a href="#_overview_of_the_i18n_api_features">Overview of the I18n API features</a>
- <ul>
-
- <li><a href="#_looking_up_translations">Looking up translations</a></li>
-
- <li><a href="#_interpolation">Interpolation</a></li>
-
- <li><a href="#_pluralization">Pluralization</a></li>
-
- <li><a href="#_setting_and_passing_a_locale">Setting and passing a locale</a></li>
-
- </ul>
- </li>
- <li>
- <a href="#_how_to_store_your_custom_translations">How to store your custom translations</a>
- <ul>
-
- <li><a href="#_translations_for_activerecord_models">Translations for ActiveRecord models</a></li>
-
- <li><a href="#_other_translations_and_localizations">Other translations and localizations</a></li>
-
- </ul>
- </li>
- <li>
- <a href="#_customize_your_i18n_setup">Customize your I18n setup</a>
- <ul>
-
- <li><a href="#_using_different_backends">Using different backends</a></li>
-
- <li><a href="#_using_different_exception_handlers">Using different exception handlers</a></li>
-
- </ul>
- </li>
- <li>
- <a href="#_resources">Resources</a>
- </li>
- <li>
- <a href="#_footnotes">Footnotes</a>
- </li>
- <li>
- <a href="#_credits">Credits</a>
- </li>
- <li>
- <a href="#_notes">NOTES</a>
- </li>
- </ol>
- </div>
-
- <div id="content">
- <h1>The Rails Internationalization API</h1>
- <div id="preamble">
+ <div id="header" >
+ <div id="logo">
+ <a href="index.html" title="Ruby on Rails"><img src="images/rails_logo_remix.gif" alt="Rails" height="140" width="110" /></a>
+ </div>
+
+ <h1 id="site_title"><span>Ruby on Rails</span></h1>
+ <h2 id="site_title_tagline">Sustainable productivity for web-application development</h2>
+
+ <ul id="navMain">
+ <li class="first-child"><a href="http://www.rubyonrails.org/" title="Ruby on Rails" class="ruby_on_rails">Ruby on Rails</a></li>
+ <li><a class="manuals" href="index.html" title="Manuals Index">Guides Index</a></li>
+ </ul>
+ </div>
+
+ <div id="container">
+
+ <div id="sidebar">
+ <h2>Chapters</h2>
+ <ol>
+ <li>
+ <a href="#_how_i18n_in_ruby_on_rails_works">How I18n in Ruby on Rails works</a>
+ <ul>
+
+ <li><a href="#_the_overall_architecture_of_the_library">The overall architecture of the library</a></li>
+
+ <li><a href="#_the_public_i18n_api">The public I18n API</a></li>
+
+ </ul>
+ </li>
+ <li>
+ <a href="#_walkthrough_setup_a_simple_i18n_8217_ed_rails_application">Walkthrough: setup a simple I18n&#8217;ed Rails application</a>
+ <ul>
+
+ <li><a href="#_configure_the_i18n_module">Configure the I18n module</a></li>
+
+ <li><a href="#_optional_custom_i18n_configuration_setup">Optional: custom I18n configuration setup</a></li>
+
+ <li><a href="#_set_the_locale_in_each_request">Set the locale in each request</a></li>
+
+ </ul>
+ </li>
+ <li>
+ <a href="#_internationalize_your_application">Internationalize your application</a>
+ <ul>
+
+ <li><a href="#_adding_translations">Adding Translations</a></li>
+
+ <li><a href="#_adding_date_time_formats">Adding Date/Time formats</a></li>
+
+ </ul>
+ </li>
+ <li>
+ <a href="#_overview_of_the_i18n_api_features">Overview of the I18n API features</a>
+ <ul>
+
+ <li><a href="#_looking_up_translations">Looking up translations</a></li>
+
+ <li><a href="#_interpolation">Interpolation</a></li>
+
+ <li><a href="#_pluralization">Pluralization</a></li>
+
+ <li><a href="#_setting_and_passing_a_locale">Setting and passing a locale</a></li>
+
+ </ul>
+ </li>
+ <li>
+ <a href="#_how_to_store_your_custom_translations">How to store your custom translations</a>
+ <ul>
+
+ <li><a href="#_translations_for_activerecord_models">Translations for ActiveRecord models</a></li>
+
+ <li><a href="#_other_translations_and_localizations">Other translations and localizations</a></li>
+
+ </ul>
+ </li>
+ <li>
+ <a href="#_customize_your_i18n_setup">Customize your I18n setup</a>
+ <ul>
+
+ <li><a href="#_using_different_backends">Using different backends</a></li>
+
+ <li><a href="#_using_different_exception_handlers">Using different exception handlers</a></li>
+
+ </ul>
+ </li>
+ <li>
+ <a href="#_resources">Resources</a>
+ </li>
+ <li>
+ <a href="#_footnotes">Footnotes</a>
+ </li>
+ <li>
+ <a href="#_credits">Credits</a>
+ </li>
+ <li>
+ <a href="#_notes">NOTES</a>
+ </li>
+ </ol>
+ </div>
+
+ <div id="content">
+ <h1>The Rails Internationalization API</h1>
+ <div id="preamble">
<div class="sectionbody">
<div class="paragraph"><p>The Ruby I18n gem which is shipped with Ruby on Rails (starting from Rails 2.2) provides an easy-to-use and extensible framework for translating your application to a single custom language other than English or providing multi-language support in your application.</p></div>
</div>
@@ -991,7 +823,7 @@ http://www.gnu.org/software/src-highlite -->
<div class="paragraph"><p>How to contribute?</p></div>
</div>
- </div>
- </div>
+ </div>
+ </div>
</body>
</html>