[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 _().
This commit is contained in:
parent
8aeadcdf9a
commit
e1a109b9be
@ -815,7 +815,7 @@ AppMenuButton.prototype = {
|
|||||||
let icon = this._focusedApp.get_faded_icon(AppDisplay.APPICON_SIZE);
|
let icon = this._focusedApp.get_faded_icon(AppDisplay.APPICON_SIZE);
|
||||||
let appName = this._focusedApp.get_name();
|
let appName = this._focusedApp.get_name();
|
||||||
this._label.setText(appName);
|
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.set_child(icon);
|
||||||
this._iconBox.show();
|
this._iconBox.show();
|
||||||
}
|
}
|
||||||
@ -835,7 +835,7 @@ ClockButton.prototype = {
|
|||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
PanelMenuButton.prototype._init.call(this, St.Align.START);
|
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._clock = new St.Label();
|
||||||
this.actor.set_child(this._clock);
|
this.actor.set_child(this._clock);
|
||||||
|
Loading…
Reference in New Issue
Block a user