extensionPrefs: Don't (re-)bind text domain

Gettext is already set up from the binary, no need to do it again
in JS.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/918
This commit is contained in:
Florian Müllner 2019-12-03 20:50:14 +01:00 committed by Georges Basile Stavracas Neto
parent 460cf9df30
commit 10818c74a6

View File

@ -8,7 +8,6 @@ const Format = imports.format;
const _ = Gettext.gettext;
const Config = imports.misc.config;
const ExtensionUtils = imports.misc.extensionUtils;
const { loadInterfaceXML } = imports.misc.fileUtils;
@ -692,8 +691,5 @@ function initEnvironment() {
function main(argv) {
initEnvironment();
Gettext.bindtextdomain(Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
Gettext.textdomain(Config.GETTEXT_PACKAGE);
new Application().run(argv);
}