Adam Turner
b533ef1662
Fix DTZ00{0-4} (Do not use naive datetime objects)
2023-08-13 22:11:15 +01:00
Adam Turner
1ea5a434b3
Fix `test_get_filename_for_language
` on Windows
2023-08-12 04:23:56 +01:00
Adam Turner
49d8304670
Start using `pathlib.Path
and deprecate
sphinx.testing.path
` ( #11526 )
2023-07-28 00:39:12 +01:00
Adam Turner
3c4e78e236
Make `locale
required in
sphinx.util.i18n.format_date()
` ( #11366 )
2023-04-27 01:30:40 +01:00
Adam Turner
c5641702b5
Update tests for Babel 2.12 (CLDR 42)
2023-03-05 13:32:37 +00:00
Adam Turner
4674cc11c8
.write_text(...)
-> .write_text(..., encoding='utf8')
2022-04-27 03:11:08 +01:00
Adam Turner
c08bffde98
Address warnings in test_util_i18n.py
2022-04-22 04:05:41 +01:00
Takeshi KOMIYA
aa1bc83c2a
Merge branch '4.x'
2022-03-19 22:58:15 +09:00
Adam Turner
5775912455
Collapse single line docstrings
2022-02-20 03:13:45 +00:00
Adam Turner
6bb7b891a1
Remove copyright and licence fields
2022-02-20 03:06:23 +00:00
Adam Turner
5694e0ce60
Fix module docstring indentation
2022-02-20 00:35:13 +00:00
Adam Turner
4f5a3269a6
Fix module docstring first line
2022-02-20 00:11:08 +00:00
Adam Turner
6b8bccec59
Remove module titles in docstrings
2022-02-19 23:17:29 +00:00
Takeshi KOMIYA
e4e58a4f27
Close #10062 : Change the default language to 'en'
...
Change the default language to `'en'` if any language is not set in
`conf.py`.
2022-01-12 02:45:52 +09:00
Takeshi KOMIYA
b84771dcd2
A happy new year!
2022-01-01 18:45:03 +09:00
Takeshi KOMIYA
8ff8b5532c
Fix #8683 : html_last_updated_fmt generates wrong time zone for %Z
...
sphinx.util.i18n:format_date() converts '%Z' to full name of time zone
unexpectedly. It should be converted to short name.
2021-01-13 00:50:01 +09:00
Takeshi KOMIYA
d5559e1ba2
Fix #8683 : html_last_updated_fmt does not support UTC offset (%z)
...
sphinx.util.i18n:format_date() does not support %z so far. This
adds a mapping for %z to the babel form 'ZZZ'.
2021-01-13 00:49:59 +09:00
Takeshi KOMIYA
f996859420
A happy new year!
...
.. 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
2021-01-01 13:40:48 +09:00
Takeshi KOMIYA
af15593c0c
Close #7768 : i18n: figure_language_filename supports {docpath} token
...
To build structured i18n imaging directory, figure_language_filename
now supports `{docpath}` token that is a dirname of the current
document.
2020-08-02 16:28:54 +09:00
Takeshi KOMIYA
eaf495c3c4
A happy new year!
2020-01-01 14:27:43 +09:00
Takeshi KOMIYA
9fe962c208
Drop tests for deprecated modules
2019-03-24 21:46:31 +09:00
Jon Dufresne
f210475489
Python-3-only clean ups discovered by pyupgrade
...
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
2019-03-17 12:58:03 -07:00
Takeshi KOMIYA
8408109a25
Add CatalogRepository class
2019-02-27 21:43:47 +09:00
Takeshi KOMIYA
76e9f57c2e
Merge branch '1.8'
2019-01-02 16:16:25 +09:00
Takeshi KOMIYA
1b1ebd2c75
A happy new year!
2019-01-02 16:00:30 +09:00
Jon Dufresne
bade33c7e4
Remove unnecessary encoding cookie from Python source files
...
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.
2018-12-16 12:22:12 -08:00
Takeshi KOMIYA
c6bd84a614
refactor: Remove u-prefix from strings
2018-12-16 21:28:51 +09:00
Takeshi KOMIYA
b56f4f9022
Remove print_function feature
2018-12-15 23:16:10 +09:00
Takeshi KOMIYA
0ccc64d9ea
test: Filter warnings on testing
2018-11-12 00:37:51 +09:00
Takeshi KOMIYA
8e729b419e
Fix #5399 : Sphinx crashes if unknown po file exists
2018-09-08 22:21:59 +09:00
Julien Palard
6dcdce685d
i18n: Ignore dot-directories like .git/ in LC_MESSAGES/.
...
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.
2018-05-08 11:02:14 +02:00
Takeshi KOMIYA
f7027049b1
Fix flake8 violations
2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
f3812b0d18
Fix #4275 : Formats accepted by sphinx.util.i18n.format_date are limite
2018-01-28 17:22:41 +09:00
Takeshi KOMIYA
2426cedb8b
A happy new year!
2018-01-01 01:06:58 +09:00
Andy Neebel
f68c108f10
Mark tests as xfail/skip to allow successful run
2017-06-14 13:27:31 -05:00
Takeshi KOMIYA
8f9dd64992
Merge branch 'stable'
2017-03-26 11:52:15 +09:00
Takeshi KOMIYA
c57e47e042
Year++
2017-03-26 11:49:34 +09:00
shimizukawa
a11218151f
fix nits
2017-01-13 00:24:10 +09:00
shimizukawa
2254da3782
refs #3329 : emit warnings if po file is invalid and can't read it. Also writing mo too.
2017-01-13 00:11:35 +09:00
Takeshi KOMIYA
8cbe1efe8d
Merge branch 'stable'
2017-01-10 01:04:21 +09:00
shimizukawa
561abdd164
pytest optimizatoin:
...
- remote using deprecated decorators
- remove gen_with_app
- remove yield testing
- remove pytest warnings
- refactoring
2017-01-08 15:14:38 +09:00
shimizukawa
4c22cd10ca
Merge branch 'stable'
2017-01-07 02:14:29 +09:00
shimizukawa
f962ad67d2
pytest: remove deprecated raises and raises_msg assert functions
2017-01-06 00:46:42 +09:00
shimizukawa
d0a33dd785
pytest: remove deprecated with_tempdir decorator
2017-01-06 00:26:01 +09:00
Takeshi KOMIYA
ea856fd909
Drop LDML support of format_date()
2017-01-05 13:47:19 +09:00
shimizukawa
5b7d237db3
pytest migration
2017-01-04 00:59:30 +09:00
Jonathan Harker
59ba8c1dee
Fix #3028 : figure_language_filename format tokens, document tokens.
2016-10-13 16:41:57 +13:00
Takeshi KOMIYA
80921b2ab8
Fix flake8 violation under tests/
2016-06-12 00:02:11 +09:00
Ruediger Pluem
1c48d18d9a
Tests for 22dce02bec1e97b00fa5dde2479ab498784a866c..1754473c532d300ce517460d2ff467c312ae5510
2016-04-05 12:20:10 +02:00
Takeshi KOMIYA
d35ccb9b4c
The default format of today_fmt
and html_last_updated_fmt
is back to 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 ).
2016-04-03 10:25:32 +09:00