From c3df840c20cc17ceb8fdcafb4215a6f3fb87fed1 Mon Sep 17 00:00:00 2001 From: Julien Phalip Date: Fri, 11 Nov 2011 13:07:14 +0000 Subject: Fixed #16903 -- Added `--no-location` option to the `makemessages` command to not write '#: filename:line' comment lines in language files. Thanks to alpar for the suggestion and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17081 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/django-admin.txt | 8 ++++++++ docs/releases/1.4.txt | 3 +++ 2 files changed, 11 insertions(+) (limited to 'docs') diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 519ef3c766..24fa0d7b34 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -475,6 +475,14 @@ Use the ``--no-default-ignore`` option to disable the default values of Use the ``--no-wrap`` option to disable breaking long message lines into several lines in language files. +.. django-admin-option:: --no-location + +.. versionadded:: 1.4 + +Use the ``--no-location`` option to not write '``#: filename:line``' +comment lines in language files. Note that using this option makes it harder +for technically skilled translators to understand each message's context. + reset --------------------------- diff --git a/docs/releases/1.4.txt b/docs/releases/1.4.txt index c8e476263b..eff5a99ebf 100644 --- a/docs/releases/1.4.txt +++ b/docs/releases/1.4.txt @@ -477,6 +477,9 @@ Django 1.4 also includes several smaller improvements worth noting: This should make it easier to read when debugging interaction with client-side Javascript code. +* Added the :djadminopt:`--no-location` option to the :djadmin:`makemessages` + command. + .. _backwards-incompatible-changes-1.4: Backwards incompatible changes in 1.4 -- cgit v1.3