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().
I rechecked some code and I think the correct fix is to change file language/ Language_ Init.py getdefaultlocal e() getlocale( locale. LC_MESSAGES)
openshot/
and the fix is to replace line
lc, encoding = locale.
with
lc, encoding = locale.
Rationale:
It seems that return value of
locale. getdefaultlocal e()
locale. getlocale( locale. LC_CTYPE)
is identical to
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. getdefaultlocal e().