Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/i18n/commands
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25297 -- Allowed makemessages to work with {% ↵Alexandre Pocquet2015-09-041-1/+13
| | | | trans %} tags that use template filters.
* Fixed #17375 -- Changed makemessages to use xgettext ↵Sergey Kolosov2015-08-282-0/+8
| | | | | | | | | 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 #24257 -- Corrected i18n handling of percent signs.Doug Beck2015-08-124-150/+5
| | | | | | | | | | | | | | | Refactored tests to use a sample project. Updated extraction: * Removed special handling of single percent signs. * When extracting messages from template text, doubled all percent signs so they are not interpreted by gettext as string format flags. All strings extracted by gettext, if containing a percent sign, will now be labeled "#, python-format". Updated translation: * Used "%%" for "%" in template text before calling gettext. * Updated {% trans %} rendering to restore "%" from "%%".
* Fixed #24159 -- Made compilemessages run across all apps.Matthew Somerville2015-06-051-0/+28
| | | | | Updated the command to match the documentation, which states it runs over all .po files.
* Fixed #23271 -- Don't corrupt PO files on Windows when ↵Ramiro Morales2014-12-292-0/+18
| | | | | | | | | | | | | | 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 #18714 -- Added 'fuzzy' compilemessages optionAnton Baklanov2014-11-181-0/+28
|
* Fixed #23788 -- Used new JavaScript support in recent ↵Claude Paroz2014-11-111-0/+1
| | | | | | | | gettext JavaScript string extraction support has been added in gettext 0.18.3. Thanks Aymeric Augustin for the review.
* Fixed #23583 -- More selectively ignored static/media rootsClaude Paroz2014-10-213-0/+2
| | | | | | 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 #22336 -- Added path matching for makemessages ↵Justin Hamade2014-08-081-0/+2
| | | | | | ignore option This fixes a regression introduced by 9012a9e200.
* Added forgotten files from commit 28efafa24c83Claude Paroz2014-07-162-0/+0
|
* Fixed #22773 -- Forced templatize() to return unicodeClaude Paroz2014-06-061-0/+0
|
* Fixed #21732 -- Made compilemessages complain about ↵Claude Paroz2014-02-182-0/+27
| | | | | | | | 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 21406 -- Made blocktrans 'trimmed' option preserve ↵Bouke Haarsma2013-12-041-0/+1
| | | | | | line numbers. Thanks Bouke Haarsma for report, fix and initial patch.
* Fixed #5849 -- Strip whitespace from blocktransBouke Haarsma2013-11-071-0/+12
| | | | | | | | | | | Add the trimmed option to the blocktrans tag to trim any newlines and whitespace from its content. This allows the developer to indent the blocktrans tag without adding new lines and whitespace to the msgid in the PO file. Thanks to mpessas for the initial patch and Dmitri Fedortchenko for the report.
* Rearranged some i18n testsClaude Paroz2013-10-282-598/+0
| | | | | Compilation/extraction tests are now properly skipped when gettext commands are unavailable.
* Fix all violators of E231Alex Gaynor2013-10-261-2/+2
|
* Fixed E225 pep8 warnings.Tim Graham2013-10-232-10/+10
|
* Decode from UTF-8 explicitly when reading a text file in ↵Ramiro Morales2013-10-221-4/+5
| | | | | | | | 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 an I18N test class tearDown method.Ramiro Morales2013-10-211-0/+1
|
* Made test for issue 19552 compatible with Windows.Ramiro Morales2013-10-021-3/+3
| | | | Take in account platform path separator. Refs #19552.
* Made skipping of symlink-related makemessages test smarter.Ramiro Morales2013-10-021-1/+11
| | | | | os.symlink() is available starting with Windows Vista but can fail at runtime.
* Fixed #21209 -- .po file path comments on Windows.Ramiro Morales2013-10-021-3/+19
| | | | | | | | | | 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-223-1/+30
| | | | | | 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-24/+0
| | | | gettext 0.15 has been released in July 2006.
* Fixed #20422 -- Applied makemessage's --ignore patterns ↵Baptiste Mispelon2013-05-182-2/+9
| | | | | | | | 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-072-7/+16
| | | | | | | `UnicodeDecodeError` Handle the `UnicodeDecodeError` exception, send a warning to `stdout` with the file name and location, and continue processing other files.
* Fix #20058: Make compilemessages use stdout instead of ↵Baptiste Mispelon2013-03-161-6/+6
| | | | stderr.
* Made (make|compile)messages check for availability of ↵Ramiro Morales2013-03-102-27/+8
| | | | | | gettext commands. Refs #19584.
* Removed a .mo file incorrectly put under Git control.Ramiro Morales2013-02-272-0/+4
|
* Simplified compilemessages tests a bit.Ramiro Morales2013-02-271-22/+11
|
* Don't use os.system() in compilemessages.Ramiro Morales2013-02-272-0/+40
| | | | | | | | | | 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.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-2615-0/+922