diff --git a/js/ui/appFavorites.js b/js/ui/appFavorites.js index 74a659622..16728f769 100644 --- a/js/ui/appFavorites.js +++ b/js/ui/appFavorites.js @@ -86,7 +86,7 @@ AppFavorites.prototype = { let app = Shell.AppSystem.get_default().get_app(appId); - Main.overview.infoBar.setMessage(_('%s has been added to your favorites.').format(app.get_name()), Lang.bind(this, function () { + Main.overview.infoBar.setMessage(_("%s has been added to your favorites.").format(app.get_name()), Lang.bind(this, function () { this._removeFavorite(appId); })); }, @@ -104,7 +104,7 @@ AppFavorites.prototype = { if (!this._removeFavorite(appId)) return; - Main.overview.infoBar.setMessage(_('%s has been removed from your favorites.').format(this._favorites[appId].get_name()), + Main.overview.infoBar.setMessage(_("%s has been removed from your favorites.").format(this._favorites[appId].get_name()), Lang.bind(this, function () { this._addFavorite(appId); })); diff --git a/js/ui/overview.js b/js/ui/overview.js index 8f9a8950b..8771a137f 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -92,7 +92,7 @@ InfoBar.prototype = { x_fill: true, y_fill: false }); this._label = new St.Label(); - this._undo = new St.Button({ label: _('Undo'), + this._undo = new St.Button({ label: _("Undo"), style_class: 'info-bar-link-button' }); let bin = new St.Bin({ x_fill: false, diff --git a/js/ui/statusMenu.js b/js/ui/statusMenu.js index 6f3a4bfa4..4e64d37ee 100644 --- a/js/ui/statusMenu.js +++ b/js/ui/statusMenu.js @@ -104,17 +104,17 @@ StatusMenu.prototype = { let item; - item = this._createImageMenuItem(_('Available'), 'gtk-yes', true); + item = this._createImageMenuItem(_("Available"), 'gtk-yes', true); item.connect('activate', Lang.bind(this, this._setPresenceStatus, GnomeSessionPresenceStatus.AVAILABLE)); this._menu.append(item); item.show(); - item = this._createImageMenuItem(_('Busy'), 'gtk-no', true); + item = this._createImageMenuItem(_("Busy"), 'gtk-no', true); item.connect('activate', Lang.bind(this, this._setPresenceStatus, GnomeSessionPresenceStatus.BUSY)); this._menu.append(item); item.show(); - item = this._createImageMenuItem(_('Invisible'), 'gtk-close', true); + item = this._createImageMenuItem(_("Invisible"), 'gtk-close', true); item.connect('activate', Lang.bind(this, this._setPresenceStatus, GnomeSessionPresenceStatus.INVISIBLE)); this._menu.append(item); item.show(); @@ -123,13 +123,13 @@ StatusMenu.prototype = { this._menu.append(item); item.show(); - item = this._createImageMenuItem(_('Account Information...'), 'user-info'); + item = this._createImageMenuItem(_("Account Information..."), 'user-info'); item.connect('activate', Lang.bind(this, this._onAccountInformationActivate)); this._menu.append(item); item.show(); let gconf = Shell.GConf.get_default(); - item = new Gtk.CheckMenuItem({ label: _('Sidebar'), + item = new Gtk.CheckMenuItem({ label: _("Sidebar"), active: gconf.get_boolean(SIDEBAR_VISIBLE_KEY) }); item.connect('activate', Lang.bind(this, function() { @@ -139,7 +139,7 @@ StatusMenu.prototype = { item.show(); this._sidebarItem = item; - item = this._createImageMenuItem(_('System Preferences...'), 'preferences-desktop'); + item = this._createImageMenuItem(_("System Preferences..."), 'preferences-desktop'); item.connect('activate', Lang.bind(this, this._onPreferencesActivate)); this._menu.append(item); item.show(); @@ -148,23 +148,23 @@ StatusMenu.prototype = { this._menu.append(item); item.show(); - item = this._createImageMenuItem(_('Lock Screen'), 'system-lock-screen'); + item = this._createImageMenuItem(_("Lock Screen"), 'system-lock-screen'); item.connect('activate', Lang.bind(this, this._onLockScreenActivate)); this._menu.append(item); item.show(); - item = this._createImageMenuItem(_('Switch User'), 'system-users'); + item = this._createImageMenuItem(_("Switch User"), 'system-users'); item.connect('activate', Lang.bind(this, this._onLoginScreenActivate)); this._menu.append(item); item.show(); this._loginScreenItem = item; - item = this._createImageMenuItem(_('Log Out...'), 'system-log-out'); + item = this._createImageMenuItem(_("Log Out..."), 'system-log-out'); item.connect('activate', Lang.bind(this, this._onQuitSessionActivate)); this._menu.append(item); item.show(); - item = this._createImageMenuItem(_('Shut Down...'), 'system-shutdown'); + item = this._createImageMenuItem(_("Shut Down..."), 'system-shutdown'); item.connect('activate', Lang.bind(this, this._onShutDownActivate)); this._menu.append(item); item.show();