diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-08-22 16:46:32 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-08-22 16:46:32 +0000 |
| commit | d82245be55544450b025a1926611902d82bc8ffb (patch) | |
| tree | ee3eee8507baedafa32cd860d23b068f87af40e0 /docs | |
| parent | f4a52d16b50d7a29d75de01109110ed7e474be78 (diff) | |
[multi-db] Merged to [3646]
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/settings.txt | 11 | ||||
| -rw-r--r-- | docs/templates.txt | 8 |
2 files changed, 16 insertions, 3 deletions
diff --git a/docs/settings.txt b/docs/settings.txt index 67e0498e1a..d9df111155 100644 --- a/docs/settings.txt +++ b/docs/settings.txt @@ -473,25 +473,36 @@ LANGUAGES Default: A tuple of all available languages. Currently, this is:: LANGUAGES = ( + ('ar', _('Arabic')), ('bn', _('Bengali')), ('cs', _('Czech')), ('cy', _('Welsh')), ('da', _('Danish')), ('de', _('German')), + ('el', _('Greek')), ('en', _('English')), ('es', _('Spanish')), + ('es_AR', _('Argentinean Spanish')), ('fr', _('French')), ('gl', _('Galician')), + ('hu', _('Hungarian')), + ('he', _('Hebrew')), ('is', _('Icelandic')), ('it', _('Italian')), + ('ja', _('Japanese')), + ('nl', _('Dutch')), ('no', _('Norwegian')), ('pt-br', _('Brazilian')), ('ro', _('Romanian')), ('ru', _('Russian')), ('sk', _('Slovak')), + ('sl', _('Slovenian')), ('sr', _('Serbian')), ('sv', _('Swedish')), + ('ta', _('Tamil')), + ('uk', _('Ukrainian')), ('zh-cn', _('Simplified Chinese')), + ('zh-tw', _('Traditional Chinese')), ) A tuple of two-tuples in the format (language code, language name). This diff --git a/docs/templates.txt b/docs/templates.txt index 49d30018fe..c9e76d6c94 100644 --- a/docs/templates.txt +++ b/docs/templates.txt @@ -141,6 +141,7 @@ It's easiest to understand template inheritance by starting with an example:: {% block content %}{% endblock %} </div> </body> + </html> This template, which we'll call ``base.html``, defines a simple HTML skeleton document that you might use for a simple two-column page. It's the job of @@ -196,6 +197,7 @@ like:: <p>This is my second entry.</p> </div> </body> + </html> Note that since the child template didn't define the ``sidebar`` block, the value from the parent template is used instead. Content within a ``{% block %}`` @@ -363,7 +365,7 @@ extends Signal that this template extends a parent template. -This tag can be used in two ways: +This tag can be used in two ways: * ``{% extends "base.html" %}`` (with quotes) uses the literal value ``"base.html"`` as the name of the parent template to extend. @@ -961,13 +963,13 @@ any string. pluralize ~~~~~~~~~ -Returns a plural suffix if the value is not 1. By default, this suffix is ``'s'``. +Returns a plural suffix if the value is not 1. By default, this suffix is ``'s'``. Example:: You have {{ num_messages }} message{{ num_messages|pluralize }}. -For words that require a suffix other than ``'s'``, you can provide an alternate +For words that require a suffix other than ``'s'``, you can provide an alternate suffix as a parameter to the filter. Example:: |
