How to implement i18n #234
-
So i've seen in pygubu-designer the option to add localization via i18n. However it's not referenced anywhere i could find. Tips or any guidance where to look to implement it? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hello @ThePromidius thanks for trying pygubu. To implement internationalization (I18N) I use the python gettext module. I made a simple example as a guide for implementation here. Let me know if you have more questions. Regards |
Beta Was this translation helpful? Give feedback.
-
Hey! Thank you for going as far as making an example! I plan to make a weblate to let the community localize my program so thinking on best practices. |
Beta Was this translation helpful? Give feedback.
-
Managed to get it working. I guess that my question is self-answerable if i create a "en" lang and make it the default one or smth. tried downloading gettext from gnu but was really outdated. ended up using the release from the poedit dev Really thankfull for your support. (Btw i made a wiki entry with issues i found when building with pyinstaller in case you think it fits somewhere else) |
Beta Was this translation helpful? Give feedback.
Hello @ThePromidius thanks for trying pygubu.
To implement internationalization (I18N) I use the python gettext module.
I made a simple example as a guide for implementation here.
Let me know if you have more questions.
Regards
Alejandro A.