fix: support for unknown language

This commit is contained in:
egarette@silique.fr 2024-11-01 09:08:59 +01:00
parent 00c4391ac6
commit a6dfcbde4c

View file

@ -27,6 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
from gettext import translation from gettext import translation
from pathlib import Path from pathlib import Path
t = translation('rougail', str(Path(__file__).parent / 'locale')) t = translation('rougail', str(Path(__file__).parent / 'locale'), fallback=True)
_ = t.gettext _ = t.gettext