| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
| |
language override
Thanks David Nelson Adamec for the report and Tim Graham for the review.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
django.template.exceptions.
With the introduction of multiple template engines these exceptions are no
longer DTL-specific. It makes more sense for them to be moved out of
DTL-related modules.
|
|
|
|
| |
assertEqual in tests.
|
|
|
|
|
|
| |
gettext.
The locale code can contain a variant after @, so allowed that.
|
|
|
|
|
|
|
| |
None value
get_language() can return None when translations are deactivated.
Thanks Nicola Peduzzi for the reporti and Tim Graham for the review.
|
| |
|
|
|
|
| |
traditional parsing.
|
|
|
|
|
| |
Thanks Tomasz Kontusz for the report, Baptiste Mispelon for
analysis and Tim Graham for the review.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
other widgets
and deprecated django.forms.extras.
Thanks Berker Peksag and Tim Graham for the reviews.
|
| |
|
|
|
|
|
|
|
| |
translations are deactivated
This fixes a regression caused by f7c287fca9. Thanks Markus Holtermann
for identifying the regression.
|
|
|
|
| |
Django test suite.
|
|
|
|
| |
Refs commit 11f307a5a8.
|
|
|
|
|
|
|
| |
Translating an empty string used to return the gettext catalog
metadata instead of the empty string.
Thanks Ned Batchelder for the suggestion, Tim Graham for the review
and Anton Berezin and Claude Paroz for contributions to the patch.
|
|
|
|
| |
output formats.
|
| |
|
|
|
|
|
|
| |
lazy_number
Thanks kwist for the report and the initial patch.
|
| |
|
|
|
|
| |
determined in __enter__
|
|
|
|
| |
usable as a decorator.
|
|
|
|
|
| |
Thanks Klaas van Schelven for the report and Tim Graham for the
review.
|
|
|
|
|
|
|
|
|
|
| |
languages
This fixes the Chinese language issues described in #23005 but
also provides for other fallback exceptions by updating the
LANG_INFO structure.
Thanks caxekis at gmail.com for the report and Tim Graham for the
review.
|
|
|
|
|
|
|
|
|
| |
Previously the FORMAT_MODULE_PATH setting only accepted one string (dotted
module path). A feature has been added to also allow a list of strings.
This is useful when using several reusable third party apps that define new
formats. We can now use them all and we can even override some of the formats
by providing a project-wide format module.
|
|
|
|
|
|
| |
bytestring input
Thanks ygbo for the report.
|
|
|
|
| |
Also fixes #18192 and #21055.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
By removing the 'supported' keyword from the detection methods and only relying
on a cached settings.LANGUAGES, the speed of said methods has been improved;
around 4x raw performance. This allows us to stop checking Python's incomplete
list of locales, and rely on a less restrictive regular expression for
accepting certain locales.
HTTP Accept-Language is defined as being case-insensitive, based on this fact
extra performance improvements have been made; it wouldn't make sense to
check for case differences.
|
|
|
|
| |
languages and cleaned up language session key use
|
|
|
|
| |
Fixed #21688. Refs https://github.com/django/django/pull/1147.
|
|
|
|
|
| |
Thanks Russell for the report, Marc for the initial patch, Carl for the
final review, and everyone who contributed to the design discussion.
|
| |
|
|
|
|
|
| |
It's now easier to achieve the same effect with modify_settings or
override_settings.
|
|
|
|
| |
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
|
|
|
|
| |
Used the app cache's get_app_configs() method instead.
|
|
|
|
|
|
|
|
|
| |
Current language is no longer saved to session by LocaleMiddleware
on every response (the behavior introduced in #14825).
Instead language stored in session is reintroduced into new session
after logout.
Forward port of c558a43fd6 to master.
|
|
|
|
|
|
| |
to malformed input.
Thanks to Sergey Sorokin for the report and to Bouke Haarsma for the review.
|
|
|
|
|
|
| |
widget is_required attribute
Thanks mitar for the report and Tim Graham for the review.
|
|
|
|
|
|
|
|
|
|
|
| |
Add the trimmed option to the blocktrans tag to trim any newlines and
whitespace from its content.
This allows the developer to indent the blocktrans tag without adding
new lines and whitespace to the msgid in the PO file.
Thanks to mpessas for the initial patch and Dmitri Fedortchenko for the
report.
|
|
|
|
|
|
|
|
| |
language codes
Improved documentation about zh-* deprecation and upgrade path.
Thanks to Baptiste Mispelon for the code reviews.
|
|
|
|
|
|
|
| |
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
|