summaryrefslogtreecommitdiff
path: root/sphinx/util/i18n.py
Commit message (Collapse)AuthorAgeFilesLines
* Make ``locale`` required in ``sphinx.util.i18n.format_date()`` (#11366)Adam Turner2023-04-271-13/+1
|
* Fix COM812Adam Turner2023-02-181-1/+1
|
* Run pyupgrade (#11070)Adam Turner2023-01-021-2/+2
|
* Use PEP 604 typesAdam Turner2023-01-011-3/+3
|
* Use PEP 595 typesAdam Turner2023-01-011-3/+3
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Fix more strict static typing errors (#10681)danieleades2022-08-281-2/+4
|
* Use the `flake8-comprehensions` lint plugin (#10601)danieleades2022-06-261-1/+1
|
* 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-9/+12
|/ | | | | 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
|
* Close #9618: i18n: Add gettext_allow_fuzzy_translationsTakeshi KOMIYA2021-11-101-2/+2
|
* Fix typos discovered by codespellChristian Clauss2021-09-081-1/+1
|
* [IMP] util: detect incorrect locale_dirs pathMartin Trigaux2021-05-081-1/+4
| | | | | In case the config is incorrect (e.g. wrong relative path), it is silently ignored. This makes it easier for debugging.
* Merge branch 'master' into typosTakeshi KOMIYA2021-03-271-85/+10
|\
| * Update type annotationsTakeshi KOMIYA2021-02-091-3/+3
| |
| * Merge branch '3.x'Takeshi KOMIYA2021-01-161-1/+3
| |\
| * \ Merge branch '3.x'Takeshi KOMIYA2021-01-011-1/+1
| |\ \
| * | | Do isortTakeshi KOMIYA2020-11-121-2/+1
| | | |
| * | | Merge branch '3.x'Takeshi KOMIYA2020-08-141-2/+4
| |\ \ \
| * \ \ \ Merge branch '3.x'Takeshi KOMIYA2020-08-081-0/+4
| |\ \ \ \
| * \ \ \ \ Merge branch '3.x'Takeshi KOMIYA2020-08-011-2/+2
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch '3.x'Takeshi KOMIYA2020-07-051-1/+1
| |\ \ \ \ \ \
| * | | | | | | Remove deprecated features marked as RemovedInSphinx40WarningTakeshi KOMIYA2020-04-291-79/+2
| | | | | | | |
| * | | | | | | Hello TYPE_CHECKING!Takeshi KOMIYA2020-03-071-2/+2
| | | | | | | |
| * | | | | | | Use typing.NamedTuple instead of collections.namedtuple as possibleTakeshi KOMIYA2020-03-071-3/+6
| | | | | | | |
* | | | | | | | Fix some local parameter namesCharalampos Stratakis2021-03-251-4/+4
| | | | | | | |
* | | | | | | | Merge branch '3.4.x' into 3.xTakeshi KOMIYA2021-01-221-1/+1
|\ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ |/| | | | | | |
| * | | | | | | Fix mypy violations (with mypy-0.800)Takeshi KOMIYA2021-01-221-1/+1
| | |_|_|_|_|/ | |/| | | | |
* | | | | | | Fix #8683: html_last_updated_fmt generates wrong time zone for %ZTakeshi KOMIYA2021-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+2
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | i18n: Add support for having single text domainMichal Čihař2020-08-071-2/+4
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | The gettext_compact can now be a string which is then a single domain for all documents. Fixes #784
* | | | Close #7768: i18n: figure_language_filename supports {docpath} tokenTakeshi KOMIYA2020-08-021-0/+4
| |_|/ |/| | | | | | | | | | | | | | To build structured i18n imaging directory, figure_language_filename now supports `{docpath}` token that is a dirname of the current document.
* | | Fix #7768: i18n: Wrong root element is passed to figure_language_filenameTakeshi KOMIYA2020-07-261-2/+2
| |/ |/| | | | | | | | | The root element should be a user specified path; a relative path from current document or absolute path based on source directory. But an absolute path is passed instead.
* | Fix exception causes all over the codebaseRam Rachum2020-06-141-1/+1
|/
* Merge branch '2.0'Takeshi KOMIYA2020-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2020-01-011-1/+1
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-07-071-2/+2
|\ \ | |/
| * format_date(): use "aware" local datetime by default (refs: #6528)Takeshi KOMIYA2019-06-291-2/+2
| | | | | | | | | | This gives system timezone information to default value of ``format_date()``. And it does not modifies the timestamp to UTC.
* | Merge branch '2.0'Takeshi KOMIYA2019-06-301-1/+1
|\ \ | |/
| * Merge pull request #6528 from ViktorHaag/last_updated-time-always-utc-iss6527Takeshi KOMIYA2019-06-291-1/+1
| |\ | | | | | | Force last update datetime value to always be UTC
| | * Force last update datetime value to always be UTCViktor Haag2019-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - If SOURCE_DATE_EPOCH is set in the environment, then the build date will use UTC as the timezone. - If it's not set in the environment, we should do the same thing and use UTC as the timezone for the build date. - `datetime.now()` produces a naive system-time datetime object; `datetime.utcnow()` produces the aware, UTC-oriented datetime object.
* | | Merge branch '2.0'Takeshi KOMIYA2019-06-091-42/+28
|\ \ \ | |/ /
| * | Migrate to py3 style type annotation: sphinx.util.i18nTakeshi KOMIYA2019-06-021-43/+29
| |/