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 |
Hasan Ramezani
|
ac59ec8f1a
|
Aliased trans_null.to_locale() to trans_real.to_locale().
The implementations have unintentionally diverged.
|
2018-05-12 10:54:22 -04:00 |
Claude Paroz
|
9c4ea63e87
|
Replaced TOKEN_* constants by TokenType enums.
Thanks Tim Graham for the review.
|
2018-05-10 17:51:51 +02: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
|
7905815510
|
Fixed #27449 -- Added django.utils.translation.get_supported_language_variant().
|
2018-02-23 14:49:00 -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 |
Mariusz Felisiak
|
3fa0a824c2
|
Refs #27067 -- Removed string_concat in django.utils.translation.__all__.
Undefined since 87d2240e6c .
|
2017-09-29 10:32:32 -04:00 |
Tim Graham
|
87d2240e6c
|
Refs #27067 -- Removed django.utils.translation.string_concat() per deprecation timeline.
|
2017-09-22 12:51:17 -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
|
301de774c2
|
Refs #27795 -- Replaced many force_text() with str()
Thanks Tim Graham for the review.
|
2017-04-27 09:10:02 +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
|
c651331b34
|
Converted usage of ugettext* functions to their gettext* aliases
Thanks Tim Graham for the review.
|
2017-02-07 09:04:04 +01:00 |
Claude Paroz
|
2757209c9d
|
Refs #27795 -- Removed force_text from templatize function
|
2017-02-06 17:35:03 +01: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 |
Chillar Anand
|
41e0033caf
|
Refs #23919 -- Removed usage of django.utils.decorators.ContextDecorator.
|
2017-01-19 11:28:30 -05:00 |
Simon Charette
|
4c5ed3e683
|
Refs #23919 -- Removed __nonzero__() methods (for Python 2).
Thanks Tim for the review.
|
2017-01-19 11:26:26 -05:00 |
Simon Charette
|
cecc079168
|
Refs #23919 -- Stopped inheriting from object to define new style classes.
|
2017-01-19 08:39:46 +01:00 |
Aymeric Augustin
|
3cc5f01d9b
|
Refs #23919 -- Stopped using django.utils.lru_cache().
|
2017-01-18 21:42:40 -05:00 |
Claude Paroz
|
2b281cc35e
|
Refs #23919 -- Removed most of remaining six usage
Thanks Tim Graham for the review.
|
2017-01-18 21:33:28 +01:00 |
Claude Paroz
|
7b2f2e74ad
|
Refs #23919 -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
|
2017-01-18 20:18:46 +01: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
|
fa2f55cfd5
|
Refs #26940 -- Re-allowed makemessages without settings
Thanks Tim Graham for the review.
|
2016-10-01 14:57:16 +02:00 |
Tim Graham
|
8119b679eb
|
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
http://bugs.python.org/issue27364
|
2016-09-17 15:44:06 -04:00 |
Mattias Loverot
|
2315114090
|
Fixed #27067 -- Deprecated string_concat() in favor of format_lazy().
|
2016-08-25 16:12:40 -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 |