summaryrefslogtreecommitdiff
path: root/django/utils/translation
AgeCommit message (Collapse)Author
2013-11-06flake8 fixesAlex Gaynor
2013-11-06Distinguish between browser-deprecated locales and internallyBaptiste Mispelon
deprecated ones. Thanks to bouke for pointing this out.
2013-11-05Fix python2 breakage caused by e5e044da87800feb6ef63fef1765d8c05022d926.Baptiste Mispelon
2013-11-05Fixed #18419 -- Full backwards compatibility for old language codesBouke Haarsma
Improved documentation about zh-* deprecation and upgrade path. Thanks to Baptiste Mispelon for the code reviews.
2013-11-04Fixed python3 breakage introduced by c0a2388a1c4ead1afaec98e4ebc953a772ca3849.Baptiste Mispelon
2013-11-04Fixed #18149 -- Changed language codes for ChineseBouke Haarsma
Language codes for Chinese are zh_Hans (Simplified) and zh_Hant (Traditional). Added support for browsers that still send the deprecated language codes. Thanks to Olli Wang for the report.
2013-11-04Merge pull request #1821 from Bouke/tickets/14170Aymeric Augustin
#14170 -- Reset i18n cache when settings changed
2013-11-03Fixed all E226 violationsAlex Gaynor
2013-11-03Fixed #14170 -- Reset i18n cache when settings changeBouke Haarsma
2013-11-02Correct flake8 E302 violationsRay Ashman Jr
2013-11-02Fixed flake8 E241Boryslav Larin
2013-10-26Fixed all the E203 violationsAlex Gaynor
2013-10-26Fixed up some more flake8 violations (this particular violation still has ↵Alex Gaynor
many occurrences in the tests/ dir so it can't be removed from setup.cfg yet)
2013-10-22Fixed #5789 -- Changed LocaleMiddleware session variable to '_language'.Bouke Haarsma
The old 'django_language' variable will still be read from in order to migrate users. The backwards-compatability shim will be removed in Django 1.8. Thanks to jdunck for the report and stugots for the initial patch.
2013-10-17Fixed #21270 -- Fixed E701 pep8 warningsAlasdair Nicol
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-09-09Fixed #21078 -- Handled additional bad Accept-Language headerJosh Mize
2013-09-03Fixed "indentation is not a multiple of four" pep8 issues.Tim Graham
2013-08-30Fixed #20989 -- Removed useless explicit list comprehensions.Simon Charette
2013-08-04Deprecated SortedDict (replaced with collections.OrderedDict)Curtis Maloney
Thanks Loic Bistuer for the review.
2013-07-29Deprecated django.utils.importlibClaude Paroz
This was a shim for pre-Python 2.7 support.
2013-05-25Removed obsolete attribute of DjangoTranslationClaude Paroz
2013-05-19Fixed #11915: generic Accept-Language matches country-specific variantsŁukasz Langa
2013-05-18Fixed #14894 -- Ensure that activating a translation doesn't run into ↵Florian Apolloner
threading issues. Thanks to maxbublis for the report and sergeykolosov for the patch.
2013-05-18Fixes #19919: get_language_from_request() disregards "en-us" and "en" languagesŁukasz Langa
when matching Accept-Language
2013-05-17Replaced an antiquated pattern.Aymeric Augustin
Thanks Lennart Regebro for pointing it out.
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-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-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.
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-21Fixed #19142 -- Language codes can include numbers (RFC 3066).Jan Bednařík
2012-10-15Build context strings out of [u|n]gettextClaude Paroz
The context strings in [n]pgettext functions should not be marked themselves for translation.
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-08-30Replaced some smart_xxx by force_xxx equivalentClaude Paroz
smart_str/smart_text should only be used when a potential lazy string should be preserved in the result of the function call.
2012-08-18[py3] Stopped attempting to translate bytes.Aymeric Augustin
That goes actively against the goal of cleaning string handling.
2012-08-07[py3] Ported django.utils.translation.Aymeric Augustin
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
2012-07-22[py3] Switched to Python 3-compatible imports.Aymeric Augustin
xrange/range will be dealt with in a separate commit due to the huge number of changes.
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.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-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-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-12Fixed #17873 -- Removed stale code from translation utilities that should ↵Jannis Leidel
have been removed a while ago. Thanks, Aymeric Augustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17684 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-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