Skip to content

Commit

Permalink
Adapt Hungarian language support to recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brechtm committed Jul 3, 2024
1 parent ed89f4d commit 07ee2b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
7 changes: 5 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Documentation changes:

New Features:

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

* handling of localized strings and user-defined strings has been reworked
* built-in (localized) strings are now indicated by a ``@`` prefix, while

- built-in (localized) strings are now indicated by a ``@`` prefix, while
user-defined strings have the ``$`` prefix
* built-in strings can be overridden, and user-defined strings can be set in
- built-in strings can be overridden, and user-defined strings can be set in
a template configuration file in the ``[STRINGS]`` section (with prefix!)

* "words" containing spaces (such as paths and URLs) can now be split before
each forward slash for line wrapping (#188, #416)
* Support for Python 3.7 was dropped (end-of-life in June 2023)
Expand Down
3 changes: 2 additions & 1 deletion src/rinoh/language/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
from .pl import PL
from .cs import CS
from .es import ES
from .hu import HU


__all__ = ['Language', 'EN', 'FR', 'IT', 'NL', 'DE', 'PL', 'CS', 'ES']
__all__ = ['Language', 'EN', 'FR', 'IT', 'NL', 'DE', 'PL', 'CS', 'ES', 'HU']


# generate docstrings for the Language instances
Expand Down
10 changes: 3 additions & 7 deletions src/rinoh/language/hu.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,16 @@


from .cls import Language
from ..structure import SectionTitles, AdmonitionTitles


HU = Language('hu', 'Hungarian')

SectionTitles(
HU = Language('hu', 'Hungarian',
contents='Tartalomjegyzék',
list_of_figures='Ábrák Listája',
list_of_tables='Asztalok Listája',
chapter='Fejezet',
index='Index',
) in HU

AdmonitionTitles(
# admonitions
attention='Figyelem!',
caution='Vigyázat!!',
danger='!VESZÉLY!',
Expand All @@ -31,4 +27,4 @@
tip='Tipp',
warning='Figyelmeztetés',
seealso='Lásd még',
) in HU
)

0 comments on commit 07ee2b8

Please sign in to comment.