Comment 24 for bug 650910

Revision history for this message
Mikko Rantalainen (mira) wrote :

I rechecked some code and I think the correct fix is to change file
openshot/language/Language_Init.py
and the fix is to replace line
                lc, encoding = locale.getdefaultlocale()
with
                lc, encoding = locale.getlocale(locale.LC_MESSAGES)

Rationale:

It seems that return value of
                locale.getdefaultlocale()
is identical to
                locale.getlocale(locale.LC_CTYPE)
and as such it should not be used for localization messages as I explained earlier.

Note that there's an error in my comment #14 where I claim that locale.getlocale(locale.LC_MESSAGES) would return only locale. Instead, it always returns locale AND encoding, just like locale.getdefaultlocale().