Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/utils/translation
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix python2 breakage caused by ↵Baptiste Mispelon2013-11-051-2/+2
| | | | e5e044da87800feb6ef63fef1765d8c05022d926.
* Fixed #18419 -- Full backwards compatibility for old ↵Bouke Haarsma2013-11-051-17/+15
| | | | | | | | language codes Improved documentation about zh-* deprecation and upgrade path. Thanks to Baptiste Mispelon for the code reviews.
* Fixed python3 breakage introduced by ↵Baptiste Mispelon2013-11-041-1/+1
| | | | c0a2388a1c4ead1afaec98e4ebc953a772ca3849.
* Fixed #18149 -- Changed language codes for ChineseBouke Haarsma2013-11-041-0/+17
| | | | | | | 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.
* Merge pull request #1821 from Bouke/tickets/14170Aymeric Augustin2013-11-041-0/+13
|\ | | | | #14170 -- Reset i18n cache when settings changed
| * Fixed #14170 -- Reset i18n cache when settings changeBouke Haarsma2013-11-031-0/+13
| |
* | Fixed all E226 violationsAlex Gaynor2013-11-032-6/+6
| |
* | Correct flake8 E302 violationsRay Ashman Jr2013-11-033-0/+57
| |
* | Fixed flake8 E241Boryslav Larin2013-11-021-1/+1
|/
* Fixed all the E203 violationsAlex Gaynor2013-10-271-1/+1
|
* Fixed up some more flake8 violations (this particular ↵Alex Gaynor2013-10-261-1/+1
| | | | violation still has many occurrences in the tests/ dir so it can't be removed from setup.cfg yet)
* Fixed #5789 -- Changed LocaleMiddleware session variable ↵Bouke Haarsma2013-10-221-1/+2
| | | | | | | | | | to '_language'. 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.
* Fixed #21270 -- Fixed E701 pep8 warningsAlasdair Nicol2013-10-171-1/+2
|
* Whitespace cleanup.Tim Graham2013-10-101-1/+0
| | | | | | | * Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
* Fixed #21078 -- Handled additional bad Accept-Language ↵Josh Mize2013-09-091-1/+4
| | | | header
* Fixed "indentation is not a multiple of four" pep8 issues.Tim Graham2013-09-031-1/+1
|
* Fixed #20989 -- Removed useless explicit list ↵Simon Charette2013-08-301-1/+1
| | | | comprehensions.
* Deprecated SortedDict (replaced with ↵Curtis Maloney2013-08-041-4/+4
| | | | | | collections.OrderedDict) Thanks Loic Bistuer for the review.
* Deprecated django.utils.importlibClaude Paroz2013-07-291-1/+1
| | | | This was a shim for pre-Python 2.7 support.
* Removed obsolete attribute of DjangoTranslationClaude Paroz2013-05-251-1/+0
|
* Fixed #11915: generic Accept-Language matches ↵Łukasz Langa2013-05-191-18/+32
| | | | country-specific variants
* Fixed #14894 -- Ensure that activating a translation ↵Florian Apolloner2013-05-181-1/+1
| | | | | | doesn't run into threading issues. Thanks to maxbublis for the report and sergeykolosov for the patch.
* Fixes #19919: get_language_from_request() disregards ↵Łukasz Langa2013-05-181-12/+15
| | | | | | "en-us" and "en" languages when matching Accept-Language
* Replaced an antiquated pattern.Aymeric Augustin2013-05-171-1/+4
| | | | Thanks Lennart Regebro for pointing it out.
* Fixes #19763 - LocaleMiddleware should check for ↵Łukasz Langa2013-02-242-13/+29
| | | | supported languages in settings.LANGUAGE_CODE
* Fixes #17866: Vary: Accept-Language header when language ↵Łukasz Langa2013-02-232-3/+3
| | | | prefix used
* Changed %r to %s in get_language_info error message.Konrad Hałas2013-02-231-2/+2
|
* Fixed #19811 - Added language code fallback in ↵Konrad Hałas2013-02-231-0/+6
| | | | get_language_info.
* Made ungettext_lazy usable for messages that do not ↵Aymeric Augustin2013-02-021-1/+7
| | | | | | contain the count. Fixed #19160 (again). Thanks Alexey Boriskin.
* Fixed #19160 -- Made lazy plural translations usable.Aymeric Augustin2013-01-301-3/+32
| | | | Many thanks to Alexey Boriskin, Claude Paroz and Julien Phalip.
* Fixed #19552 -- Enhanced makemessages handling of ``{# ↵Ramiro Morales2013-01-292-1/+35
| | | | | | | | | | | | | | | | | | | | | | | #}``-style template 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.
* Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz2012-12-081-3/+4
| | | | Thanks kujiu for the report and Aymeric Augustin for the review.
* Fixed #19272 -- Fixed gettext_lazy returned type on Python 2Claude Paroz2012-11-141-1/+2
| | | | Thanks tyrion for the report.
* Fixed #19142 -- Language codes can include numbers (RFC ↵Jan Bednařík2012-10-211-2/+3
| | | | 3066).
* Build context strings out of [u|n]gettextClaude Paroz2012-10-151-4/+6
| | | | | The context strings in [n]pgettext functions should not be marked themselves for translation.
* Fixed #18881 -- Made the context option in {% trans %} ↵Julien Phalip2012-09-281-2/+2
| | | | and {% blocktrans %} accept literals wrapped in single quotes. Thanks to lanyjie for the report.
* Replaced some smart_xxx by force_xxx equivalentClaude Paroz2012-08-301-4/+4
| | | | | smart_str/smart_text should only be used when a potential lazy string should be preserved in the result of the function call.
* [py3] Stopped attempting to translate bytes.Aymeric Augustin2012-08-182-5/+12
| | | | That goes actively against the goal of cleaning string handling.
* [py3] Ported django.utils.translation.Aymeric Augustin2012-08-071-17/+24
|
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-072-5/+5
| | | | | | | | | | | * 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.
* [py3] Switched to Python 3-compatible imports.Aymeric Augustin2012-07-221-1/+1
| | | | | xrange/range will be dealt with in a separate commit due to the huge number of changes.
* [py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin2012-07-221-7/+8
|
* Fixed #18269 -- Applied unicode_literals for Python 3 ↵Claude Paroz2012-06-072-21/+26
| | | | | | | compatibility. Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
* Replaced cStringIO.StringIO by io.BytesIO.Claude Paroz2012-05-051-19/+15
| | | | | Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3.
* Fixed #18040 -- Removed so-called project-level locale ↵Ramiro Morales2012-04-012-30/+0
| | | | | | | | | | | trees from the list 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
* Fixed #17873 -- Removed stale code from translation ↵Jannis Leidel2012-03-121-7/+0
| | | | | | utilities that should 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
* Fixed #17720 -- Stopped the LocaleMiddleware from ↵Jannis Leidel2012-02-183-7/+11
| | | | | | overeagerly using the 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
* Fixed #17555 -- Added support for a missing trailing ↵Jannis Leidel2012-02-041-1/+1
| | | | | | slash when redirecting based on the browser language. Thanks, neaf. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Made makemessages leave `'%%'` sequences untouched when ↵Ramiro Morales2011-12-111-1/+1
| | | | | | | | | | | | | extracting translatable literals from blocktrans template tags. This makes it consistent with behavior introduced when fixing #11240 in processing of literal passed to the trans tag to avoid double escaping (i.e. `'%%%%'` sequences in resulting PO files.) Also, cleaned up tests changes from r17190 (removed commented out code and implemented compatibility with Python 2.5.) git-svn-id: http://code.djangoproject.com/svn/django/trunk@17192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11240 -- Made makemessages i18n command escape % ↵Ramiro Morales2011-12-111-0/+2
| | | | | | | | | | | | | | | | symbols in literals 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