Answer the question
In order to leave comments, you need to log in
How to localize an application?
Depending on the settings, it is necessary to output a string in different languages (English/Ukrainian/Russian). I asked my friends and drew 2 options:
.py
with constants. for exampletranslation.EN_CREATE_BUTTON
translation["EN"]["create_button"]
Delete {user} account
Answer the question
In order to leave comments, you need to log in
Why didn't you like this option?:
gettext - Multilingual internationalization services
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question