mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #28015 -- Added makemessages --add-location option.
Thanks François Freitag for review.
This commit is contained in:
committed by
Tim Graham
parent
3e9aa29871
commit
04ab96ec4f
@@ -647,6 +647,20 @@ Suppresses writing '``#: filename:line``’ comment lines in language files.
|
||||
Using this option makes it harder for technically skilled translators to
|
||||
understand each message's context.
|
||||
|
||||
.. django-admin-option:: --add-location [{full,file,never}]
|
||||
|
||||
.. versionadded:: 2.0
|
||||
|
||||
Controls ``#: filename:line`` comment lines in language files. If the option
|
||||
is:
|
||||
|
||||
* ``full`` (the default if not given): the lines include both file name and
|
||||
line number.
|
||||
* ``file``: the line number is omitted.
|
||||
* ``never``: the lines are suppressed (same as :option:`--no-location`).
|
||||
|
||||
Requires ``gettext`` 0.19 or newer.
|
||||
|
||||
.. django-admin-option:: --keep-pot
|
||||
|
||||
Prevents deleting the temporary ``.pot`` files generated before creating the
|
||||
|
||||
@@ -182,6 +182,9 @@ Management Commands
|
||||
* :djadmin:`inspectdb` now translates MySQL's unsigned integer columns to
|
||||
``PositiveIntegerField`` or ``PositiveSmallIntegerField``.
|
||||
|
||||
* The new :option:`makemessages --add-location` option controls the comment
|
||||
format in PO files.
|
||||
|
||||
Migrations
|
||||
~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user