-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Настройки на rinohtype за PDF експорт да ползва bg език
- Loading branch information
Showing
3 changed files
with
44 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This file is part of rinohtype, the Python document preparation system. | ||
# | ||
# Copyright (c) Brecht Machiels. | ||
# | ||
# Use of this source code is subject to the terms of the GNU Affero General | ||
# Public License v3. See the LICENSE file or http://www.gnu.org/licenses/. | ||
|
||
|
||
from .cls import Language | ||
|
||
from .en import EN | ||
from .fr import FR | ||
from .it import IT | ||
from .nl import NL | ||
from .de import DE | ||
from .pl import PL | ||
from .cs import CS | ||
from .bg import BG | ||
|
||
__all__ = ['Language', 'EN', 'FR', 'IT', 'NL', 'DE', 'PL', 'CS', 'BG'] | ||
|
||
|
||
# generate docstrings for the Language instances | ||
|
||
for code, language_ref in Language.languages.items(): | ||
language = language_ref() | ||
lines = ['Localized strings for {}'.format(language.name)] | ||
for string_collection in language.strings.values(): | ||
lines.append("\n.. rubric:: {}\n" | ||
.format(type(string_collection).__name__)) | ||
for string in string_collection._strings: | ||
lines.append(":{}: {}".format(string.name, | ||
string_collection[string.name])) | ||
language.__doc__ = '\n'.join(lines) |
This file was deleted.
Oops, something went wrong.