Teach babel to extract l_() messages.

This commit is contained in:
Georg Brandl
2009-07-03 13:37:38 +02:00
parent c8e8b1bfd4
commit 2c2ea9ae5f
2 changed files with 72 additions and 57 deletions

View File

@@ -8,6 +8,7 @@ release = egg_info -RDb ''
[extract_messages] [extract_messages]
mapping_file = babel.cfg mapping_file = babel.cfg
output_file = sphinx/locale/sphinx.pot output_file = sphinx/locale/sphinx.pot
keywords = _ l_ lazy_gettext
[update_catalog] [update_catalog]
input_file = sphinx/locale/sphinx.pot input_file = sphinx/locale/sphinx.pot

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Sphinx 1.0\n" "Project-Id-Version: Sphinx 1.0\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2009-05-22 18:51+0200\n" "POT-Creation-Date: 2009-07-03 13:36+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,29 +17,29 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 0.9.4\n" "Generated-By: Babel 0.9.4\n"
#: sphinx/environment.py:104 sphinx/writers/latex.py:184 #: sphinx/environment.py:107 sphinx/writers/latex.py:184
#, python-format #, python-format
msgid "%B %d, %Y" msgid "%B %d, %Y"
msgstr "" msgstr ""
#: sphinx/environment.py:323 sphinx/themes/basic/genindex-single.html:2 #: sphinx/environment.py:327 sphinx/themes/basic/genindex-single.html:2
#: sphinx/themes/basic/genindex-split.html:2 #: sphinx/themes/basic/genindex-split.html:2
#: sphinx/themes/basic/genindex-split.html:5 #: sphinx/themes/basic/genindex-split.html:5
#: sphinx/themes/basic/genindex.html:2 sphinx/themes/basic/genindex.html:5 #: sphinx/themes/basic/genindex.html:2 sphinx/themes/basic/genindex.html:5
#: sphinx/themes/basic/genindex.html:48 sphinx/themes/basic/layout.html:131 #: sphinx/themes/basic/genindex.html:48 sphinx/themes/basic/layout.html:134
#: sphinx/writers/latex.py:190 #: sphinx/writers/latex.py:190
msgid "Index" msgid "Index"
msgstr "" msgstr ""
#: sphinx/environment.py:324 sphinx/writers/latex.py:189 #: sphinx/environment.py:328 sphinx/writers/latex.py:189
msgid "Module Index" msgid "Module Index"
msgstr "" msgstr ""
#: sphinx/environment.py:325 sphinx/themes/basic/defindex.html:16 #: sphinx/environment.py:329 sphinx/themes/basic/defindex.html:16
msgid "Search Page" msgid "Search Page"
msgstr "" msgstr ""
#: sphinx/roles.py:55 sphinx/directives/desc.py:747 #: sphinx/roles.py:55 sphinx/directives/desc.py:763
#, python-format #, python-format
msgid "environment variable; %s" msgid "environment variable; %s"
msgstr "" msgstr ""
@@ -57,34 +57,35 @@ msgstr ""
msgid "Module level" msgid "Module level"
msgstr "" msgstr ""
#: sphinx/builders/html.py:219 #: sphinx/builders/html.py:222
#, python-format #, python-format
msgid "%b %d, %Y" msgid "%b %d, %Y"
msgstr "" msgstr ""
#: sphinx/builders/html.py:238 sphinx/themes/basic/defindex.html:21 #: sphinx/builders/html.py:241 sphinx/themes/basic/defindex.html:21
msgid "General Index" msgid "General Index"
msgstr "" msgstr ""
#: sphinx/builders/html.py:238 #: sphinx/builders/html.py:241
msgid "index" msgid "index"
msgstr "" msgstr ""
#: sphinx/builders/html.py:240 sphinx/builders/htmlhelp.py:184 #: sphinx/builders/html.py:243 sphinx/builders/htmlhelp.py:184
#: sphinx/builders/qthelp.py:132 sphinx/themes/basic/defindex.html:19 #: sphinx/builders/qthelp.py:132 sphinx/themes/basic/defindex.html:19
#: sphinx/themes/basic/modindex.html:2 sphinx/themes/basic/modindex.html:13 #: sphinx/themes/basic/modindex.html:2 sphinx/themes/basic/modindex.html:13
#: sphinx/themes/scrolls/modindex.html:2 sphinx/themes/scrolls/modindex.html:13
msgid "Global Module Index" msgid "Global Module Index"
msgstr "" msgstr ""
#: sphinx/builders/html.py:241 #: sphinx/builders/html.py:244
msgid "modules" msgid "modules"
msgstr "" msgstr ""
#: sphinx/builders/html.py:296 #: sphinx/builders/html.py:300
msgid "next" msgid "next"
msgstr "" msgstr ""
#: sphinx/builders/html.py:305 #: sphinx/builders/html.py:309
msgid "previous" msgid "previous"
msgstr "" msgstr ""
@@ -92,15 +93,18 @@ msgstr ""
msgid " (in " msgid " (in "
msgstr "" msgstr ""
#: sphinx/directives/desc.py:97 #: sphinx/directives/desc.py:97 sphinx/directives/desc.py:98
#: sphinx/directives/desc.py:99 sphinx/directives/desc.py:100
msgid "Raises" msgid "Raises"
msgstr "" msgstr ""
#: sphinx/directives/desc.py:101 #: sphinx/directives/desc.py:101 sphinx/directives/desc.py:102
#: sphinx/directives/desc.py:103
msgid "Variable" msgid "Variable"
msgstr "" msgstr ""
#: sphinx/directives/desc.py:104 #: sphinx/directives/desc.py:104 sphinx/directives/desc.py:105
#: sphinx/directives/desc.py:111 sphinx/directives/desc.py:112
msgid "Returns" msgid "Returns"
msgstr "" msgstr ""
@@ -122,7 +126,7 @@ msgid "%s() (built-in function)"
msgstr "" msgstr ""
#: sphinx/directives/desc.py:419 sphinx/directives/desc.py:476 #: sphinx/directives/desc.py:419 sphinx/directives/desc.py:476
#: sphinx/directives/desc.py:488 #: sphinx/directives/desc.py:488 sphinx/directives/desc.py:501
#, python-format #, python-format
msgid "%s() (in module %s)" msgid "%s() (in module %s)"
msgstr "" msgstr ""
@@ -167,6 +171,16 @@ msgstr ""
msgid "%s() (%s static method)" msgid "%s() (%s static method)"
msgstr "" msgstr ""
#: sphinx/directives/desc.py:505
#, python-format
msgid "%s() (%s.%s class method)"
msgstr ""
#: sphinx/directives/desc.py:508
#, python-format
msgid "%s() (%s class method)"
msgstr ""
#: sphinx/directives/desc.py:518 #: sphinx/directives/desc.py:518
#, python-format #, python-format
msgid "%s (%s.%s attribute)" msgid "%s (%s.%s attribute)"
@@ -207,37 +221,37 @@ msgstr ""
msgid "%scommand line option; %s" msgid "%scommand line option; %s"
msgstr "" msgstr ""
#: sphinx/directives/other.py:138 #: sphinx/directives/other.py:140
msgid "Platforms: " msgid "Platforms: "
msgstr "" msgstr ""
#: sphinx/directives/other.py:144 #: sphinx/directives/other.py:146
#, python-format #, python-format
msgid "%s (module)" msgid "%s (module)"
msgstr "" msgstr ""
#: sphinx/directives/other.py:193 #: sphinx/directives/other.py:195
msgid "Section author: " msgid "Section author: "
msgstr "" msgstr ""
#: sphinx/directives/other.py:195 #: sphinx/directives/other.py:197
msgid "Module author: " msgid "Module author: "
msgstr "" msgstr ""
#: sphinx/directives/other.py:197 #: sphinx/directives/other.py:199
msgid "Author: " msgid "Author: "
msgstr "" msgstr ""
#: sphinx/directives/other.py:317 #: sphinx/directives/other.py:319
msgid "See also" msgid "See also"
msgstr "" msgstr ""
#: sphinx/ext/autodoc.py:888 #: sphinx/ext/autodoc.py:895
#, python-format #, python-format
msgid " Bases: %s" msgid " Bases: %s"
msgstr "" msgstr ""
#: sphinx/ext/autodoc.py:919 #: sphinx/ext/autodoc.py:926
#, python-format #, python-format
msgid "alias of :class:`%s`" msgid "alias of :class:`%s`"
msgstr "" msgstr ""
@@ -255,86 +269,86 @@ msgstr ""
msgid "here" msgid "here"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:15 #: sphinx/locale/__init__.py:138
msgid "Attention" msgid "Attention"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:16 #: sphinx/locale/__init__.py:139
msgid "Caution" msgid "Caution"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:17 #: sphinx/locale/__init__.py:140
msgid "Danger" msgid "Danger"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:18 #: sphinx/locale/__init__.py:141
msgid "Error" msgid "Error"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:19 #: sphinx/locale/__init__.py:142
msgid "Hint" msgid "Hint"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:20 #: sphinx/locale/__init__.py:143
msgid "Important" msgid "Important"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:21 #: sphinx/locale/__init__.py:144
msgid "Note" msgid "Note"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:22 #: sphinx/locale/__init__.py:145
msgid "See Also" msgid "See Also"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:23 #: sphinx/locale/__init__.py:146
msgid "Tip" msgid "Tip"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:24 #: sphinx/locale/__init__.py:147
msgid "Warning" msgid "Warning"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:28 #: sphinx/locale/__init__.py:151
#, python-format #, python-format
msgid "New in version %s" msgid "New in version %s"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:29 #: sphinx/locale/__init__.py:152
#, python-format #, python-format
msgid "Changed in version %s" msgid "Changed in version %s"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:30 #: sphinx/locale/__init__.py:153
#, python-format #, python-format
msgid "Deprecated since version %s" msgid "Deprecated since version %s"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:34 #: sphinx/locale/__init__.py:157
msgid "module" msgid "module"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:35 #: sphinx/locale/__init__.py:158
msgid "keyword" msgid "keyword"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:36 #: sphinx/locale/__init__.py:159
msgid "operator" msgid "operator"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:37 #: sphinx/locale/__init__.py:160
msgid "object" msgid "object"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:38 #: sphinx/locale/__init__.py:161
msgid "exception" msgid "exception"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:39 #: sphinx/locale/__init__.py:162
msgid "statement" msgid "statement"
msgstr "" msgstr ""
#: sphinx/locale/__init__.py:40 #: sphinx/locale/__init__.py:163
msgid "built-in function" msgid "built-in function"
msgstr "" msgstr ""
@@ -430,47 +444,47 @@ msgstr ""
msgid "Enter search terms or a module, class or function name." msgid "Enter search terms or a module, class or function name."
msgstr "" msgstr ""
#: sphinx/themes/basic/layout.html:119 #: sphinx/themes/basic/layout.html:122
#, python-format #, python-format
msgid "Search within %(docstitle)s" msgid "Search within %(docstitle)s"
msgstr "" msgstr ""
#: sphinx/themes/basic/layout.html:128 #: sphinx/themes/basic/layout.html:131
msgid "About these documents" msgid "About these documents"
msgstr "" msgstr ""
#: sphinx/themes/basic/layout.html:134 sphinx/themes/basic/search.html:2 #: sphinx/themes/basic/layout.html:137 sphinx/themes/basic/search.html:2
#: sphinx/themes/basic/search.html:5 #: sphinx/themes/basic/search.html:5
msgid "Search" msgid "Search"
msgstr "" msgstr ""
#: sphinx/themes/basic/layout.html:137 #: sphinx/themes/basic/layout.html:140
msgid "Copyright" msgid "Copyright"
msgstr "" msgstr ""
#: sphinx/themes/basic/layout.html:184 #: sphinx/themes/basic/layout.html:187 sphinx/themes/scrolls/layout.html:83
#, python-format #, python-format
msgid "&copy; <a href=\"%(path)s\">Copyright</a> %(copyright)s." msgid "&copy; <a href=\"%(path)s\">Copyright</a> %(copyright)s."
msgstr "" msgstr ""
#: sphinx/themes/basic/layout.html:186 #: sphinx/themes/basic/layout.html:189 sphinx/themes/scrolls/layout.html:85
#, python-format #, python-format
msgid "&copy; Copyright %(copyright)s." msgid "&copy; Copyright %(copyright)s."
msgstr "" msgstr ""
#: sphinx/themes/basic/layout.html:190 #: sphinx/themes/basic/layout.html:193 sphinx/themes/scrolls/layout.html:89
#, python-format #, python-format
msgid "Last updated on %(last_updated)s." msgid "Last updated on %(last_updated)s."
msgstr "" msgstr ""
#: sphinx/themes/basic/layout.html:193 #: sphinx/themes/basic/layout.html:196 sphinx/themes/scrolls/layout.html:92
#, python-format #, python-format
msgid "" msgid ""
"Created using <a href=\"http://sphinx.pocoo.org/\">Sphinx</a> " "Created using <a href=\"http://sphinx.pocoo.org/\">Sphinx</a> "
"%(sphinx_version)s." "%(sphinx_version)s."
msgstr "" msgstr ""
#: sphinx/themes/basic/modindex.html:36 #: sphinx/themes/basic/modindex.html:36 sphinx/themes/scrolls/modindex.html:37
msgid "Deprecated" msgid "Deprecated"
msgstr "" msgstr ""
@@ -578,11 +592,11 @@ msgstr ""
msgid "Release" msgid "Release"
msgstr "" msgstr ""
#: sphinx/writers/latex.py:639 #: sphinx/writers/latex.py:644
msgid "continued from previous page" msgid "continued from previous page"
msgstr "" msgstr ""
#: sphinx/writers/latex.py:643 #: sphinx/writers/latex.py:648
msgid "Continued on next page" msgid "Continued on next page"
msgstr "" msgstr ""