Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/i18n/tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25668 -- Misc spelling errorsVille Skyttä2015-11-031-1/+1
|
* Fixed #25571 -- Fixed boolean evaluation of ungettext_lazyClaude Paroz2015-10-221-0/+4
|
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-38/+375
|
* Fixed #25295 -- Restored 'no active translation' after ↵Claude Paroz2015-08-251-0/+3
| | | | | | language override Thanks David Nelson Adamec for the report and Tim Graham for the review.
* Fixed flake8 warnings on Python 3.Tim Graham2015-06-151-2/+5
|
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-10/+12
|
* Moved engine-related exceptions to ↵Preston Timmons2015-05-071-2/+1
| | | | | | | | 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.
* Fixed #24714 -- Used more specific assertions than ↵Alasdair Nicol2015-04-281-12/+12
| | | | assertEqual in tests.
* Fixed #24063 -- Allowed locale variants supported by ↵Michal Čihař2015-04-251-0/+9
| | | | | | gettext. The locale code can contain a variant after @, so allowed that.
* Fixed #24569 -- Made some translation functions accept ↵Claude Paroz2015-04-041-4/+10
| | | | | | | None value get_language() can return None when translations are deactivated. Thanks Nicola Peduzzi for the reporti and Tim Graham for the review.
* Fixed #24515 -- Fixed DjangoTranslation plural handlingClaude Paroz2015-03-211-1/+11
|
* Fixed #24372 - Replaced TokenParser usage with ↵Preston Timmons2015-03-031-4/+0
| | | | traditional parsing.
* Fixed #24413 -- Prevented translation fallback for EnglishClaude Paroz2015-02-281-0/+15
| | | | | Thanks Tomasz Kontusz for the report, Baptiste Mispelon for analysis and Tim Graham for the review.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-25/+20
|
* Fixed #24149 -- Normalized tuple settings to lists.darkryder2015-02-031-17/+17
|
* Fixed #24219 -- Moved SelectDateWidget together with the ↵Loic Bistuer2015-01-271-5/+6
| | | | | | | | other widgets and deprecated django.forms.extras. Thanks Berker Peksag and Tim Graham for the reviews.
* Removed deprecated Chinese language codes; refs #18149.Tim Graham2015-01-171-36/+10
|
* Fixed #24073 -- Returned None for get_language when ↵Claude Paroz2015-01-081-2/+2
| | | | | | | translations are deactivated This fixes a regression caused by f7c287fca9. Thanks Markus Holtermann for identifying the regression.
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-1/+1
| | | | Django test suite.
* Fixed an i18n test with native stringClaude Paroz2014-09-211-2/+2
| | | | Refs commit 11f307a5a8.
* Fixed #23196 -- Short-circuited empty string translationYuri Kriachko2014-09-211-0/+10
| | | | | | | 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.
* Fixed #23466 -- Removed seconds from all locale time ↵Malte Beckmann2014-09-131-2/+2
| | | | output formats.
* Added a missing word in a skip messageAlex Gaynor2014-08-311-1/+1
|
* Fixed #22820 -- Treated int and long types alike in ↵Claude Paroz2014-08-301-0/+11
| | | | | | lazy_number Thanks kwist for the report and the initial patch.
* Fixed flake8 warning.Tim Graham2014-08-291-0/+1
|
* Fixed #23381 -- Context manager restored state should be ↵Thomas Chaumeny2014-08-291-1/+19
| | | | determined in __enter__
* Fixed #23323 -- Made django.utils.translation.override ↵Thomas Chaumeny2014-08-281-0/+19
| | | | usable as a decorator.
* Fixed #22171 -- Improved sanitize_separators clevernessClaude Paroz2014-08-181-0/+6
| | | | | Thanks Klaas van Schelven for the report and Tim Graham for the review.
* Fixed #23005 -- Allowed specifying special fallback ↵Claude Paroz2014-07-141-0/+20
| | | | | | | | | | 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.
* Fixed #20477: Allowed list of modules for FORMAT_MODULE_PATHMartin Brochhaus2014-05-211-4/+20
| | | | | | | | | 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.
* Fixed #22565 -- Prevented pgettext_lazy crash with ↵Claude Paroz2014-05-021-4/+16
| | | | | | bytestring input Thanks ygbo for the report.
* Refactored DjangoTranslation classDoug Beck2014-04-301-0/+24
| | | | Also fixes #18192 and #21055.
* Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi2014-04-061-4/+2
|
* Added newline for flake8.Tim Graham2014-03-011-0/+1
|
* Added patch_formats utility for i18n formatting testsClaude Paroz2014-03-011-25/+24
|
* Fixed #21389 -- Accept most valid language codesBouke Haarsma2014-02-261-2/+20
| | | | | | | | | | | | 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.
* Fixed #22120 -- Documented persistent activation of ↵Erik Romijn2014-02-221-2/+2
| | | | languages and cleaned up language session key use
* Removed TransRealMixin.Aymeric Augustin2014-01-271-21/+22
| | | | Fixed #21688. Refs https://github.com/django/django/pull/1147.
* Fixed #21829 -- Added default AppConfigs.Aymeric Augustin2014-01-251-1/+1
| | | | | Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-2/+2
|
* Dropped AppCache._empty, _with_app and _without_app.Aymeric Augustin2013-12-231-7/+3
| | | | | It's now easier to achieve the same effect with modify_settings or override_settings.
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Stopped iterating on INSTALLED_APPS.Aymeric Augustin2013-12-221-4/+22
| | | | Used the app cache's get_app_configs() method instead.
* Fixed #21473 -- Limited language preservation to logoutLudwik Trammer2013-12-121-44/+5
| | | | | | | | | 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.
* Fixed #21458 -- Made check_for_language more resistant ↵Baptiste Mispelon2013-11-201-0/+2
| | | | | | to malformed input. Thanks to Sergey Sorokin for the report and to Bouke Haarsma for the review.
* Fixed #13970 -- Made SelectDateWidget use the standard ↵Claude Paroz2013-11-081-4/+6
| | | | | | widget is_required attribute Thanks mitar for the report and Tim Graham for the review.
* Fixed #5849 -- Strip whitespace from blocktransBouke Haarsma2013-11-071-0/+11
| | | | | | | | | | | 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.
* Fixed #18419 -- Full backwards compatibility for old ↵Bouke Haarsma2013-11-051-0/+27
| | | | | | | | language codes Improved documentation about zh-* deprecation and upgrade path. Thanks to Baptiste Mispelon for the code reviews.
* Fixed #18149 -- Changed language codes for ChineseBouke Haarsma2013-11-041-0/+25
| | | | | | | 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.
* Merge pull request #1821 from Bouke/tickets/14170Aymeric Augustin2013-11-041-0/+13
|\ | | | | #14170 -- Reset i18n cache when settings changed