Skip to content

Commit 07ee2b8

Browse files
committed
Adapt Hungarian language support to recent changes
1 parent ed89f4d commit 07ee2b8

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

CHANGES.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Documentation changes:
2424

2525
New Features:
2626

27+
* Add support for Hungarian language (PR #425 by Pablo Alexis Domínguez Grau)
2728
* Print alt text instead of error message when failing to render rst :image:
2829
directive (PR #410 by Timm638)
2930
* Support for Spanish section and admonition titles (PR #400 by María Andrea
@@ -42,10 +43,12 @@ New Features:
4243
Changed:
4344

4445
* handling of localized strings and user-defined strings has been reworked
45-
* built-in (localized) strings are now indicated by a ``@`` prefix, while
46+
47+
- built-in (localized) strings are now indicated by a ``@`` prefix, while
4648
user-defined strings have the ``$`` prefix
47-
* built-in strings can be overridden, and user-defined strings can be set in
49+
- built-in strings can be overridden, and user-defined strings can be set in
4850
a template configuration file in the ``[STRINGS]`` section (with prefix!)
51+
4952
* "words" containing spaces (such as paths and URLs) can now be split before
5053
each forward slash for line wrapping (#188, #416)
5154
* Support for Python 3.7 was dropped (end-of-life in June 2023)

src/rinoh/language/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
from .pl import PL
1717
from .cs import CS
1818
from .es import ES
19+
from .hu import HU
1920

2021

21-
__all__ = ['Language', 'EN', 'FR', 'IT', 'NL', 'DE', 'PL', 'CS', 'ES']
22+
__all__ = ['Language', 'EN', 'FR', 'IT', 'NL', 'DE', 'PL', 'CS', 'ES', 'HU']
2223

2324

2425
# generate docstrings for the Language instances

src/rinoh/language/hu.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@
77

88

99
from .cls import Language
10-
from ..structure import SectionTitles, AdmonitionTitles
1110

1211

13-
HU = Language('hu', 'Hungarian')
14-
15-
SectionTitles(
12+
HU = Language('hu', 'Hungarian',
1613
contents='Tartalomjegyzék',
1714
list_of_figures='Ábrák Listája',
1815
list_of_tables='Asztalok Listája',
1916
chapter='Fejezet',
2017
index='Index',
21-
) in HU
2218

23-
AdmonitionTitles(
19+
# admonitions
2420
attention='Figyelem!',
2521
caution='Vigyázat!!',
2622
danger='!VESZÉLY!',
@@ -31,4 +27,4 @@
3127
tip='Tipp',
3228
warning='Figyelmeztetés',
3329
seealso='Lásd még',
34-
) in HU
30+
)

0 commit comments

Comments
 (0)