summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests/test_i18n.py
AgeCommit message (Collapse)Author
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-08-08Refs #25236 -- Removed ifequal/ifnotequal usage.Tim Graham
2015-07-01Fixed #21695 -- Added asvar option to blocktrans.Matthew Somerville
Thanks Bojan Mihelac for the initial patch.
2015-06-02Fixed #24230 -- Added translated language name for i18n template tag/filter.Tomáš Ehrlich
2015-05-21Fixed #17085, #24783 -- Refactored template library registration.Preston Timmons
* Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
2015-03-02Fixed #24372 - Replaced TokenParser usage with traditional parsing.Preston Timmons
2014-12-28Isolated template tests from Django settings.Aymeric Augustin
2014-12-06Fixed #23958 -- Rewrote filter tests as unit tests.Preston Timmons
2014-12-03Converted recently refactored templates tests to SimpleTestCase.Ramiro Morales
These test methods don't need DB setup/teardown. Refs #23768 and b872134b.
2014-12-02Fixed #23768 -- Rewrote template tests as unit tests.Preston Timmons