Comment 21 for bug 650910

Revision history for this message
Olivier Girard (eolinwen) wrote :

>I'm living in Finland and my mother tongue is Finnish. However, I prefer
English for the UI to better match UI of all the programs I use (some
programs do not have Finnish localizations or the localizations are not
high quality enough for my taste).
Okay so i understand better the result of your locale.

>The problem I'm reporting is that with my locale settings, OpenShot is
using Finnish translations for some of it's strings despite the fact
that I'm requesting English messages (see LC_MESSAGES environment
variable). I guess it's incorrectly using one of the following
environment variables to set the localization language for messages:
LC_CTYPE, LC_COLLATE, LC_MONETARY, LC_PAPER, LC_NAME, LC_ADDRESS,
LC_TELEPHONE, LC_MEASUREMENT. None of these should change the UI
language.
Have you try to change your default setting (just to see) for your locale and see if all is translate in Openshot ? It will be helpful to know if it is a " general" bug or a "particular" bug link to you locale preferences.

I am agree with you about the method getprefereencoding should be better for your case that the method getdefaultlocale. It will change automaticaly the locale in the locale by default i.e. English.
More explanation here :
http://docs.python.org/library/gettext.html
http://docs.python.org/library/locale.html
Have you try to modified the lc, encoding = locale.getdefaultlocale() by lc, encoding = locale.getpreferredencoding()
Just another thought.