Bind textdomain also for plugins
This commit is contained in:
parent
0f0c0a6ab7
commit
aff0dbe928
|
@ -15,6 +15,7 @@
|
||||||
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import locale
|
||||||
import gettext
|
import gettext
|
||||||
|
|
||||||
from gajim.common import configpaths
|
from gajim.common import configpaths
|
||||||
|
@ -28,3 +29,6 @@ try:
|
||||||
_ = t.gettext
|
_ = t.gettext
|
||||||
except OSError:
|
except OSError:
|
||||||
_ = gettext.gettext
|
_ = gettext.gettext
|
||||||
|
|
||||||
|
if hasattr(locale, 'bindtextdomain'):
|
||||||
|
locale.bindtextdomain(DOMAIN, plugins_locale_dir) # type: ignore
|
||||||
|
|
Loading…
Reference in New Issue