Bind textomain also for plugins

This commit is contained in:
Philipp Hörist 2018-10-13 13:27:33 +02:00
parent 6c43c0f408
commit 683e7aa4c7
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/>.
import os
import locale
import gettext
from gajim.common import configpaths
@ -28,3 +29,6 @@ try:
_ = t.gettext
except OSError:
_ = gettext.gettext
if hasattr(locale, 'bindtextdomain'):
locale.bindtextdomain(DOMAIN, plugins_locale_dir) # type: ignore