summaryrefslogtreecommitdiff
path: root/tests/i18n/commands
AgeCommit message (Collapse)Author
2025-08-12Fixed #36368 -- Prevented duplicate locale paths and write_po_file calls in ↵michalpokusa
makemessages.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-07-01Refs #32144 -- Made makemessages remove temporary files on preprocessing error.Carlton Gibson
Co-authored-by: Anders Hovmöller <anders.hovmoller@dryft.se>
2021-06-07Fixed typos in test comments.luzpaz
2020-10-07Fixed #31850 -- Fixed BasicExtractorTests.test_extraction_warning with ↵Max Smolens
xgettext 0.21+. "format string with unnamed arguments cannot be properly localized" warning is not raised in xgettext 0.21+. This patch uses a message that causes an xgettext warning regardless of the version.
2019-12-18Refs #30585 -- Updated project templates and tests to use (block)translate tags.Mike Hansen
2019-12-18Fixed #30585 -- Added {% translate %} and {% blocktranslate %} template tags.Mike Hansen
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2016-05-02Fixed #26341 (again) -- Addressed multiple occurrences per line use caseClaude Paroz
2016-04-30Fixed #26341 -- Fixed makemessages breaking location comments for HTML filesClaude Paroz
Thanks Sylvain Garancher for the report and Veranika Sabiashchanskaya for the initial patch.
2016-01-23Fixed #26093 -- Allowed escape sequences extraction by gettext on Python 3Claude Paroz
Thanks Sylvain Fankhauser for the report and Tim Graham for the review.
2015-12-18Fixed #25915 -- Allowed language not in Django's default LANGUAGESClaude Paroz
This fixes a regression introduced by a5f6cbce07. Thanks Gavin Wahl for the report and Tim Graham for the review.
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-11-19Fixed #25677 -- Prevented decoding errors in/after Popen callsClaude Paroz
Thanks Gavin Wahl for the report and Tim Graham for the review.
2015-09-04Fixed #25297 -- Allowed makemessages to work with {% trans %} tags that use ↵Alexandre Pocquet
template filters.
2015-08-28Fixed #17375 -- Changed makemessages to use xgettext with --files-fromSergey Kolosov
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.
2015-08-12Fixed #24257 -- Corrected i18n handling of percent signs.Doug Beck
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 "%%".
2015-06-04Fixed #24159 -- Made compilemessages run across all apps.Matthew Somerville
Updated the command to match the documentation, which states it runs over all .po files.
2014-12-29Fixed #23271 -- Don't corrupt PO files on Windows when updating them.Ramiro Morales
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.
2014-11-18Fixed #18714 -- Added 'fuzzy' compilemessages optionAnton Baklanov
2014-11-11Fixed #23788 -- Used new JavaScript support in recent gettextClaude Paroz
JavaScript string extraction support has been added in gettext 0.18.3. Thanks Aymeric Augustin for the review.
2014-10-21Fixed #23583 -- More selectively ignored static/media rootsClaude Paroz
Fixed a regression introduced by 28efafa24c. Thanks Michal Čihař for the report and initial patch, and Collin Anderson and Tim Graham for the reviews.
2014-08-08Fixed #22336 -- Added path matching for makemessages ignore optionJustin Hamade
This fixes a regression introduced by 9012a9e200.
2014-07-16Added forgotten files from commit 28efafa24c83Claude Paroz
2014-06-06Fixed #22773 -- Forced templatize() to return unicodeClaude Paroz
2014-02-18Fixed #21732 -- Made compilemessages complain about non-writable locationClaude Paroz
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.
2013-12-04Fixed 21406 -- Made blocktrans 'trimmed' option preserve line numbers.Bouke Haarsma
Thanks Bouke Haarsma for report, fix and initial patch.
2013-11-08Fixed #5849 -- Strip whitespace from blocktransBouke Haarsma
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.
2013-10-28Rearranged some i18n testsClaude Paroz
Compilation/extraction tests are now properly skipped when gettext commands are unavailable.
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-23Fixed E225 pep8 warnings.Tim Graham
2013-10-22Decode from UTF-8 explicitly when reading a text file in makemessages.Ramiro Morales
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.
2013-10-21Fixed an I18N test class tearDown method.Ramiro Morales
2013-10-02Made test for issue 19552 compatible with Windows.Ramiro Morales
Take in account platform path separator. Refs #19552.
2013-10-02Made skipping of symlink-related makemessages test smarter.Ramiro Morales
os.symlink() is available starting with Windows Vista but can fail at runtime.
2013-10-01Fixed #21209 -- .po file path comments on Windows.Ramiro Morales
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.
2013-06-22Fixed #20311 -- Make sure makemessages doesn't create duplicate Plural-Forms ↵Ramiro Morales
.po file headers. Thanks naktinis for the report and initial patch.
2013-05-22Removed check for 0.15 version of gettext toolsClaude Paroz
gettext 0.15 has been released in July 2006.
2013-05-18Fixed #20422 -- Applied makemessage's --ignore patterns to full pathBaptiste Mispelon
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.
2013-05-07Fixed #20354 -- `makemessages` no longer crashes with `UnicodeDecodeError`Tai Lee
Handle the `UnicodeDecodeError` exception, send a warning to `stdout` with the file name and location, and continue processing other files.
2013-03-16Fix #20058: Make compilemessages use stdout instead of stderr.Baptiste Mispelon
2013-03-10Made (make|compile)messages check for availability of gettext commands.Ramiro Morales
Refs #19584.
2013-02-26Removed a .mo file incorrectly put under Git control.Ramiro Morales
2013-02-26Simplified compilemessages tests a bit.Ramiro Morales
2013-02-26Don't use os.system() in compilemessages.Ramiro Morales
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.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner