Add _() to some english strings.

This commit is contained in:
Georg Brandl
2008-09-11 22:08:29 +00:00
parent 55d4a64a4b
commit 246a7a09b6
4 changed files with 41 additions and 40 deletions

View File

@@ -267,9 +267,9 @@ class BuildEnvironment:
self.gloss_entries = set() # existing definition labels
# Some magically present labels
self.labels['genindex'] = ('genindex', '', 'Index')
self.labels['modindex'] = ('modindex', '', 'Module Index')
self.labels['search'] = ('search', '', 'Search Page')
self.labels['genindex'] = ('genindex', '', _('Index'))
self.labels['modindex'] = ('modindex', '', _('Module Index'))
self.labels['search'] = ('search', '', _('Search Page'))
def set_warnfunc(self, func):
self._warnfunc = func

View File

@@ -185,7 +185,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
'\n\n' + \
u''.join(self.body) + \
(self.options['modindex'] and
('\\renewcommand{\\indexname}{%s}' % _('Module index') +
('\\renewcommand{\\indexname}{%s}' % _('Module Index') +
'\\printmodindex' +
'\\renewcommand{\\indexname}{%s}\n' % _('Index')) or '') + \
(FOOTER % self.options)

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Sphinx 0.5\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2008-09-06 19:09+0200\n"
"POT-Creation-Date: 2008-09-11 23:58+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,55 +17,71 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 0.9.3\n"
#: sphinx/builder.py:391
#: sphinx/builder.py:400
#, python-format
msgid "%b %d, %Y"
msgstr ""
#: sphinx/builder.py:410 sphinx/templates/defindex.html:21
#: sphinx/builder.py:419 sphinx/templates/defindex.html:21
msgid "General Index"
msgstr ""
#: sphinx/builder.py:410
#: sphinx/builder.py:419
msgid "index"
msgstr ""
#: sphinx/builder.py:412 sphinx/htmlhelp.py:155
#: sphinx/builder.py:421 sphinx/htmlhelp.py:155
#: sphinx/templates/defindex.html:19 sphinx/templates/modindex.html:2
#: sphinx/templates/modindex.html:13
msgid "Global Module Index"
msgstr ""
#: sphinx/builder.py:412
#: sphinx/builder.py:421
msgid "modules"
msgstr ""
#: sphinx/builder.py:448
#: sphinx/builder.py:457
msgid "next"
msgstr ""
#: sphinx/builder.py:455
#: sphinx/builder.py:464
msgid "previous"
msgstr ""
#: sphinx/builder.py:1092
#: sphinx/builder.py:1108
msgid "Builtins"
msgstr ""
#: sphinx/builder.py:1094
#: sphinx/builder.py:1110
msgid "Module level"
msgstr ""
#: sphinx/environment.py:108 sphinx/latexwriter.py:129
#: sphinx/environment.py:107 sphinx/latexwriter.py:129
#, python-format
msgid "%B %d, %Y"
msgstr ""
#: sphinx/htmlwriter.py:73 sphinx/static/doctools.js:143
#: sphinx/environment.py:270 sphinx/latexwriter.py:190
#: sphinx/templates/genindex-single.html:2
#: sphinx/templates/genindex-split.html:2
#: sphinx/templates/genindex-split.html:5 sphinx/templates/genindex.html:2
#: sphinx/templates/genindex.html:5 sphinx/templates/genindex.html:48
msgid "Index"
msgstr ""
#: sphinx/environment.py:271 sphinx/latexwriter.py:188
msgid "Module Index"
msgstr ""
#: sphinx/environment.py:272 sphinx/templates/defindex.html:16
msgid "Search Page"
msgstr ""
#: sphinx/htmlwriter.py:73 sphinx/static/doctools.js:145
msgid "Permalink to this definition"
msgstr ""
#: sphinx/htmlwriter.py:379 sphinx/static/doctools.js:136
#: sphinx/htmlwriter.py:375 sphinx/static/doctools.js:139
msgid "Permalink to this headline"
msgstr ""
@@ -73,17 +89,6 @@ msgstr ""
msgid "Release"
msgstr ""
#: sphinx/latexwriter.py:188
msgid "Module index"
msgstr ""
#: sphinx/latexwriter.py:190 sphinx/templates/genindex-single.html:2
#: sphinx/templates/genindex-split.html:2
#: sphinx/templates/genindex-split.html:5 sphinx/templates/genindex.html:2
#: sphinx/templates/genindex.html:5 sphinx/templates/genindex.html:48
msgid "Index"
msgstr ""
#: sphinx/roles.py:52 sphinx/directives/desc.py:514
#, python-format
msgid "environment variable; %s"
@@ -317,29 +322,29 @@ msgstr ""
msgid "built-in function"
msgstr ""
#: sphinx/static/doctools.js:172
#: sphinx/static/doctools.js:174
msgid "Hide Search Matches"
msgstr ""
#: sphinx/static/searchtools.js:242
#: sphinx/static/searchtools.js:274
msgid "Searching"
msgstr ""
#: sphinx/static/searchtools.js:246
msgid "Getting search index..."
#: sphinx/static/searchtools.js:279
msgid "Preparing search..."
msgstr ""
#: sphinx/static/searchtools.js:384 sphinx/templates/search.html:18
#: sphinx/static/searchtools.js:401 sphinx/templates/search.html:18
msgid "Search Results"
msgstr ""
#: sphinx/static/searchtools.js:386
#: sphinx/static/searchtools.js:403
msgid ""
"Your search did not match any documents. Please make sure that all words "
"are spelled correctly and that you've selected enough categories."
msgstr ""
#: sphinx/static/searchtools.js:389
#: sphinx/static/searchtools.js:405
#, python-format
msgid "Search finished, found %s page(s) matching the search query."
msgstr ""
@@ -360,10 +365,6 @@ msgstr ""
msgid "lists all sections and subsections"
msgstr ""
#: sphinx/templates/defindex.html:16
msgid "Search page"
msgstr ""
#: sphinx/templates/defindex.html:17
msgid "search this documentation"
msgstr ""

View File

@@ -13,7 +13,7 @@
<td width="50%">
<p class="biglink"><a class="biglink" href="{{ pathto("contents") }}">{{ _('Complete Table of Contents') }}</a><br>
<span class="linkdescr">{{ _('lists all sections and subsections') }}</span></p>
<p class="biglink"><a class="biglink" href="{{ pathto("search") }}">{{ _('Search page') }}</a><br>
<p class="biglink"><a class="biglink" href="{{ pathto("search") }}">{{ _('Search Page') }}</a><br>
<span class="linkdescr">{{ _('search this documentation') }}</span></p>
</td><td width="50%">
<p class="biglink"><a class="biglink" href="{{ pathto("modindex") }}">{{ _('Global Module Index') }}</a><br>