Carlton Gibson
|
dd1ca50b09
|
Fixed #31570 -- Corrected translation loading for apps providing territorial language variants with different plural equations.
Regression in e3e48b0012 .
Thanks to Shai Berger for report, reproduce and suggested fix.
|
2020-06-01 08:38:54 +02:00 |
Jon Dufresne
|
d6aff369ad
|
Refs #30116 -- Simplified regex match group access with Match.__getitem__().
The method has been available since Python 3.6. The shorter syntax is
also marginally faster.
|
2020-05-11 12:01:28 +02:00 |
Claude Paroz
|
e3e48b0012
|
Fixed #30439 -- Added support for different plural forms for a language.
Thanks to Michal Čihař for review.
|
2020-03-10 15:56:32 +01:00 |
Hasan Ramezani
|
e3d0b4d550
|
Fixed #30899 -- Lazily compiled import time regular expressions.
|
2019-10-29 09:22:26 +01:00 |
Andrew Godwin
|
a415ce70be
|
Fixed #30451 -- Added ASGI handler and coroutine-safety.
This adds an ASGI handler, asgi.py file for the default project layout,
a few async utilities and adds async-safety to many parts of Django.
|
2019-06-20 12:29:43 +02:00 |
Claude Paroz
|
a8e2a9bac6
|
Refs #15902 -- Deprecated storing user's language in the session.
|
2019-02-14 10:23:02 -05:00 |
Nick Pope
|
24b82cd201
|
Fixed #30159 -- Removed unneeded use of OrderedDict.
Dicts preserve order since Python 3.6.
|
2019-02-06 13:48:39 -05:00 |
Jon Dufresne
|
7785e03ba8
|
Fixed #30137 -- Replaced OSError aliases with the canonical OSError.
Used more specific errors (e.g. FileExistsError) as appropriate.
|
2019-01-28 11:15:06 -05:00 |
Tim Graham
|
803840abf7
|
Refs #29926 -- Removed usage of gettext.translation()'s deprecated codeset parameter.
https://bugs.python.org/issue33710
|
2018-11-06 20:22:47 -05:00 |
Sergey Fedoseev
|
8ef8bc0f64
|
Refs #28909 -- Simplifed code using unpacking generalizations.
|
2018-09-28 09:57:12 -04:00 |
Tim Graham
|
1e0cbc72e5
|
Moved to_language() to django.utils.translation.
Follow up to 1b7d524cfa .
|
2018-05-12 15:03:38 -04:00 |
Tim Graham
|
1b7d524cfa
|
Consolidated duplicate to_locale() implementations.
Follow up to ac59ec8f1a .
|
2018-05-12 12:58:21 -04:00 |
Mariusz Felisiak
|
362813d628
|
Fixed hanging indentation in various code.
|
2018-03-16 10:54:34 +01:00 |
Patryk Zawadzki
|
a20aae414e
|
Fixed #29144 -- Made untranslated strings for territorial language variants use translations from the generic language variant.
|
2018-03-03 12:08:24 -05:00 |
Sebastian Sangervasi
|
5c4c87e55c
|
Changed "language-code" to the more commonly used "language code".
|
2018-02-21 09:31:05 -05:00 |
Chillar Anand
|
e8e0cfa9e5
|
Fixed #28755 -- Made check_for_language() include apps' locale directories.
|
2018-02-20 21:34:40 -05:00 |
Дилян Палаузов
|
4c599ece57
|
Fixed #28930 -- Simplified code with any() and all().
|
2017-12-26 17:11:15 -05:00 |
Дилян Палаузов
|
d2afa5eb23
|
Fixed #28860 -- Removed unnecessary len() calls.
|
2017-12-04 10:35:23 -05:00 |
Mads Jensen
|
45d5d2dcaa
|
Removed unnecessary tuple()/list() calls.
|
2017-10-21 09:42:25 -04:00 |
Tom
|
f1c007bbf2
|
Fixed #28642 -- Added caching to parse_accept_lang_header().
|
2017-10-02 14:07:28 -04:00 |
Tim Graham
|
0c4ac12a7b
|
Fixed #28546 -- Fixed translation's to_locale() with langauge subtags.
Thanks Brent Hand for the initial patch.
|
2017-09-08 13:46:00 -04:00 |
Tim Graham
|
22a5b8891c
|
Removed to_lower parameter for translation's to_locale().
Unused since 2bab9d6d9e .
|
2017-09-08 13:12:43 -04:00 |
Tim Graham
|
6e4c6281db
|
Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."
This reverts commit 550cb3a365
because try/except performs better.
|
2017-09-07 08:16:21 -04:00 |
Mads Jensen
|
550cb3a365
|
Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().
|
2017-06-28 14:07:55 -04:00 |
Claude Paroz
|
ceca221b31
|
Fixed #28304 -- Kept SafeData type for pgettext-translated strings
|
2017-06-15 21:00:50 +02:00 |
Claude Paroz
|
8346680e1c
|
Refs #27795 -- Removed unneeded force_text calls
Thanks Tim Graham for the review.
|
2017-03-04 18:18:21 +01:00 |
Anton Samarchyan
|
9718fa2e8a
|
Refs #27656 -- Updated django.utils docstring verbs according to PEP 257.
|
2017-02-11 16:11:08 -05:00 |
Claude Paroz
|
e34f4e6f87
|
Made ugettext* functions aliases of gettext*
Thanks Tim Graham for the review.
|
2017-01-28 12:01:30 +01:00 |
Vytis Banaitis
|
d1bab24e01
|
Refs #23919, #27778 -- Removed obsolete mentions of unicode.
|
2017-01-26 08:19:27 -05:00 |
Tim Graham
|
d170c63351
|
Refs #23919 -- Removed misc references to Python 2.
|
2017-01-21 20:02:00 -05:00 |
Claude Paroz
|
042b7350a0
|
Refs #23919 -- Removed unneeded str() calls
|
2017-01-20 14:13:55 +01:00 |
Tim Graham
|
4e729feaa6
|
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
These functions do nothing on Python 3.
|
2017-01-20 08:01:02 -05:00 |
Aymeric Augustin
|
3cc5f01d9b
|
Refs #23919 -- Stopped using django.utils.lru_cache().
|
2017-01-18 21:42:40 -05:00 |
Claude Paroz
|
c716fe8782
|
Refs #23919 -- Removed six.PY2/PY3 usage
Thanks Tim Graham for the review.
|
2017-01-18 16:21:28 +01:00 |
Claude Paroz
|
d7b9aaa366
|
Refs #23919 -- Removed encoding preambles and future imports
|
2017-01-18 09:55:19 +01:00 |
Ramin Farajpour Cami
|
967be82443
|
Fixed E305 flake8 warnings.
|
2016-11-14 12:30:46 -05:00 |
Carl Meyer
|
7107b6ff0f
|
Fixed #27454 -- Skipped gettext calls for apps without a locale dir.
|
2016-11-07 09:59:13 +01:00 |
Krzysztof Urbaniak
|
a01d887a3a
|
Fixed #27063 -- Prevented i18n_patterns() from using too much of the URL as the language.
|
2016-10-31 14:32:01 -04:00 |
Claude Paroz
|
5fb22b4d4c
|
Fixed #27034 -- Made makemessages independent of USE_I18N
Thanks Tim Graham for the review.
|
2016-08-11 21:16:19 +02:00 |
Vytis Banaitis
|
57eb17b8c7
|
Fixed #26746 -- Fixed handling of zero priority in Accept-Language header parsing.
|
2016-06-13 07:58:25 -04:00 |
Vytis Banaitis
|
f1b38842af
|
Fixed #26744 -- Fixed a typo in regex for Accept-Language header parsing.
|
2016-06-11 21:32:56 -04:00 |
Thejaswi Puthraya
|
c8d2120b06
|
Fixed #26705 -- Fixed plural versions of languages not supported by Django.
|
2016-06-08 16:17:17 -04:00 |
Tim Graham
|
df8d8d4292
|
Fixed E128 flake8 warnings in django/.
|
2016-04-08 09:51:06 -04:00 |
Tim Graham
|
2cd2d18851
|
Fixed W503 flake8 warnings.
|
2016-04-04 17:14:26 -04:00 |
Claude Paroz
|
11c60b5298
|
Reused the DjangoTranslation class for the javascript_catalog view
Thanks Tim Graham and Cristiano Coelho for the reviews.
Refs #26328, #26319.
|
2016-03-08 21:39:59 +01:00 |
Claude Paroz
|
104eddbdf6
|
Fixed #26093 -- Allowed escape sequences extraction by gettext on Python 3
Thanks Sylvain Fankhauser for the report and Tim Graham for the review.
|
2016-01-23 14:00:55 +01:00 |
Claude Paroz
|
632a9f21bc
|
Fixed #26046 -- Fixed a crash with translations and Django-unknown language code
Thanks Jens Lundstrom for the report and Tim Graham for the review.
|
2016-01-06 20:30:56 +01:00 |
Claude Paroz
|
cd3c042b04
|
Fixed #25915 -- Allowed language not in Django's default LANGUAGES
This fixes a regression introduced by a5f6cbce07 .
Thanks Gavin Wahl for the report and Tim Graham for the review.
|
2015-12-18 17:50:16 +01:00 |
Marti Raudsepp
|
d3e3703a15
|
Fixed #25720 -- Made gettext() return bytestring on Python 2 if input is bytestring.
This is consistent with the behavior of Django 1.7.x and earlier.
|
2015-11-11 08:56:10 -05:00 |
Alexandre Pocquet
|
e7b7f94678
|
Fixed #25297 -- Allowed makemessages to work with {% trans %} tags that use template filters.
|
2015-09-04 15:09:09 -04:00 |