Add initial calls to Gettext

We don't have a lot of strings, and what ones we do have we've
been avoiding duplication.  This patch adds calls to _() i.e. gettext
for those strings we do have.
This commit is contained in:
Colin Walters
2009-08-14 09:30:48 -04:00
parent ec95a1c2d3
commit ca51a8c926
5 changed files with 26 additions and 14 deletions

View File

@ -11,6 +11,8 @@ const Shell = imports.gi.Shell;
const Lang = imports.lang;
const Signals = imports.signals;
const Mainloop = imports.mainloop;
const Gettext = imports.gettext.domain('gnome-shell');
const _ = Gettext.gettext;
const DND = imports.ui.dnd;
const GenericDisplay = imports.ui.genericDisplay;
@ -311,7 +313,7 @@ AppDisplay.prototype = {
_redisplayMenus: function() {
this._menuDisplay.remove_all();
this._addMenuItem('Frequent', null, 'gtk-select-all');
this._addMenuItem(_("Frequent"), null, 'gtk-select-all');
for (let i = 0; i < this._menus.length; i++) {
let menu = this._menus[i];
this._addMenuItem(menu.name, menu.id, menu.icon, i+1);