summaryrefslogtreecommitdiff
path: root/sphinx/builders/gettext.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Modernize the code now that Python 2.5 is no longer supportedDmitry Shachnev2014-01-191-1/+1
|/ | | | | | | | | | | - Use print function instead of print statement; - Use new exception handling; - Use in operator instead of has_key(); - Do not use tuple arguments in functions; - Other miscellaneous improvements. This is based on output of `futurize --stage1`, with some manual corrections.
* Fix ResourceWarnings with Python 3.2 or later. Closes #1269Takayuki Shimizukawa2013-11-171-1/+4
|
* Backed out changeset cfe9e2d11003 refs #1265Takayuki Shimizukawa2013-10-041-8/+1
|
* Now gettext translates label target name. Fix i18n: crash when using a ↵Takayuki Shimizukawa2013-10-041-1/+8
| | | | indirect target and translating a target section name. Closes #1265
* Small consistency fix for timestamp tzoffset calculation.Georg Brandl2013-09-161-2/+3
|
* Fix again. Remove the effect of DST changing by the execution time ↵Takayuki Shimizukawa2013-06-151-2/+4
| | | | difference. refs #1182
* Force timezone offset to LocalTimeZone on POT-Creation-Date that was ↵Takayuki Shimizukawa2013-06-131-11/+12
| | | | generated by gettext builder. refs #1182
* add CHANGES for pot-creation-date format. Closes #1182Takayuki Shimizukawa2013-06-041-1/+0
|
* Add +0000 to POT-Creation-Datemasklinn2013-05-281-2/+20
| | | | | | | | | | | | %z sets an empty string when datetimes are "naive" (no timezone specified), but some packages expect a timezone specifier on the POT-Creation-Date header and will error out if it is missing (e.g. babel's pofile.read_po). Lifted the stdlib's UTC timezone recipe and set this explicitly, it's not the correct timezone but at least it's a timezone. The LocalTimezone recipe might be a better one.
* Fix: 'make gettext' cause UnicodeDecodeError when templates contain utf-8 ↵Takayuki Shimizukawa2013-04-131-1/+1
| | | | encoded string.
* Fix: although template file did not have translation string, 'makee gettext' ↵Takayuki Shimizukawa2013-04-131-3/+1
| | | | generate sphinx.pot
* builders: fix status_iterator backwards compatibilityGeorg Brandl2013-03-291-3/+2
|
* Add i18n capabilities for custom templates.Takayuki Shimizukawa2013-03-101-4/+54
| | | | | For example: The Sphinx reference documentation in doc directory provides sphinx.pot file from ``doc/_templates/*.html`` by ``make gettext``.
* Fix pyflakes issues.Georg Brandl2013-01-131-1/+1
|
* Closes #976: Fix gettext does not extract index entries.Takayuki Shimizukawa2013-01-051-1/+13
|
* Copyright update.Georg Brandl2013-01-011-1/+1
|
* Satisfy "make check".Georg Brandl2011-10-091-1/+2
|
* Add project name to PO header.Robert Lehmann2011-10-081-1/+1
|
* Respect gettext_compact in message patching too.Robert Lehmann2011-10-031-1/+2
|
* Closes #561: Add configuration option to prevent catalog bundling.Robert Lehmann2011-10-031-5/+8
|
* Fix #765: on Windows, relpath() does not always succeed.Georg Brandl2011-09-211-4/+2
|
* [i18n] fix reference line separator.Kouhei Sutou2011-08-141-2/+2
| | | | | | | | | | | | | | | | | | | | | This commit fixes part of 5976facae92c commit: Refactor comment generating code for message catalogs. The commit says "Refactor" but it changes original code behavior. In original code, source locations are separated with " " but in refactored code, source locations are separated with ", ". msgmerge and po-mode that are part of the GNU gettext toolset treats "," as part of source location. We can fix this problem by one of them: * Use " " instead of ", " as source locations separator in a "reference" line. * Put "reference" lines. Each "reference" line just has a source location. This commit uses the latter because the latter has more higher readablility. See also about "reference" line but it doesn't say about separator: http://www.gnu.org/s/hello/manual/gettext/PO-Files.html
* [i18n] use relative path from output directory for source path.Kouhei Sutou2011-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | This commit reverts part of 5976facae92c commit: Refactor comment generating code for message catalogs. The commit says "Refactor" but it changes original code behavior. In original code, start path for path.relpath() is self.outdir but in refactored code, start path for path.relpath() is self.srcdir. It should be self.outdir not self.srcdir to improve po-mode.el support. po-mode.el has "po-cycle-source-reference" command. It search source code relative from .po file directory. See also:: http://www.gnu.org/s/hello/manual/gettext/C-Sources-Context.html Program source files are usually found relative to where the PO file stands. As a special provision, when this fails, the file is also looked for, but relative to the directory immediately above it.
* Move node filtering into extract_messages.Robert Lehmann2011-07-061-4/+0
|
* Distribute UUIDs over multiple comment lines.Robert Lehmann2011-07-061-2/+2
|
* Comment and stretch out code.Robert Lehmann2011-07-061-9/+15
| | | | Also leverage the fact that we ignore Sphinx' built-in messages for catalogs.
* Close #630: Revamp data structures used for message catalogs.Robert Lehmann2011-07-061-6/+16
|
* skip literal_blockshibukawa yoshiki2010-10-281-0/+2
|
* Refactor comment generating code for message catalogs.Robert Lehmann2011-07-061-8/+11
| | | | | | Bring back UUIDs in comments too. Overrides kou's 7b77dd3717af.
* [i18n] support reference line.Kouhei Sutou2011-05-081-4/+9
| | | | | | | | | | | | | From "3 The Format of PO Files" at http://www.gnu.org/s/hello/manual/gettext/PO-Files.html :: Comment lines starting with #: contain references to the program's source code. The reference comment is useful to jump to the source position. GNU gettext tools support the reference comment. e.g.: po-mode.el binds "s" key to "po-cycle-source-reference" that opens a source position in a new buffer.
* [i18n] don't generate duplicated msgid.Kouhei Sutou2011-05-081-4/+7
|
* Rename "intl" module to "gettext", to make it easier to find. Distinguish ↵Georg Brandl2011-01-081-0/+103
environments with different versioning methods and always give the gettext builder its own doctree dir.