Lines 821-828
Link Here
|
821 |
def setup_translations(self): |
821 |
def setup_translations(self): |
822 |
gettext.bindtextdomain("kazam", "/usr/share/locale") |
822 |
gettext.bindtextdomain("kazam", "/usr/share/locale") |
823 |
gettext.textdomain("kazam") |
823 |
gettext.textdomain("kazam") |
|
|
824 |
locale.bindtextdomain("kazam", "/usr/share/locale") |
825 |
locale.textdomain("kazam") |
826 |
currentLocale = locale.getlocale() |
824 |
try: |
827 |
try: |
825 |
locale.setlocale(locale.LC_ALL, "") |
828 |
locale.setlocale(locale.LC_ALL, currentLocale) |
826 |
except Exception as e: |
829 |
except Exception as e: |
827 |
logger.exception("EXCEPTION: Setlocale failed, no language support.") |
830 |
logger.exception("EXCEPTION: Setlocale failed, no language support.") |
828 |
|
831 |
|