mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add versionadded tags for new config values.
This commit is contained in:
parent
d50c5efb1a
commit
c403737ec3
@ -401,18 +401,23 @@ documentation on :ref:`intl` for details.
|
||||
|
||||
.. confval:: gettext_uuid
|
||||
|
||||
If true, ``sphinx`` generates message catalogs with uuid information
|
||||
for ``pot`` files. If false, ``sphinx`` doesn't do it.
|
||||
If true, Sphinx generates uuid information for version tracking in message
|
||||
catalogs.
|
||||
|
||||
The default is ``true``.
|
||||
|
||||
|
||||
.. versionadded:: 1.3
|
||||
|
||||
.. confval:: gettext_location
|
||||
|
||||
If true, ``sphinx`` generates message catalogs with location information
|
||||
for ``pot`` files. If false, ``sphinx`` doesn't do it.
|
||||
If true, Sphinx generates location information for messages in message
|
||||
catalogs.
|
||||
|
||||
The default is ``true``.
|
||||
|
||||
.. versionadded:: 1.3
|
||||
|
||||
|
||||
.. _html-options:
|
||||
|
||||
Options for HTML output
|
||||
|
@ -203,7 +203,8 @@ class MessageCatalogBuilder(I18nBuilder):
|
||||
for source, line, _ in positions))
|
||||
if self.config.gettext_uuid:
|
||||
# generate "# uuid1\n# uuid2\n ..."
|
||||
pofile.write(u"# %s\n" % "\n# ".join(uid for _, _, uid in positions))
|
||||
pofile.write(u"# %s\n" % "\n# ".join(
|
||||
uid for _, _, uid in positions))
|
||||
|
||||
# message contains *one* line of text ready for translation
|
||||
message = message.replace(u'\\', ur'\\'). \
|
||||
|
@ -201,8 +201,8 @@ class Config(object):
|
||||
|
||||
# gettext options
|
||||
gettext_compact = (True, 'gettext'),
|
||||
gettext_location = (True, None),
|
||||
gettext_uuid = (True, None),
|
||||
gettext_location = (True, 'gettext'),
|
||||
gettext_uuid = (True, 'gettext'),
|
||||
|
||||
# XML options
|
||||
xml_pretty = (True, 'env'),
|
||||
|
Loading…
Reference in New Issue
Block a user