View | Details | Raw Unified | Return to bug 35419
Collapse All | Expand All

(-)kazam-1.4.5/kazam/app.py (-1 / +4 lines)
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

Return to bug 35419