1
0
mirror of https://github.com/django/django.git synced 2024-12-23 17:46:27 +00:00
django/tests/template_tests/syntax_tests
Doug Beck b7508896fb Fixed #24257 -- Corrected i18n handling of percent signs.
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-12 10:23:34 -04:00
..
__init__.py
test_autoescape.py
test_basic.py Fixed #24257 -- Corrected i18n handling of percent signs. 2015-08-12 10:23:34 -04:00
test_builtins.py
test_cache.py
test_comment.py
test_cycle.py Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
test_exceptions.py
test_extends.py Refs #25236 -- Removed ifequal/ifnotequal usage. 2015-08-08 07:33:15 -04:00
test_filter_syntax.py
test_filter_tag.py
test_firstof.py Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
test_for.py Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
test_i18n.py Fixed #24257 -- Corrected i18n handling of percent signs. 2015-08-12 10:23:34 -04:00
test_if_changed.py
test_if_equal.py
test_if.py Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
test_include.py
test_invalid_string.py
test_list_index.py
test_load.py
test_lorem.py
test_multiline.py
test_named_endblock.py
test_now.py
test_numpy.py
test_regroup.py
test_setup.py
test_simple_tag.py
test_spaceless.py
test_ssi.py Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
test_static.py
test_template_tag.py
test_url.py Fixed #24127 -- Changed the default current_app to the current namespace. 2015-07-27 09:14:48 -04:00
test_verbatim.py
test_width_ratio.py
test_with.py