summaryrefslogtreecommitdiff
path: root/tests/regressiontests/i18n
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-03Fixed #19730 -- Don't validate importability of settings by using i18n in ↵Ramiro Morales
management commands. They are handled independently now and the latter can be influenced by the new BaseCommand.leave_locale_alone internal option. Thanks chrischambers for the report, Claude, lpiatek, neaf and gabooo for their work on a patch, originally on refs. #17379.
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-29Fixed #19552 -- Enhanced makemessages handling of ``{# #}``-style template ↵Ramiro Morales
comments. They are simply ignored now. This allows for a more correct behavior when they are placed before translatable constructs on the same line. Previously, the latter were wrongly ignored because the former were preserved when converting template code to the internal Python-syntax form later fed to xgettext but Python has no ``/* ... */``-style comments. Also, special comments directed to translators are now only taken in account when they are located at the end of a line. e.g.:: {# Translators: ignored #}{% trans "Literal A" %}{# Translators: valid, associated with "Literal B" below #} {% trans "Literal B" %} Behavior of ``{% comment %}...{% endcomment %}``tags remains unchanged. Thanks juneih at redpill-linpro dot com for the report and Claude for his work on the issue.
2013-01-26Fixed #19589 -- assertRegexpMatches is deprecated in Python 3.3.Aymeric Augustin
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-24More i18n makemessages tests tweaks.Ramiro Morales
2013-01-21Simplified a i18n test.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-17Simplified i18n commands tests.Ramiro Morales
2013-01-16Modified makemessages so it creates .pot files once per invocation.Ramiro Morales
It creates a `locale/django.pot` file once instead of one `locale/<locale_code>/django.pot` file for every locale involved. Thanks Michal Čihař for the report and patch.
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.
2013-01-11Fixed #19488 -- Made i18n_patterns redirect work with non-slash-ending pathsClaude Paroz
Thanks Daniel Gerzo for the report and the initial patch.
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-09-27Fixed #18881 -- Made the context option in {% trans %} and {% blocktrans %} ↵Julien Phalip
accept literals wrapped in single quotes. Thanks to lanyjie for the report.
2012-09-07Fixed tests that I broke a few commits ago.Alex Gaynor
2012-09-07[py3k] Silence many warnings while running the tests.Alex Gaynor
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-08-08[py3] Fixed compilemessages testsClaude Paroz
2012-08-08[py3] Used compatible imports of StringIO.Aymeric Augustin
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin
2012-07-22[py3] Replaced basestring by six.string_types.Aymeric Augustin
2012-07-22[py3] Removed longs.Aymeric Augustin
2012-07-18Fixed #18479 -- Stopped makemessages raising error on gettext warningsClaude Paroz
Thanks Niels Busch for the initial patch.
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-27Used call_command in i18n compilation tests.Claude Paroz
Now that call_command does not raise SystemExit any more, we can use call_command again for testing compilemessages.
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-05-05Replaced cStringIO.StringIO by io.BytesIO.Claude Paroz
Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3.
2012-05-03Used catch_warnings instead of save/restore methods. Refs #17049.Claude Paroz
2012-05-03Removed unused file from i18n regression tests.Ramiro Morales
2012-04-24Fixed #18037 -- Changed behaviour of url and ssi template tags to the new ↵Claude Paroz
syntax, as per official deprecation timeline. Thanks Ramiro Morales and Jannis Leidel for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17934 bcc190cf-cafb-0310-a4f2-bffc1f526a37
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