2021-01-30 08:15:26 +01:00
|
|
|
"""Internationalisation utilities
|
|
|
|
|
Created by:
|
|
|
|
|
EOLE (http://eole.orion.education.fr)
|
|
|
|
|
Copyright (C) 2005-2018
|
|
|
|
|
|
|
|
|
|
Forked by:
|
|
|
|
|
Cadoles (http://www.cadoles.com)
|
|
|
|
|
Copyright (C) 2019-2021
|
|
|
|
|
|
2022-11-02 23:00:42 +01:00
|
|
|
Silique (https://www.silique.fr)
|
2025-02-10 10:32:48 +01:00
|
|
|
Copyright (C) 2022-2025
|
2022-11-02 23:00:42 +01:00
|
|
|
|
2024-11-01 09:04:27 +01:00
|
|
|
This program is free software: you can redistribute it and/or modify it
|
|
|
|
|
under the terms of the GNU Lesser General Public License as published by the
|
|
|
|
|
Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
|
option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
|
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
|
|
|
|
details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2021-01-30 08:15:26 +01:00
|
|
|
"""
|
2024-10-29 11:01:30 +01:00
|
|
|
|
2024-10-30 18:45:09 +01:00
|
|
|
from gettext import translation
|
|
|
|
|
from pathlib import Path
|
2019-11-23 08:17:35 +01:00
|
|
|
|
2024-11-01 09:45:54 +01:00
|
|
|
t = translation("rougail", str(Path(__file__).parent / "locale"), fallback=True)
|
2019-11-23 08:17:35 +01:00
|
|
|
|
|
|
|
|
_ = t.gettext
|