Curso-lenguaje-python/catch-all/06_bots_telegram/07_movie2_bot/translations/required.py

20 lines
415 B
Python
Raw Permalink Normal View History

2024-07-30 00:43:20 +02:00
import gettext
""" localization support """
en = gettext.translation(
'messages', 'translations/generated', languages=['en']
)
pt_br = gettext.translation(
'messages', 'translations/generated', languages=['pt_BR']
)
es = gettext.translation(
'messages', 'translations/generated', languages=['es']
)
ca = gettext.translation(
'messages', 'translations/generated', languages=['ca']
)
en.install()