From e1a109b9be89e70d123cb01881ea054a6bb5a503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 8 Jun 2010 17:11:15 +0200 Subject: [PATCH] [panel] Fix translatable strings There are some strings in panel.js which are not extracted correctly. Fix by marking them correctly with double quotes and _(). --- js/ui/panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/panel.js b/js/ui/panel.js index 958512fa1..aab4a03aa 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -815,7 +815,7 @@ AppMenuButton.prototype = { let icon = this._focusedApp.get_faded_icon(AppDisplay.APPICON_SIZE); let appName = this._focusedApp.get_name(); this._label.setText(appName); - this._quitMenu.label.set_text(_('Quit %s').format(appName)); + this._quitMenu.label.set_text(_("Quit %s").format(appName)); this._iconBox.set_child(icon); this._iconBox.show(); } @@ -835,7 +835,7 @@ ClockButton.prototype = { _init: function() { PanelMenuButton.prototype._init.call(this, St.Align.START); - this.menu.addAction("Preferences", Lang.bind(this, this._onPrefs)); + this.menu.addAction(_("Preferences"), Lang.bind(this, this._onPrefs)); this._clock = new St.Label(); this.actor.set_child(this._clock);