[gnome-shell-extensions] window-list: import gettext for the right domain



commit 66216993e078c1f1a1f03d4bf3687ec639a73a5e
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Wed Feb 5 00:50:27 2014 +0100

    window-list: import gettext for the right domain
    
    Default _ is gettext from gnome-shell domain, which doesn't have
    the strings we need.
    We could use mutter's, but translators already did their job
    on pretty much all supported languages, so...

 extensions/window-list/extension.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index 82ebd22..ad914fb 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -17,6 +17,9 @@ const ExtensionUtils = imports.misc.extensionUtils;
 const Me = ExtensionUtils.getCurrentExtension();
 const Convenience = Me.imports.convenience;
 
+const Gettext = imports.gettext.domain('gnome-shell-extensions');
+const _ = Gettext.gettext;
+
 const ICON_TEXTURE_SIZE = 24;
 const DND_ACTIVATE_TIMEOUT = 500;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]