Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/i18n/test_extraction.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25668 -- Misc spelling errorsVille Skyttä2015-11-031-1/+1
|
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-14/+40
|
* Serialized some tests that interact with the filesystem.Aymeric Augustin2015-09-091-6/+10
| | | | | Considering the APIs exercised by these test cases, it's hard to make them independent.
* Fixed #25297 -- Allowed makemessages to work with {% ↵Alexandre Pocquet2015-09-041-5/+27
| | | | trans %} tags that use template filters.
* Fixed #17375 -- Changed makemessages to use xgettext ↵Sergey Kolosov2015-08-281-0/+18
| | | | | | | | | 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-121-36/+4
| | | | | | | | | | | | | | | 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 "%%".
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-6/+6
|
* Fixed #24149 -- Normalized tuple settings to lists.darkryder2015-02-031-2/+1
|
* Fixed typos in code comments.Adam Taylor2015-01-201-1/+1
|
* Fixed #23271 -- Don't corrupt PO files on Windows when ↵Ramiro Morales2014-12-291-5/+24
| | | | | | | | | | | | | | 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-6/+31
| | | | Thanks Tim Graham for the report and initial patch.
* Fixed #23930 -- Added copies of captured_std* managers ↵wrwrwr2014-11-291-6/+2
| | | | | | from CPython's test.support. StringIO import was adapted for compatibility with Python 2.
* Removed superfluous newline.Aymeric Augustin2014-11-171-1/+0
|
* Fixed #23840 -- Fixed makemessages find_files methodIlja Maas2014-11-171-0/+24
| | | | | | | | 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.
* 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 #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-46/+46
| | | | Django test suite.
* Fixed #23717 -- Fixed makemessages crash when ↵Claude Paroz2014-10-271-0/+8
| | | | STATIC_ROOT=None
* Made testing of stdout and stderr more consistent.Loic Bistuer2014-10-221-9/+9
| | | | Refs #23663.
* Fixed #23583 -- More selectively ignored static/media rootsClaude Paroz2014-10-211-30/+38
| | | | | | 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-17/+29
| | | | | | ignore option This fixes a regression introduced by 9012a9e200.
* Ignored STATIC_ROOT and MEDIA_ROOT in makemessagesClaude Paroz2014-07-161-4/+16
| | | | | | Also alleviate issues with weird file names typically found in MEDIA_ROOT directories (#23010). Thanks Tim Graham for the review.
* Fixed clash caused by the newly introduced -e shorthand ↵Loic Bistuer2014-05-021-0/+13
| | | | | | for makemessages --exclude. This fixes a regression caused by 0707b82. Refs #22328.
* Fixed #22328 -- Added --exclude option to ↵Ana Krivokapic2014-04-261-2/+67
| | | | compilemessages and makemessages.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-1/+1
|
* Fixed 21406 -- Made blocktrans 'trimmed' option preserve ↵Bouke Haarsma2013-12-041-20/+46
| | | | | | line numbers. Thanks Bouke Haarsma for report, fix and initial patch.
* Enabled makemessages to support several translation ↵Claude Paroz2013-11-301-0/+46
| | | | | | | | 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-29/+23
| | | | | | | | | | | 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 #5849 -- Strip whitespace from blocktransBouke Haarsma2013-11-071-0/+11
| | | | | | | | | | | 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.
* PEP8 cleanupJason Myers2013-11-031-6/+12
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed all E261 warningscoagulant2013-11-031-1/+1
|
* Rearranged some i18n testsClaude Paroz2013-10-281-0/+488
Compilation/extraction tests are now properly skipped when gettext commands are unavailable.