Minor fixes
Fix the translation of xrandr-indicator, make the dock translatable and correct the original author of auto-move-windows.
This commit is contained 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" ]
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user