mirror of
https://github.com/oleid/gnome-shell-teatime.git
synced 2022-04-29 18:53:50 +00:00
parent
2d2fc839fa
commit
907fab139e
@ -20,7 +20,7 @@ const PanelMenu = imports.ui.panelMenu;
|
||||
const PopupMenu = imports.ui.popupMenu;
|
||||
const Panel = imports.ui.panel;
|
||||
|
||||
const Gettext = imports.gettext;
|
||||
const Gettext = imports.gettext.domain('TeaTime');
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Utils = Me.imports.utils;
|
||||
|
@ -13,7 +13,7 @@ const Lang = imports.lang;
|
||||
const Gtk = imports.gi.Gtk;
|
||||
const GObject = imports.gi.GObject;
|
||||
|
||||
const Gettext = imports.gettext;
|
||||
const Gettext = imports.gettext.domain('TeaTime');
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Utils = Me.imports.utils;
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
const Gio = imports.gi.Gio;
|
||||
const Lang = imports.lang;
|
||||
const Gettext = imports.gettext;
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Config = imports.misc.config;
|
||||
@ -44,8 +43,7 @@ function initTranslations(domain) {
|
||||
|
||||
domain = domain || extension.metadata['gettext-domain'];
|
||||
|
||||
Gettext.textdomain(domain);
|
||||
Gettext.bindtextdomain(domain, getExtensionLocaleDir());
|
||||
imports.gettext.bindtextdomain(domain, getExtensionLocaleDir());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user