summaryrefslogtreecommitdiff
path: root/tests/i18n
AgeCommit message (Collapse)Author
2021-04-06[3.2.x] Updated translations from Transifex.Claude Paroz
2020-11-13Fixed #29712 -- Made makemessages warn if locales have hyphens and skip them.manav014
2020-10-13Fixed #20601 -- Allowed forcing format with thousand separators in ↵Jacob Walls
floatformat filter. Thanks Claude Paroz and Nick Pope for reviews.
2020-10-07Fixed #31850 -- Fixed BasicExtractorTests.test_extraction_warning with ↵Max Smolens
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.
2020-09-14Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick
2020-07-21Fixed #31180 -- Configured applications automatically.Aymeric Augustin
2020-06-22Fixed #31692 -- Prevented unneeded .po file compilation.Claude Paroz
Thanks Nick Pope and Simon Charette for the reviews.
2020-06-22Refs #31692 -- Updated compilemessages and tests to use pathlib.Claude Paroz
2020-06-04Fixed #30134 -- Ensured unlocalized numbers are string representation in ↵Claude Paroz
templates.
2020-06-04Refs #30134 -- Added test for {% localize off %} tag with format settings.Claude Paroz
2020-06-01Fixed #31570 -- Corrected translation loading for apps providing territorial ↵Carlton Gibson
language variants with different plural equations. Regression in e3e48b00127c09eafe6439d980a82fc5c591b673. Thanks to Shai Berger for report, reproduce and suggested fix.
2020-05-04Refs #30372 -- Stopped watching built-in Django translation files by ↵Tom Forbes
auto-reloader.
2020-04-20Disabled management commands output with verbosity 0 in various tests.François Freitag
Instead of capturing the command output and discard it immediately, tell the command not to log.
2020-03-10Fixed #30439 -- Added support for different plural forms for a language.Claude Paroz
Thanks to Michal Čihař for review.
2020-02-28Fixed #31314 -- Raised CommandError when locale is not specified in ↵Cristobal Mackenzie
makemessages. Regression in 0707b824fe77e08ca8b75fcc3738ada694f2a3a6.
2020-02-18Refs #26601 -- Deprecated passing None as get_response arg to middleware ↵Claude Paroz
classes. This is the new contract since middleware refactoring in Django 1.10. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-12-18Refs #30585 -- Updated project templates and tests to use (block)translate tags.Mike Hansen
2019-12-18Fixed #30585 -- Added {% translate %} and {% blocktranslate %} template tags.Mike Hansen
2019-11-07Refs #29983 -- Added support for using pathlib.Path in all settings.Jon Dufresne
2019-08-23Replaced subprocess commands by run() wherever possible.Claude Paroz
2019-07-02Fixed typos in comments and docs.Min ho Kim
2019-06-24Fixed #26431 -- Prevented django.urls.resolve() from returning missing ↵daniel a rios
optional parameters. Previous behavior was inconsistent with django.urls.reverse() and caused that translate_url() created an incorrect URL when an optional parameter was missing.
2019-06-24Refs #26431 -- Added tests for resolving URL and translate_url() with ↵daniel a rios
provided optional parameter.
2019-06-20Fixed #30451 -- Added ASGI handler and coroutine-safety.Andrew Godwin
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-11Fixed #27486 -- Fixed Python 3.7 DeprecationWarning in intword and ↵Jon Dufresne
filesizeformat filters. intword and filesizeformat passed floats to ngettext() which is deprecated in Python 3.7. The rationale for this warning is documented in BPO-28692: https://bugs.python.org/issue28692. For filesizeformat, the filesize value is expected to be an int -- it fills %d string formatting placeholders. It was likely coerced to a float to ensure floating point division on Python 2. Python 3 always does floating point division, so coerce to an int instead of a float to fix the warning. For intword, the number may contain a decimal component. In English, a decimal component makes the noun plural. A helper function, round_away_from_one(), was added to convert the float to an integer that is appropriate for ngettext().
2019-04-27Fixed typos in test names.Daniel Hahler
2019-02-08Fixed #30165 -- Deprecated ugettext(), ugettext_lazy(), ugettext_noop(), ↵Jon Dufresne
ungettext(), and ungettext_lazy().
2019-02-07Fixed #16027 -- Added app_label to ContentType.__str__().Gregory N. Schmit
2019-02-06Refs #27753 -- Favored SafeString over SafeText.Tim Graham
2019-02-05Removed redundant os.chdir() in RunInTmpDirMixin child classes.Jon Dufresne
setUp() already calls os.chdir(self.test_dir).
2019-02-05Removed unused branch from SymlinkExtractorTests.test_symlink().Jon Dufresne
Unused since bb7bb379e8cd91a91336946829519d64e919a1d2. SymlinkExtractorTests.test_dir, which contains SymlinkExtractorTests.symlinked_dir, is deleted after every test.
2019-02-05Removed unused RunInTmpDirMixin.rmfile().Jon Dufresne
Unused since bb7bb379e8cd91a91336946829519d64e919a1d2.
2019-01-28Fixed #29973 -- Added compilemessages --ignore option.rsiemens
2019-01-28Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne
Used more specific errors (e.g. FileExistsError) as appropriate.
2019-01-27Removed default mode='r' argument from calls to open().Jon Dufresne
2019-01-13Fixed #27685 -- Added watchman support to the autoreloader.Tom Forbes
Removed support for pyinotify (refs #9722).
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2018-12-06Fixed #29986 -- Added .format() support to ngettext_lazy strings.Patrick Arminio
2018-11-27Made reused RequestFactory instances class attributes.Simon Charette
2018-10-09Capitalized "Python" in docs and comments.Jon Dufresne
2018-09-03Fixed #29713 -- Added check that LANGUAGE_CODE uses standard language id format.David
2018-07-26Refs #29600 -- Added test for datetime_safe usage in localize_input().Tim Graham
2018-07-19Fixed #29578 -- Made numberformat.format() honor forced l10n usage.Claude Paroz
Thanks Sassan Haradji for the report.
2018-06-13Fixed #24384 -- Allowed compilemessages to continue running after nonfatal ↵Claude Paroz
errors. Thanks Aymeric Augustin for the report and Carlton Gibson and Tim Graham for the reviews.
2018-06-11Fixed #29452 -- Fixed makemessages setting charset of .pot files.Bartosz Grabski
2018-05-13Fixed #17379 -- Removed management commands deactivation of the locale.Claude Paroz
2018-05-12Moved to_language() to django.utils.translation.Tim Graham
Follow up to 1b7d524cfa7b7834af26c99407af66be6813938d.
2018-05-12Consolidated duplicate to_locale() implementations.Tim Graham
Follow up to ac59ec8f1a34ea0e82bdb3c77422694e8016e0a7.
2018-05-12Increased django.utils.translation.trans_null test coverage.Hasan Ramezani
2018-05-12Aliased trans_null.to_locale() to trans_real.to_locale().Hasan Ramezani
The implementations have unintentionally diverged.