Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #34515 -- Made LocaleMiddleware prefer language from paths when i18n ↵ | Mariusz Felisiak | 2023-05-02 | 3 | -17/+28 |
| | | | | | | | | | | | | | | patterns are used. Regression in 94e7f471c4edef845a4fe5e3160132997b4cca81. This reverts commit 94e7f471c4edef845a4fe5e3160132997b4cca81 (refs #34069) and partly reverts commit 3b4728310a7a64f8fcc548163b0aa5f98a5c78f5. Thanks Anthony Baillard for the report. Co-Authored-By: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | ||||
* | Fixed #34455 -- Restored i18n_patterns() respect of prefix_default_language ↵ | sarahboyce | 2023-04-10 | 1 | -0/+6 |
| | | | | | | | | argument when fallback language is used. Regression in 94e7f471c4edef845a4fe5e3160132997b4cca81. Thanks Oussama Jarrousse for the report. | ||||
* | Fixed #33985 -- Used app_config.verbose_name in ContentType.__str__(). | Hrushikesh Vaidya | 2023-03-09 | 1 | -2/+2 |
| | |||||
* | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | 2023-02-01 | 2 | -10/+0 |
| | | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | ||||
* | Fixed CVE-2023-23969 -- Prevented DoS with pathological values for ↵ | Nick Pope | 2023-02-01 | 1 | -0/+12 |
| | | | | | | | | | | | | Accept-Language. The parsed values of Accept-Language headers are cached in order to avoid repetitive parsing. This leads to a potential denial-of-service vector via excessive memory usage if the raw value of Accept-Language headers is very large. Accept-Language headers are now limited to a maximum length in order to avoid this issue. | ||||
* | Refs #32873 -- Removed settings.USE_L10N per deprecation timeline. | Mariusz Felisiak | 2023-01-17 | 1 | -232/+16 |
| | |||||
* | Simplified django.utils.formats.date_format()/time_format() calls. | Nick Pope | 2023-01-04 | 1 | -19/+6 |
| | | | | | This removes redundant get_format() calls and passing a default value for the format argument. | ||||
* | Refs #34074 -- Used headers argument for RequestFactory and Client in docs ↵ | David Wobrock | 2023-01-04 | 2 | -26/+42 |
| | | | | and tests. | ||||
* | Fixed #34074 -- Added headers argument to RequestFactory and Client classes. | David Wobrock | 2022-11-14 | 1 | -2/+2 |
| | |||||
* | Fixed #34069 -- Made LocaleMiddleware respect language from requests when ↵ | Sergio | 2022-10-13 | 1 | -5/+16 |
| | | | | i18n patterns are used. | ||||
* | Used test client headers in i18n tests. | Adam Johnson | 2022-10-10 | 1 | -115/+79 |
| | |||||
* | Fixed CVE-2022-41323 -- Prevented locales being interpreted as regular ↵ | Adam Johnson | 2022-10-04 | 1 | -0/+6 |
| | | | | | | expressions. Thanks to Benjamin Balder Bach for the report. | ||||
* | Updated translations from Transifex. | Mariusz Felisiak | 2022-08-03 | 1 | -11/+7 |
| | | | | | | | | This also fixes related i18n tests. Forwardport of a3bab9332416f655c6ae0fa306c94f7f52e7398d from stable/4.1.x. Co-authored-by: Claude Paroz <claude@2xlibre.net> | ||||
* | Fixed BasicExtractorTests.test_makemessages_find_files() test. | Claude Paroz | 2022-07-26 | 1 | -2/+4 |
| | |||||
* | Fixed #23689 -- Made parsing HTTP Accept-Language header case-insensitive. | Zainab Amir | 2022-06-20 | 1 | -2/+6 |
| | | | | Thank you Daniel Samuels for test project. | ||||
* | Fixed #33565 -- Improved locale format validation for the makemessages command. | Ronnie van den Crommenacker | 2022-06-08 | 1 | -1/+83 |
| | |||||
* | Fixed #33748 -- Fixed date template filter crash with lazy format. | Claude Paroz | 2022-05-31 | 1 | -0/+3 |
| | | | | Regression in 659d2421c7adbbcd205604002d521d82d6b0b465. | ||||
* | Removed 'tests' path prefix in a couple tests. | Tim Graham | 2022-05-02 | 1 | -1/+1 |
| | |||||
* | Fixed #33661 -- Corrected Catalan date-format localization. | mpachas | 2022-04-28 | 1 | -1/+4 |
| | | | | | | | | Changed DATE_FORMAT, DATETIME_FORMAT and MONTH_DAY_FORMAT to use E placeholder (Month, locale specific alternative) to handle both “de gener” and contracted “d’abril” cases. Thanks to Ferran Jovell for review. | ||||
* | Fixed #16406 -- Added ResolveMatch.captured_kwargs and extra_kwargs. | Alokik Vijay | 2022-03-29 | 2 | -2/+22 |
| | | | | Thanks Florian Apolloner for the review and implementation idea. | ||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 4 | -39/+83 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 25 | -1425/+2019 |
| | |||||
* | Fixed #28628 -- Changed \d to [0-9] in regexes where appropriate. | Ad Timmering | 2022-01-07 | 1 | -0/+1 |
| | |||||
* | Updated translations from Transifex. | Mariusz Felisiak | 2021-12-06 | 1 | -6/+12 |
| | | | | | | | | This also fixes related i18n tests. Forwardport of 4c5215ab036aa8fda9cd0148fd034f4d8f7d69d1 from stable/4.0.x Co-authored-by: Claude Paroz <claude@2xlibre.net> | ||||
* | Fixed #33078 -- Added support for language regions in i18n_patterns(). | Maxim Piskunov | 2021-12-03 | 1 | -2/+10 |
| | |||||
* | Refs #33078 -- Added extra assertions to ↵ | Mariusz Felisiak | 2021-12-03 | 1 | -9/+20 |
| | | | | MiscTests.test_get_language_from_path_real(). | ||||
* | Fixed #6106 -- Prevented makemessages from changing .po files when up to date. | Ad Timmering | 2021-11-11 | 4 | -0/+67 |
| | | | | Co-authored-by: Daniyal Abbasi <abbasi.daniyal98@gmail.com> | ||||
* | Fixed #32873 -- Deprecated settings.USE_L10N. | Claude Paroz | 2021-09-14 | 1 | -23/+52 |
| | | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed #30086, Refs #32873 -- Made floatformat template filter independent of ↵ | Mariusz Felisiak | 2021-09-08 | 1 | -9/+9 |
| | | | | USE_L10N. | ||||
* | Fixed #32768 -- Added Vary header when redirecting to prefixed i18n pattern. | Alex Hayward | 2021-09-01 | 1 | -1/+5 |
| | | | | | | get_language_from_request() uses Accept-Language and/or Cookie to determine the correct redirect. Upstream caches need the matching Vary header to cache the result. | ||||
* | Fixed #32941 -- Removed get_format_modules()'s unused reverse argument. | Keryn Knight | 2021-07-19 | 1 | -10/+3 |
| | | | | Unused since 0d8b523422fda71baa10807d5aebefd34bad7962. | ||||
* | Refs #32144 -- Made makemessages remove temporary files on preprocessing error. | Carlton Gibson | 2021-07-01 | 2 | -1/+8 |
| | | | | Co-authored-by: Anders Hovmöller <anders.hovmoller@dryft.se> | ||||
* | Fixed #32144 -- Made makemessages remove temporary files when locale path ↵ | Carlton Gibson | 2021-07-01 | 2 | -0/+6 |
| | | | | doesn't exist. | ||||
* | Fixed typo in makemessages error message. | Jacob Walls | 2021-06-21 | 1 | -2/+2 |
| | |||||
* | Fixed typos in test comments. | luzpaz | 2021-06-07 | 1 | -1/+1 |
| | |||||
* | Fixed #32762 -- Fixed locale reset in compilemessages test. | Nilo César Teixeira | 2021-05-26 | 1 | -1/+1 |
| | | | | | Reset the `LC_ALL` override value in the test environment to ensure that locale values the calling environment are not used. | ||||
* | Refs #32738 -- Added sanitize_strftime_format() to replace datetime_safe. | Nick Pope | 2021-05-12 | 1 | -1/+47 |
| | |||||
* | Fixed #32479 -- Added fallbacks to subsequent language codes in translations. | Maxim Beder | 2021-05-05 | 1 | -0/+20 |
| | | | | Thanks Claude Paroz and Nick Pope for reviews. | ||||
* | Fixed capitalization of "ECMAScript" and "JavaScript". | Nick Pope | 2021-04-29 | 1 | -1/+1 |
| | |||||
* | Fixed isolation of i18n.tests.FormattingTests.test_get_custom_format(). | Mariusz Felisiak | 2021-04-22 | 1 | -0/+1 |
| | |||||
* | Updated translations from Transifex. | Claude Paroz | 2021-04-06 | 1 | -6/+6 |
| | | | | Forwardport of 1ea5e983151f797b285c789626411b9373cd8727 from stable/3.2.x. | ||||
* | Fixed #32581 -- Prevented to_locale() from corrupting locale names. | Claude Paroz | 2021-03-22 | 1 | -0/+4 |
| | |||||
* | Added to_locale() tests for 3-char language codes. | Claude Paroz | 2021-03-22 | 1 | -0/+3 |
| | |||||
* | Fixed #32145 -- Improved makemessages error message when app's locale ↵ | Josh Santos | 2021-02-09 | 1 | -2/+6 |
| | | | | directory doesn't exist. | ||||
* | Refs #15902 -- Stopped set_language() storing user's language in the session. | Mariusz Felisiak | 2021-01-14 | 1 | -20/+4 |
| | | | | Per deprecation timeline. | ||||
* | Refs #30165 -- Removed ugettext(), ugettext_lazy(), ugettext_noop(), ↵ | Mariusz Felisiak | 2021-01-14 | 1 | -43/+1 |
| | | | | ungettext(), and ungettext_lazy() per deprecation timeline. | ||||
* | Fixed #29712 -- Made makemessages warn if locales have hyphens and skip them. | manav014 | 2020-11-13 | 1 | -0/+14 |
| | |||||
* | Fixed #20601 -- Allowed forcing format with thousand separators in ↵ | Jacob Walls | 2020-10-13 | 1 | -0/+24 |
| | | | | | | floatformat filter. Thanks Claude Paroz and Nick Pope for reviews. | ||||
* | Fixed #31850 -- Fixed BasicExtractorTests.test_extraction_warning with ↵ | Max Smolens | 2020-10-07 | 1 | -2/+2 |
| | | | | | | | | | | xgettext 0.21+. "format string with unnamed arguments cannot be properly localized" warning is not raised in xgettext 0.21+. This patch uses a message that causes an xgettext warning regardless of the version. | ||||
* | Fixed #31789 -- Added a new headers interface to HttpResponse. | Tom Carrick | 2020-09-14 | 1 | -12/+12 |
| |