Created
October 22, 2014 21:47
-
-
Save coldtobi/417333a01761208f5be7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description: Fix locales loading when installed systemwide | |
Author: Tobias Frost <[email protected]> | |
Bug: https://github.com/laserb/gnome-shell-extension-suspend-button/issues/6 | |
Forwarded: yes | |
Last-Update: 2014-10-22 | |
--- | |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | |
--- a/lib.js | |
+++ b/lib.js | |
@@ -18,6 +18,8 @@ | |
const GLib = imports.gi.GLib; | |
const Gettext = imports.gettext; | |
+const Config = imports.misc.config; | |
+ | |
function getSettings(extension) { | |
let schemaName = 'org.gnome.shell.extensions.suspend-button'; | |
let schemaDir = extension.dir.get_child('schemas').get_path(); | |
@@ -49,6 +51,6 @@ | |
// Extension installed system-wide | |
else { | |
Gettext.bindtextdomain('gnome-shell-extension-suspend-button', | |
- extension.metadata.locale); | |
+ Config.LOCALEDIR); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment