[gnome-shell-extensions] Minor fixes
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] Minor fixes
- Date: Sun, 20 Feb 2011 17:08:32 +0000 (UTC)
commit f92addbbf6734f93b67dc893dbeb85656aff378c
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun Feb 20 17:50:40 2011 +0100
Minor fixes
Fix the translation of xrandr-indicator, make the dock translatable
and correct the original author of auto-move-windows.
extensions/auto-move-windows/metadata.json.in | 2 +-
extensions/xrandr-indicator/extension.js | 11 ++++++-----
po/POTFILES.in | 1 +
3 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/extensions/auto-move-windows/metadata.json.in b/extensions/auto-move-windows/metadata.json.in
index 2fd224f..843b7c4 100644
--- a/extensions/auto-move-windows/metadata.json.in
+++ b/extensions/auto-move-windows/metadata.json.in
@@ -4,5 +4,5 @@
"description": "Move applications to specific workspaces when they create windows",
"shell-version": [ "@shell_current@" ],
"localedir": "@LOCALEDIR@",
- "original-author": "alessandro crismani gmail com",
+ "original-authors": [ "alessandro crismani gmail com", "thomas bouffon gmail com" ]
}
diff --git a/extensions/xrandr-indicator/extension.js b/extensions/xrandr-indicator/extension.js
index 4f47936..999b005 100644
--- a/extensions/xrandr-indicator/extension.js
+++ b/extensions/xrandr-indicator/extension.js
@@ -15,6 +15,7 @@ const Panel = imports.ui.panel;
const Gettext = imports.gettext.domain('gnome-shell-extensions');
const _ = Gettext.gettext;
+const N_ = function(e) { return e };
const possibleRotations = [ GnomeDesktop.RRRotation.ROTATION_0,
GnomeDesktop.RRRotation.ROTATION_90,
@@ -22,10 +23,10 @@ const possibleRotations = [ GnomeDesktop.RRRotation.ROTATION_0,
GnomeDesktop.RRRotation.ROTATION_270
];
-let rotations = [ [ GnomeDesktop.RRRotation.ROTATION_0, _("Normal") ],
- [ GnomeDesktop.RRRotation.ROTATION_90, _("Left") ],
- [ GnomeDesktop.RRRotation.ROTATION_270, _("Right") ],
- [ GnomeDesktop.RRRotation.ROTATION_180, _("Upside-down") ]
+let rotations = [ [ GnomeDesktop.RRRotation.ROTATION_0, N_("Normal") ],
+ [ GnomeDesktop.RRRotation.ROTATION_90, N_("Left") ],
+ [ GnomeDesktop.RRRotation.ROTATION_270, N_("Right") ],
+ [ GnomeDesktop.RRRotation.ROTATION_180, N_("Upside-down") ]
];
const XRandr2Iface = {
@@ -91,7 +92,7 @@ Indicator.prototype = {
for (let i = 0; i < rotations.length; i++) {
let [bitmask, name] = rotations[i];
if (bitmask & allowedRotations) {
- let item = new PopupMenu.PopupMenuItem(name);
+ let item = new PopupMenu.PopupMenuItem(Gettext.gettext(name));
if (bitmask & currentRotation)
item.setShowDot(true);
item.connect('activate', Lang.bind(this, function(item, event) {
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 3082970..2e0c502 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -4,3 +4,4 @@ extensions/xrandr-indicator/extension.js
extensions/alternate-tab/extension.js
extensions/auto-move-windows/extension.js
extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml.in
+extensions/dock/extension.js
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]