summaryrefslogtreecommitdiff
path: root/tests/regressiontests/i18n/tests.py
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-24Fixes #19763 - LocaleMiddleware should check for supported languages in ↵Łukasz Langa
settings.LANGUAGE_CODE
2013-02-23Fixes #17866: Vary: Accept-Language header when language prefix usedŁukasz Langa
2013-02-23One last final fix for 0ad76843. Tested on py3 and py2Honza Kral
2013-02-23Changed %r to %s in get_language_info error message.Konrad Hałas
2013-02-23Fixed #19811 - Added language code fallback in get_language_info.Konrad Hałas
2013-02-23Fixed #19686 -- Added HTML5 number input typeClaude Paroz
Thanks Simon Charette for his help on the patch. Refs #16630.
2013-02-15Improved input sanitizing with thousand separatorsClaude Paroz
For languages with non-breaking space as thousand separator, standard space input should also be allowed, as few people know how to enter non-breaking space on keyboards. Refs #17217. Thanks Alexey Boriskin for the report and initial patch.
2013-02-15Updated FormattingTests test case to use settings contextsClaude Paroz
2013-02-02Made ungettext_lazy usable for messages that do not contain the count.Aymeric Augustin
Fixed #19160 (again). Thanks Alexey Boriskin.
2013-01-30Fixed #19160 -- Made lazy plural translations usable.Aymeric Augustin
Many thanks to Alexey Boriskin, Claude Paroz and Julien Phalip.
2013-01-25Revert "Patch by Claude for #16084."Ramiro Morales
This reverts commit 2babab0bb351ff7a13fd23795f5e926a9bf95d22.
2013-01-25Patch by Claude for #16084.Ramiro Morales
2013-01-17Made (make|compile)messages commands accept multiple locales at once.Craig Blaszczyk
Thanks Craig Blaszczyk for the initial patch. Refs #17181.
2013-01-16Fixed #17008 -- Added makemessages option to not remove .pot files.Ramiro Morales
Thanks airstrike for the report and initial patch, Julien for an enhanced patch and Jannis for reviewing.
2012-12-24Use new TestCase methods for equality comparisonsIan Clelland
2012-12-08Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review.
2012-11-14Fixed #19272 -- Fixed gettext_lazy returned type on Python 2Claude Paroz
Thanks tyrion for the report.
2012-10-23Fixed #19088 -- Always escape % inside blocktrans tagClaude Paroz
Thanks vlinhart for the report and Łukasz Rekucki for the patch.
2012-10-22Cleaned up i18n regression testsClaude Paroz
2012-10-21Fixed #19142 -- Language codes can include numbers (RFC 3066).Jan Bednařík
2012-08-23Fixed #18798 -- Renamed conflicting test methods in i18n testsAlexey Boriskin
2012-08-18[py3] Ported django.utils.safestring.Aymeric Augustin
Backwards compatibility aliases were created under Python 2.
2012-08-18[py3] Stopped attempting to translate bytes.Aymeric Augustin
That goes actively against the goal of cleaning string handling.
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin
2012-07-22[py3] Removed longs.Aymeric Augustin
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-05-28Fixed #18393 -- Prevented blocktrans to crash when a variable name is badly ↵Julien Phalip
formatted.
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
2012-03-31Fixed #18040 -- Removed so-called project-level locale trees from the list ↵Ramiro Morales
of paths the translation loading process takes in account. Deprecated in Django 1.3. Removed completely for Django 1.5. Thanks Claude for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17861 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-30Removed with_statement imports, useless in Python >= 2.6. Refs #17965. ↵Claude Paroz
Thanks jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-18Fixed #17720 -- Stopped the LocaleMiddleware from overeagerly using the ↵Jannis Leidel
request path for language activation if it's actually not wanted. Thanks to Anssi Kääriäinen for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-10Updated a few localization formats to stop the changes done in r17473 from ↵Jannis Leidel
breaking the tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-04Fixed #17555 -- Added support for a missing trailing slash when redirecting ↵Jannis Leidel
based on the browser language. Thanks, neaf. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-31Fixed #16921 -- Added assertHTMLEqual and assertHTMLNotEqual assertions, and ↵Carl Meyer
converted Django tests to use them where appropriate. Thanks Greg Müllegger. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-24Added a lower level test for numberformat when grouping is 0 and ↵Aymeric Augustin
force_grouping is True. Thanks Claude Paroz. Refs #17414. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-11Fixed #11240 -- Made makemessages i18n command escape % symbols in literals ↵Ramiro Morales
passed to the trans tag. This avoids problems with unintended automatic detection, marking and validation of Python string formatting specifiers performed by xgettext(1)/msgfmt(1) that stem from the fact that under the hood makemessages converts templates to Python code before passing them to xgettext. This also makes it consistent with its behavior on literals passed to the blocktrans tag. Thanks Jannis and claude for reviewing and feedback. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-03Fixed a couple of typos.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-11Fixed #16903 -- Added `--no-location` option to the `makemessages` command ↵Julien Phalip
to not write '#: filename:line' comment lines in language files. Thanks to alpar for the suggestion and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-20Fixed 16938 -- Ensured that the active locale's formats take precedence over ↵Julien Phalip
the default settings even if they would be interpreted as False in a conditional test (e.g. 0 or empty string). Thanks to pikerr for the report and initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17017 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-19Fixed #14806 -- Added support for contextual translations to the `trans` and ↵Julien Phalip
`blocktrans` template tags. Thanks to jtiai for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-18Fixed #17054 -- Ensured the test suite runs when gettext isn't available, ↵Aymeric Augustin
after r16981. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17013 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Convert the remainder of the relative imports in the tests to be absolute ↵Alex Gaynor
imports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-22Fixed #16909 -- Pass language to get_format_modules when calling it from ↵Jannis Leidel
get_format to make sure the correct module is returned. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16884 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-16Fixed #16803 -- Use model verbose_name directly as ContentType unicode ↵Carl Meyer
representation so it can be translated. Thanks to bronger for the report and Ivan Sagalaev for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16839 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-08Fixed #16721 -- Made sure that blocktrans correctly handles percents (%), ↵Jannis Leidel
even in the plural block. Thanks for the initial patch, Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16730 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-08Fixed #16516 -- Relaxed the blocktrans rendering a little by falling back to ↵Jannis Leidel
the default language if resolving one of the arguments fails, raising a KeyError. Thanks, Claude Paroz and Aymeric Augustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16723 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-26Fixed #16322 -- Fixed Accept-Language parsing to allow spaces around ↵Jannis Leidel
semicolons. Thanks, Max Arnold. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-15Fixed #11585 -- Added ability to translate and prefix URL patterns with a ↵Jannis Leidel
language code as an alternative method for language discovery. Many thanks to Orne Brocaar for his initial work and Carl Meyer for feedback. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-07Fixed #15263 -- Added support for format localization to the now template ↵Jannis Leidel
tag. Thanks to danielr and dmclain. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16172 bcc190cf-cafb-0310-a4f2-bffc1f526a37