[gnome-shell] [panel] Fix translatable strings
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [panel] Fix translatable strings
- Date: Tue, 8 Jun 2010 15:18:55 +0000 (UTC)
commit e1a109b9be89e70d123cb01881ea054a6bb5a503
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jun 8 17:11:15 2010 +0200
[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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 958512f..aab4a03 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]