rougail-output-display/src/rougail/output_exporter/i18n.py

25 lines
847 B
Python
Raw Normal View History

2024-10-31 18:55:00 +01:00
"""Internationalisation utilities
2024-07-28 17:52:11 +02:00
Silique (https://www.silique.fr)
Copyright (C) 2024
2024-10-31 18:55:00 +01:00
2024-07-28 17:52:11 +02:00
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
2024-10-31 18:55:00 +01:00
the Free Software Foundation, either version 3 of the License, or
2024-07-28 17:52:11 +02:00
(at your option) any later version.
2024-10-31 18:55:00 +01:00
Mtools is distributed in the hope that it will be useful,
2024-07-28 17:52:11 +02:00
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
2024-10-31 18:55:00 +01:00
2024-07-28 17:52:11 +02:00
You should have received a copy of the GNU General Public License
2024-10-31 18:55:00 +01:00
along with Mtools. If not, see <http://www.gnu.org/licenses/>.
2024-07-28 17:52:11 +02:00
"""
2024-10-31 18:55:00 +01:00
from gettext import translation
from pathlib import Path
t = translation('rougail_output_exporter', str(Path(__file__).parent / 'locale'))
2024-07-28 17:52:11 +02:00
2024-10-31 18:55:00 +01:00
_ = t.gettext