[gnome-shell] xgettext only recognizes _("foo"), not _('foo') in .js files. Fix
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] xgettext only recognizes _("foo"), not _('foo') in .js files. Fix
- Date: Mon, 15 Feb 2010 13:36:44 +0000 (UTC)
commit 229cfd9f80cb50fea31da275018a071f7a80a557
Author: Dan Winship <danw gnome org>
Date: Mon Feb 15 08:33:35 2010 -0500
xgettext only recognizes _("foo"), not _('foo') in .js files. Fix
Noted in https://bugzilla.gnome.org/show_bug.cgi?id=609838
js/ui/appFavorites.js | 4 ++--
js/ui/overview.js | 2 +-
js/ui/statusMenu.js | 20 ++++++++++----------
3 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/js/ui/appFavorites.js b/js/ui/appFavorites.js
index 74a6596..16728f7 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 8f9a895..8771a13 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 6f3a4bf..4e64d37 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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]