Bind textomain also for plugins
This commit is contained in:
parent
6c43c0f408
commit
683e7aa4c7
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue