Bind textdomain also for plugins

This commit is contained in:
Philipp Hörist 2018-10-13 13:27:33 +02:00
parent 0f0c0a6ab7
commit aff0dbe928
1 changed files with 4 additions and 0 deletions

View File

@ -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