Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/management/commands/makemessages.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #17375 -- Changed makemessages to use xgettext ↵Sergey Kolosov2015-08-281-104/+197
| | | | | | | | | with --files-from Changed the way makemessages invokes xgettext from one call per translatable file to one call per locale directory (using --files-from). This allows to avoid https://savannah.gnu.org/bugs/index.php?35027 and, as a positive side effect, speeds up localization build.
* Fixed #25123 -- Corrected makemessages --extension help textCesar Canassa2015-07-141-1/+1
|
* Removed django.utils.functional.total_ordering()Tim Graham2015-06-151-1/+2
|
* Fixed #24805 -- Delayed check for locale_dir in makemessagesClaude Paroz2015-05-181-2/+6
| | | | Thanks Wim Feijen for the report.
* Fixed #23271 -- Fixed makemessages crash/test failure ↵daphshez2015-05-011-8/+11
| | | | for some locales.
* Removed unused import in makemessagesClaude Paroz2015-04-011-1/+0
|
* Refs #24500 -- Avoided locale.getpreferredencoding in ↵Claude Paroz2015-04-011-5/+4
| | | | | | makemessages Fixes a regression introduced in 53c2cf1e.
* Fixed #24500 -- Fixed makemessages encoding problems ↵Pakal2015-03-211-10/+24
| | | | retrieving gettext version.
* Refs #24324 -- Fixed makemessages crash when Django is ↵Tim Graham2015-02-171-1/+2
| | | | installed in a non-ASCII path.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-5/+6
|
* Fixed #24149 -- Normalized tuple settings to lists.darkryder2015-02-031-1/+1
|
* Fixed gettext version regexClaude Paroz2015-01-061-1/+1
| | | | | | ...with the theoretical assumption that gettext may once reach a two-digit number. Thanks Walter Doekes for noticing this potential issue.
* Fixed breakage by 6fb9dee4 under Python2+Windows.Ramiro Morales2014-12-301-10/+5
| | | | Refs #23271
* Fixed #23271 -- Don't corrupt PO files on Windows when ↵Ramiro Morales2014-12-291-5/+20
| | | | | | | | | | | | | | updating them. Make sure PO catalog text fetched from gettext programs via standard output isn't corrupted by mismatch between assumed (UTF-8) and real (CP1252) encodings. This can cause mojibake to be written when creating or updating PO files. Also fixes #23311. Thanks to contributor with Trac nick 'danielmenzel' for the report, excellent research and fix.
* Fixed #23788 (2) -- Improved gettext version checkerClaude Paroz2014-12-181-2/+2
| | | | Thanks Tim Graham for the report and initial patch.
* Improved readability of negative condition in makemessagesClaude Paroz2014-11-171-1/+1
| | | | Thanks Berker Peksag for the suggestion.
* Simplified handle_extensions management utilityClaude Paroz2014-11-171-1/+1
| | | | | makemessages now doesn't need any special ignoring logic, after commit bb4a92d784.
* Fixed #23840 -- Fixed makemessages find_files methodIlja Maas2014-11-171-7/+8
| | | | | | | | Changed the handling of extensions to be used for gettext. Now obeying the --extension argument. find_files now only find the given or default extensions and puts only these in the TranslatableFiles. As a result there are no more confusing messages for filetypes (extension) not handled by makemessages.
* Normalized opening a file and decoding its content.Aymeric Augustin2014-11-111-1/+1
| | | | `io.open` is required on Python 2.7. Just `open` would work on Python 3.
* Fixed #23788 -- Used new JavaScript support in recent ↵Claude Paroz2014-11-111-14/+23
| | | | | | | | gettext JavaScript string extraction support has been added in gettext 0.18.3. Thanks Aymeric Augustin for the review.
* Fixed #23717 -- Fixed makemessages crash when ↵Claude Paroz2014-10-271-1/+1
| | | | STATIC_ROOT=None
* Fixed #23583 -- More selectively ignored static/media rootsClaude Paroz2014-10-211-5/+3
| | | | | | Fixed a regression introduced by 28efafa24c. Thanks Michal Čihař for the report and initial patch, and Collin Anderson and Tim Graham for the reviews.
* Fixed #23298 -- Made makemessages actually ignore ↵Ramiro Morales2014-08-151-2/+11
| | | | | | | | | specified dirs on Windows. This was detected by two failures in the i18n.test_extraction of our test suite. Refs #20422, refs #22336
* Fixed #22336 -- Added path matching for makemessages ↵Justin Hamade2014-08-081-1/+2
| | | | | | ignore option This fixes a regression introduced by 9012a9e200.
* Ignored STATIC_ROOT and MEDIA_ROOT in makemessagesClaude Paroz2014-07-161-9/+12
| | | | | | Also alleviate issues with weird file names typically found in MEDIA_ROOT directories (#23010). Thanks Tim Graham for the review.
* Fixed #22835 -- Deprecated NoArgsCommand.Maxime Turcotte2014-06-191-3/+3
|
* Converted remaining management commands to argparseClaude Paroz2014-06-141-30/+34
|
* Applied unicode_literals to makemessages commandClaude Paroz2014-05-241-9/+18
| | | | This also fixes #22686 as some sort of side-effect.
* Updated Django makemessages processClaude Paroz2014-05-191-2/+0
| | | | | | makemessages should now automatically distribute translatable strings in the proper locale files, for Django too (see 50a8ab7cd1e6).
* 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-9/+16
| | | | compilemessages and makemessages.
* Added --previous flag to msgmerge command used by ↵Claude Paroz2014-03-061-34/+23
| | | | | | | | makemessages Also took the opportunity to slightly refactor gettext options so as to ease customization by subclassing the command. Thanks Michal Čihař for the report and initial patch.
* 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.
* Remove unneded open(.., 'U') when on python 3.Marc Tamlyn2014-01-131-2/+3
| | | | | Universal newlines is enabled by default on py3, and the usage of 'U' is deprecated in py3.4.
* Closed file after reading pot fileClaude Paroz2013-11-301-1/+2
| | | | Faulty line was introduced in 50a8ab7cd1.
* Enabled makemessages to support several translation ↵Claude Paroz2013-11-301-62/+96
| | | | | | | | directories Thanks Rémy Hubscher, Ramiro Morales, Unai Zalakain and Tim Graham for the reviews. Also fixes #16084.
* 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.
* Configure settings sooner in makemessagesClaude Paroz2013-11-151-4/+4
| | | | | As get_text_list is using translations, setup settings before calling it.
* Fixed flake8 E251 violationsMilton Mazzarri2013-11-031-1/+1
|
* More attacking E302 violatorsAlex Gaynor2013-11-021-0/+1
|
* Fixed E225 pep8 warnings.Tim Graham2013-10-231-1/+1
|
* Decode from UTF-8 explicitly when reading a text file in ↵Ramiro Morales2013-10-221-3/+6
| | | | | | | | makemessages. This shows itself with Python 3 under Windows where UTF-8 usually isn't the default file I/O encoding and caused one failure and three errors in our test suite under that platform setup.
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-1/+1
|
* Fixed #21209 -- .po file path comments on Windows.Ramiro Morales2013-10-021-2/+8
| | | | | | | | | | Literals from source files with Django template language syntax don't have a '.py' suffix anymore. Also, the '.\' prefix is preserved to respect GNU gettext behavior on that platform. Refs #16903.
* Fixed #20311 -- Make sure makemessages doesn't create ↵Ramiro Morales2013-06-221-3/+3
| | | | | | duplicate Plural-Forms .po file headers. Thanks naktinis for the report and initial patch.
* Removed check for 0.15 version of gettext toolsClaude Paroz2013-05-221-12/+0
| | | | gettext 0.15 has been released in July 2006.
* Fixed #20422 -- Applied makemessage's --ignore patterns ↵Baptiste Mispelon2013-05-181-4/+3
| | | | | | | | to full path Fix makemessage's --ignore patterns being applied to the full path instead of the file name. Thanks to nnseva for the report and the original patch.
* Fixed #20354 -- `makemessages` no longer crashes with ↵Tai Lee2013-05-071-1/+4
| | | | | | | `UnicodeDecodeError` Handle the `UnicodeDecodeError` exception, send a warning to `stdout` with the file name and location, and continue processing other files.
* Made (make|compile)messages check for availability of ↵Ramiro Morales2013-03-101-35/+77
| | | | | | gettext commands. Refs #19584.
* Move management helper function to new utils module.Ramiro Morales2013-02-271-24/+1
| | | | This allows us to iremove an inter-command import.