Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/management/commands/compilemessages.py
Commit message (Collapse)AuthorAgeFilesLines
* Removed hardcoded utf-8 BOM, used value from codecs instead.Jon Dufresne2015-10-251-2/+1
|
* Fixed #24159 -- Made compilemessages run across all apps.Matthew Somerville2015-06-051-0/+6
| | | | | Updated the command to match the documentation, which states it runs over all .po files.
* Fed tuples to startswith when appropriateClaude Paroz2015-03-131-3/+2
|
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-1/+1
| | | | generators and dict comprehension
* Fixed #18714 -- Added 'fuzzy' compilemessages optionAnton Baklanov2014-11-181-0/+4
|
* Converted remaining management commands to argparseClaude Paroz2014-06-141-8/+7
|
* Fixed clash caused by the newly introduced -e shorthand ↵Loic Bistuer2014-05-021-1/+1
| | | | | | for makemessages --exclude. This fixes a regression caused by 0707b82. Refs #22328.
* Fixed #22328 -- Added --exclude option to ↵Ana Krivokapic2014-04-261-6/+21
| | | | compilemessages and makemessages.
* Set compile messages options as class variableClaude Paroz2014-04-231-1/+3
| | | | Refs #18714. Same logic as options for makemessages commands.
* Fixed #21732 -- Made compilemessages complain about ↵Claude Paroz2014-02-181-40/+70
| | | | | | | | non-writable location Instead of crashing with a CommandError, now a non-writable location of mo files will only make compilemessages complain and continue. Thanks Ramiro Morales for the review.
* Fixed #16905 -- Added extensible checks (nee validation) ↵Russell Keith-Magee2014-01-201-1/+1
| | | | | | | | | | | framework This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-2/+2
|
* Fixed #21488 -- Multiple locales treatment in i18n commands.Ramiro Morales2013-11-231-2/+2
| | | | | | | | | | | Removed multiple locales separated by commas variation (that wasn't working as documented) in favor of simply allowing use of the ``--locale``/``-l`` options more than once for ``makemessages`` and ``compilemessages``. Thanks Romain Beylerian for the report and Claude, Simon for their help. 8750296918072c97a51f6809d19828ce3f1b8d40 from stable/1.6.x.
* Fixed #20990 -- Ensured unicode paths in compilemessagesClaude Paroz2013-11-111-2/+2
| | | | Thanks Gregoire Astruc for the report and furins for the review.
* More attacking E302 violatorsAlex Gaynor2013-11-021-0/+2
|
* Fix #20058: Make compilemessages use stdout instead of ↵Baptiste Mispelon2013-03-161-3/+3
| | | | stderr.
* Made (make|compile)messages check for availability of ↵Ramiro Morales2013-03-101-2/+5
| | | | | | gettext commands. Refs #19584.
* Don't use os.system() in compilemessages.Ramiro Morales2013-02-271-13/+11
| | | | | | | | | | Fixes #19584. This implies stop storing file path command line arguments in envvars as a security measure to start relying on with Popen's shell=False instead, and addition of an 'utils' module. Thanks kmichel_wgs for the report.
* Fixed #19730 -- Don't validate importability of settings ↵Ramiro Morales2013-02-041-1/+1
| | | | | | | | | | by using i18n in management commands. They are handled independently now and the latter can be influenced by the new BaseCommand.leave_locale_alone internal option. Thanks chrischambers for the report, Claude, lpiatek, neaf and gabooo for their work on a patch, originally on refs. #17379.
* Made (make|compile)messages commands accept multiple ↵Craig Blaszczyk2013-01-171-6/+10
| | | | | | locales at once. Thanks Craig Blaszczyk for the initial patch. Refs #17181.
* Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz2012-12-081-2/+3
| | | | Thanks kujiu for the report and Aymeric Augustin for the review.
* [py3] Fixed compilemessages testsClaude Paroz2012-08-081-1/+3
|
* Specified when open should use binary mode.Claude Paroz2012-05-251-1/+1
| | | | Thanks Vinaj Sajip for the help of his django3 branch.
* Made more extensive usage of context managers with open.Claude Paroz2012-05-051-2/+2
|
* Updated compilemessages and makemessages management ↵Adrian Holovaty2012-04-281-1/+1
| | | | commands to change SVN->Git references
* Fixed #6073 -- Made compilemessages 18n management ↵Ramiro Morales2010-10-101-4/+15
| | | | | | command reject PO files with BOM. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14125 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Removed Python 2.3 compat code in translation framework.Jannis Leidel2010-02-161-5/+0
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@12446 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8491 -- Allow settings.LOCALE_PATH to be any ↵Malcolm Tredinnick2008-08-251-2/+2
| | | | | | sequence, not just a tuple. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fix #7910 -- Added a missing import used when ↵Malcolm Tredinnick2008-07-261-1/+1
| | | | | | | | | "django-admin.py compilemessages" is run from a bad root directory. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8079 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7847 -- Removed a whole bunch of unused imports ↵Adrian Holovaty2008-07-221-1/+0
| | | | | | from throughout the codebase. Thanks, julien git-svn-id: http://code.djangoproject.com/svn/django/trunk@8046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5522 -- Moved make-messages, compile-messages and ↵Malcolm Tredinnick2008-07-061-0/+58
daily-cleanup into django-admin.py. They are now called "makemessages", "compilemessages" and "cleanup". This is backwards incompatible for make-messages.py and compile-messages.py, although the old executables still exist for now and print an error pointing the caller to the right command to call. This reduces the number of binaries and man pages Django needs to install. Patch from Janis Leidel. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7844 bcc190cf-cafb-0310-a4f2-bffc1f526a37