django1/tests/i18n
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
..
commands Fixed #24257 -- Corrected i18n handling of percent signs. 2015-08-12 10:23:34 -04:00
contenttypes Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
exclude Fixed #22328 -- Added --exclude option to compilemessages and makemessages. 2014-04-26 17:07:44 +07:00
other Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
other2 Fixed #20477: Allowed list of modules for FORMAT_MODULE_PATH 2014-05-21 07:35:47 -04:00
patterns Fixed #21927 -- Made application and instance namespaces more distinct. 2015-06-08 15:12:20 -04:00
project_dir Enabled makemessages to support several translation directories 2013-11-30 11:00:23 +01:00
resolution Removed superfluous models.py files. 2013-12-17 11:16:48 +01:00
sampleproject Fixed #24257 -- Corrected i18n handling of percent signs. 2015-08-12 10:23:34 -04:00
__init__.py Fixed #21307 -- Moved TransRealMixin to django.test.utils. 2013-10-22 22:19:56 -03:00
forms.py Fixed #24219 -- Moved SelectDateWidget together with the other widgets 2015-01-27 22:40:02 +07:00
models.py PEP8 cleanup 2013-11-02 23:50:49 -05:00
test_compilation.py Fixed #24257 -- Corrected i18n handling of percent signs. 2015-08-12 10:23:34 -04:00
test_extraction.py Fixed #24257 -- Corrected i18n handling of percent signs. 2015-08-12 10:23:34 -04:00
test_percents.py Fixed #24257 -- Corrected i18n handling of percent signs. 2015-08-12 10:23:34 -04:00
tests.py Fixed flake8 warnings on Python 3. 2015-06-15 11:27:09 -04:00
urls.py Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00