Take the 2-minute tour ×  I have simple app with English and
Hungarian language. All localizables are in separate modul
-localizable.py, for example:  # -*- coding: utf-8 -*- if
language == "hun":     LOGIN_LABEL_USERNAME_STR
= 'Felhasználó'     LOGIN_LABEL_PASSWORD_STR
= 'Jelszó' elif language == "eng":
LOGIN_LABEL_USERNAME_STR                    = 'Username'
LOGIN_LABEL_PASSWORD_STR                    = 'Password'  But
when I use Hungerian language in loginDialog.py:  import
localizable
loginLayout.addRow(localizable.LOGIN_LABEL_USERNAME_STR,
QtGui.QLineEdit())
loginLayout.addRow(localizable.LOGIN_LABEL_PASSWORD_STR,
QtGui.QLineEdit())  I get FelhasznÃ¡lÃ³ and JelszÃ³ instead
Felhasználó and Jelszó. Any help would be appreciated.
share|improve this question add comment  2 Answers  up vote 4
down vote accepted  Why not use unicode objects in your
localizable module, instead of bytestrings with no encoding?  if
language == "hun":     LOGIN_LABEL_USERNAME_STR