summaryrefslogtreecommitdiff
path: root/tests/test_util_i18n.py
Commit message (Collapse)AuthorAgeFilesLines
* Make ``locale`` required in ``sphinx.util.i18n.format_date()`` (#11366)Adam Turner2023-04-271-6/+0
|
* Update tests for Babel 2.12 (CLDR 42)Adam Turner2023-03-051-2/+11
|
* `.write_text(...)` -> `.write_text(..., encoding='utf8')`Adam Turner2022-04-271-11/+11
|
* Address warnings in test_util_i18n.pyAdam Turner2022-04-221-11/+16
|
* Merge branch '4.x'Takeshi KOMIYA2022-03-191-9/+1
|\
| * Collapse single line docstringsAdam Turner2022-02-201-2/+1
| |
| * Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
| |
| * Fix module docstring indentationAdam Turner2022-02-201-2/+2
| |
| * Fix module docstring first lineAdam Turner2022-02-201-2/+1
| |
| * Remove module titles in docstringsAdam Turner2022-02-191-3/+0
| |
* | Close #10062: Change the default language to 'en'Takeshi KOMIYA2022-01-121-18/+0
|/ | | | | Change the default language to `'en'` if any language is not set in `conf.py`.
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* Fix #8683: html_last_updated_fmt generates wrong time zone for %ZTakeshi KOMIYA2021-01-131-0/+2
| | | | | sphinx.util.i18n:format_date() converts '%Z' to full name of time zone unexpectedly. It should be converted to short name.
* Fix #8683: html_last_updated_fmt does not support UTC offset (%z)Takeshi KOMIYA2021-01-131-0/+4
| | | | | sphinx.util.i18n:format_date() does not support %z so far. This adds a mapping for %z to the babel form 'ZZZ'.
* A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* Close #7768: i18n: figure_language_filename supports {docpath} tokenTakeshi KOMIYA2020-08-021-0/+13
| | | | | | To build structured i18n imaging directory, figure_language_filename now supports `{docpath}` token that is a dirname of the current document.
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Drop tests for deprecated modulesTakeshi KOMIYA2019-03-241-111/+0
|
* Python-3-only clean ups discovered by pyupgradeJon Dufresne2019-03-171-12/+12
| | | | | | | | | | | | | | https://github.com/asottile/pyupgrade > A tool to automatically upgrade syntax for newer versions of the > language. - Drop u str prefix - Drop base object inheritance - Drop args to super() - Use set literals - Use dict comprehension - Use set comprehension
* Add CatalogRepository classTakeshi KOMIYA2019-02-271-0/+44
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | refactor: Remove u-prefix from stringsTakeshi KOMIYA2018-12-161-1/+1
| |
* | Remove print_function featureTakeshi KOMIYA2018-12-151-1/+0
|/
* test: Filter warnings on testingTakeshi KOMIYA2018-11-121-0/+1
|
* Fix #5399: Sphinx crashes if unknown po file existsTakeshi KOMIYA2018-09-081-1/+1
|
* i18n: Ignore dot-directories like .git/ in LC_MESSAGES/.Julien Palard2018-05-081-0/+11
| | | | | | | | | | | | This avoids warnings when find_catalog_source_files returns files found in .git/ like: WARNING: Start of line didn't match any expected keyword./refs/heads/freezed-library/colorsys.mo WARNING: Problem on line 1: 0000000000000000000000000000000000000000 032a00a7391ec8a155bbc54d66ba72fb1b7bdbf1 Julien Palard <julien@palard.fr> 1521582790 +0100 branch: Created from freezed/library/colorsys.po `.po` files can typically reside in .git/refs/heads/ if some branches name end with .po, in which case they contain a SHA1, not translations, leading to warnings.
* Fix flake8 violationsTakeshi KOMIYA2018-02-191-2/+3
|
* Fix #4275: Formats accepted by sphinx.util.i18n.format_date are limiteTakeshi KOMIYA2018-01-281-0/+2
|
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Mark tests as xfail/skip to allow successful runAndy Neebel2017-06-141-0/+1
|
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
| * fix nitsshimizukawa2017-01-131-1/+1
| |
| * refs #3329: emit warnings if po file is invalid and can't read it. Also ↵shimizukawa2017-01-131-1/+1
| | | | | | | | writing mo too.
* | Merge branch 'stable'Takeshi KOMIYA2017-01-101-12/+7
|\ \ | |/
| * pytest optimizatoin:shimizukawa2017-01-081-12/+7
| | | | | | | | | | | | | | | | - remote using deprecated decorators - remove gen_with_app - remove yield testing - remove pytest warnings - refactoring
* | Merge branch 'stable'shimizukawa2017-01-071-71/+65
|\ \ | |/
| * pytest: remove deprecated raises and raises_msg assert functionsshimizukawa2017-01-061-2/+4
| |
| * pytest: remove deprecated with_tempdir decoratorshimizukawa2017-01-061-9/+1
| |
| * pytest migrationshimizukawa2017-01-041-63/+63
| |
* | Drop LDML support of format_date()Takeshi KOMIYA2017-01-051-18/+0
|/
* Fix #3028: figure_language_filename format tokens, document tokens.Jonathan Harker2016-10-131-0/+12
|
* Fix flake8 violation under tests/Takeshi KOMIYA2016-06-121-1/+2
|
* Tests for ↵Ruediger Pluem2016-04-051-0/+12
| | | | 22dce02bec1e97b00fa5dde2479ab498784a866c..1754473c532d300ce517460d2ff467c312ae5510
* The default format of `today_fmt` and `html_last_updated_fmt` is back to ↵Takeshi KOMIYA2016-04-031-5/+12
| | | | | | | | | strftime format again `html_last_updated_fmt` is commonly used for non date formatting. But LDML is difficult to represent them from its characteristics. Now we moved to strftime format again (ref: #2394).
* Fix #2394: Sphinx crashes when html_last_updated_fmt is invalidTakeshi KOMIYA2016-04-011-0/+8
|
* fix for 'make style-check'shimizukawa2016-03-061-3/+6
|
* Add figure_language_filename to customize filename pattern for figure ↵Takeshi KOMIYA2016-02-221-0/+13
| | | | substitutions