| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
e5e044da87800feb6ef63fef1765d8c05022d926.
|
|
|
|
|
|
|
|
| |
language codes
Improved documentation about zh-* deprecation and upgrade path.
Thanks to Baptiste Mispelon for the code reviews.
|
|
|
|
| |
c0a2388a1c4ead1afaec98e4ebc953a772ca3849.
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
#14170 -- Reset i18n cache when settings changed
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
| |
violation still has many occurrences in the tests/ dir so it can't be removed from setup.cfg yet)
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
* Removed trailing whitespace.
* Added newline to EOF if missing.
* Removed blank lines at EOF.
* Removed some stray tabs.
|
|
|
|
| |
header
|
| |
|
|
|
|
| |
comprehensions.
|
|
|
|
|
|
| |
collections.OrderedDict)
Thanks Loic Bistuer for the review.
|
|
|
|
| |
This was a shim for pre-Python 2.7 support.
|
| |
|
|
|
|
| |
country-specific variants
|
|
|
|
|
|
| |
doesn't run into threading issues.
Thanks to maxbublis for the report and sergeykolosov for the patch.
|
|
|
|
|
|
| |
"en-us" and "en" languages
when matching Accept-Language
|
|
|
|
| |
Thanks Lennart Regebro for pointing it out.
|
|
|
|
| |
supported languages in settings.LANGUAGE_CODE
|
|
|
|
| |
prefix used
|
| |
|
|
|
|
| |
get_language_info.
|
|
|
|
|
|
| |
contain the count.
Fixed #19160 (again). Thanks Alexey Boriskin.
|
|
|
|
| |
Many thanks to Alexey Boriskin, Claude Paroz and Julien Phalip.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
#}``-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.
|
|
|
|
| |
Thanks kujiu for the report and Aymeric Augustin for the review.
|
|
|
|
| |
Thanks tyrion for the report.
|
|
|
|
| |
3066).
|
|
|
|
|
| |
The context strings in [n]pgettext functions should not be marked
themselves for translation.
|
|
|
|
| |
and {% blocktrans %} accept literals wrapped in single quotes. Thanks to lanyjie for the report.
|
|
|
|
|
| |
smart_str/smart_text should only be used when a potential lazy
string should be preserved in the result of the function call.
|
|
|
|
| |
That goes actively against the goal of cleaning string handling.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
xrange/range will be dealt with in a separate commit due to the huge
number of changes.
|
| |
|
|
|
|
|
|
|
| |
compatibility.
Thanks Vinay Sajip for the support of his django3 branch and
Jannis Leidel for the review.
|
|
|
|
|
| |
Also replaced StringIO.StringIO by BytesIO in some other appropriate
places. StringIO is not available in Python 3.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|