Use '' for non-translated strings
Pay attention to the style guidelines. https://bugzilla.gnome.org/show_bug.cgi?id=660600
This commit is contained in:
parent
4e114107ed
commit
f13f5bc1bb
@ -78,7 +78,7 @@ function Inhibitor(objectPath) {
|
|||||||
Inhibitor.prototype = {
|
Inhibitor.prototype = {
|
||||||
_init: function(objectPath) {
|
_init: function(objectPath) {
|
||||||
DBus.session.proxifyObject(this,
|
DBus.session.proxifyObject(this,
|
||||||
"org.gnome.SessionManager",
|
'org.gnome.SessionManager',
|
||||||
objectPath);
|
objectPath);
|
||||||
this.isLoaded = false;
|
this.isLoaded = false;
|
||||||
this._loadingPropertiesCount = InhibitorIface.properties.length;
|
this._loadingPropertiesCount = InhibitorIface.properties.length;
|
||||||
@ -94,7 +94,7 @@ Inhibitor.prototype = {
|
|||||||
|
|
||||||
if (this._loadingPropertiesCount == 0) {
|
if (this._loadingPropertiesCount == 0) {
|
||||||
this.isLoaded = true;
|
this.isLoaded = true;
|
||||||
this.emit("is-loaded");
|
this.emit('is-loaded');
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ BoxPointer.prototype = {
|
|||||||
Tweener.addTween(this, { opacity: 255,
|
Tweener.addTween(this, { opacity: 255,
|
||||||
xOffset: 0,
|
xOffset: 0,
|
||||||
yOffset: 0,
|
yOffset: 0,
|
||||||
transition: "linear",
|
transition: 'linear',
|
||||||
onComplete: onComplete,
|
onComplete: onComplete,
|
||||||
time: POPUP_ANIMATION_TIME });
|
time: POPUP_ANIMATION_TIME });
|
||||||
},
|
},
|
||||||
@ -106,7 +106,7 @@ BoxPointer.prototype = {
|
|||||||
Tweener.addTween(this, { opacity: 0,
|
Tweener.addTween(this, { opacity: 0,
|
||||||
xOffset: xOffset,
|
xOffset: xOffset,
|
||||||
yOffset: yOffset,
|
yOffset: yOffset,
|
||||||
transition: "linear",
|
transition: 'linear',
|
||||||
time: POPUP_ANIMATION_TIME,
|
time: POPUP_ANIMATION_TIME,
|
||||||
onComplete: Lang.bind(this, function () {
|
onComplete: Lang.bind(this, function () {
|
||||||
this.actor.hide();
|
this.actor.hide();
|
||||||
|
@ -289,7 +289,7 @@ function loadExtension(dir, enabled, type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (extensions[uuid] != undefined) {
|
if (extensions[uuid] != undefined) {
|
||||||
logExtensionError(uuid, "extension already loaded");
|
logExtensionError(uuid, 'extension already loaded');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ Key.prototype = {
|
|||||||
this._extended_keys = this._key.get_extended_keys();
|
this._extended_keys = this._key.get_extended_keys();
|
||||||
this._extended_keyboard = null;
|
this._extended_keyboard = null;
|
||||||
|
|
||||||
if (this._key.name == "Control_L" || this._key.name == "Alt_L")
|
if (this._key.name == 'Control_L' || this._key.name == 'Alt_L')
|
||||||
this._key.latch = true;
|
this._key.latch = true;
|
||||||
|
|
||||||
this._key.connect('key-pressed', Lang.bind(this, function ()
|
this._key.connect('key-pressed', Lang.bind(this, function ()
|
||||||
@ -340,7 +340,7 @@ Keyboard.prototype = {
|
|||||||
right_box.add(button.actor);
|
right_box.add(button.actor);
|
||||||
else
|
else
|
||||||
left_box.add(button.actor);
|
left_box.add(button.actor);
|
||||||
if (key.name == "Caribou_Prefs") {
|
if (key.name == 'Caribou_Prefs') {
|
||||||
key.connect('key-released', Lang.bind(this, this.hide));
|
key.connect('key-released', Lang.bind(this, this.hide));
|
||||||
|
|
||||||
// Add new key for hiding message tray
|
// Add new key for hiding message tray
|
||||||
|
@ -157,9 +157,9 @@ Signals.addSignalMethods(Notebook.prototype);
|
|||||||
function objectToString(o) {
|
function objectToString(o) {
|
||||||
if (typeof(o) == typeof(objectToString)) {
|
if (typeof(o) == typeof(objectToString)) {
|
||||||
// special case this since the default is way, way too verbose
|
// special case this since the default is way, way too verbose
|
||||||
return "<js function>";
|
return '<js function>';
|
||||||
} else {
|
} else {
|
||||||
return "" + o;
|
return o.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -322,7 +322,7 @@ ObjInspector.prototype = {
|
|||||||
link = new St.Label({ text: '<error>' });
|
link = new St.Label({ text: '<error>' });
|
||||||
}
|
}
|
||||||
let hbox = new St.BoxLayout();
|
let hbox = new St.BoxLayout();
|
||||||
let propText = propName + ": " + valueStr;
|
let propText = propName + ': ' + valueStr;
|
||||||
hbox.add(new St.Label({ text: propName + ': ' }));
|
hbox.add(new St.Label({ text: propName + ': ' }));
|
||||||
hbox.add(link);
|
hbox.add(link);
|
||||||
this._container.add_actor(hbox);
|
this._container.add_actor(hbox);
|
||||||
@ -343,7 +343,7 @@ ObjInspector.prototype = {
|
|||||||
this.actor.move_anchor_point(Math.floor(sourceX + sourceWidth / 2),
|
this.actor.move_anchor_point(Math.floor(sourceX + sourceWidth / 2),
|
||||||
Math.floor(sourceY + sourceHeight / 2));
|
Math.floor(sourceY + sourceHeight / 2));
|
||||||
Tweener.addTween(this.actor, { scale_x: 1, scale_y: 1,
|
Tweener.addTween(this.actor, { scale_x: 1, scale_y: 1,
|
||||||
transition: "easeOutQuad",
|
transition: 'easeOutQuad',
|
||||||
time: 0.2 });
|
time: 0.2 });
|
||||||
} else {
|
} else {
|
||||||
this.actor.set_scale(1, 1);
|
this.actor.set_scale(1, 1);
|
||||||
|
@ -494,9 +494,9 @@ function notify(msg, details) {
|
|||||||
function notifyError(msg, details) {
|
function notifyError(msg, details) {
|
||||||
// Also print to stderr so it's logged somewhere
|
// Also print to stderr so it's logged somewhere
|
||||||
if (details)
|
if (details)
|
||||||
log("error: " + msg + ": " + details);
|
log('error: ' + msg + ': ' + details);
|
||||||
else
|
else
|
||||||
log("error: " + msg)
|
log('error: ' + msg);
|
||||||
|
|
||||||
notify(msg, details);
|
notify(msg, details);
|
||||||
}
|
}
|
||||||
|
@ -570,7 +570,7 @@ ChatSource.prototype = {
|
|||||||
open: function(notification) {
|
open: function(notification) {
|
||||||
if (this._client.is_handling_channel(this._channel)) {
|
if (this._client.is_handling_channel(this._channel)) {
|
||||||
// We are handling the channel, try to pass it to Empathy
|
// We are handling the channel, try to pass it to Empathy
|
||||||
this._client.delegate_channels_async([this._channel], global.get_current_time(), "", null);
|
this._client.delegate_channels_async([this._channel], global.get_current_time(), '', null);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// We are not the handler, just ask to present the channel
|
// We are not the handler, just ask to present the channel
|
||||||
|
@ -310,7 +310,7 @@ IMStatusChooserItem.prototype = {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
status = this._statusForPresence(newPresence);
|
status = this._statusForPresence(newPresence);
|
||||||
msg = msg ? msg : "";
|
msg = msg ? msg : '';
|
||||||
this._accountMgr.set_all_requested_presences(newPresence, status, msg);
|
this._accountMgr.set_all_requested_presences(newPresence, status, msg);
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -346,7 +346,7 @@ IMStatusChooserItem.prototype = {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
status = this._statusForPresence(newPresence);
|
status = this._statusForPresence(newPresence);
|
||||||
msg = msg ? msg : "";
|
msg = msg ? msg : '';
|
||||||
|
|
||||||
this._expectedPresence = newPresence;
|
this._expectedPresence = newPresence;
|
||||||
this._accountMgr.set_all_requested_presences(newPresence, status, msg);
|
this._accountMgr.set_all_requested_presences(newPresence, status, msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user