[gnome-shell] Use '' for non-translated strings
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Use '' for non-translated strings
- Date: Tue, 4 Oct 2011 20:49:36 +0000 (UTC)
commit f13f5bc1bb2ecbcc9edae92716b23b6caf7d683d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Sep 30 17:30:47 2011 -0400
Use '' for non-translated strings
Pay attention to the style guidelines.
https://bugzilla.gnome.org/show_bug.cgi?id=660600
js/misc/gnomeSession.js | 4 ++--
js/ui/boxpointer.js | 4 ++--
js/ui/extensionSystem.js | 2 +-
js/ui/keyboard.js | 4 ++--
js/ui/lookingGlass.js | 8 ++++----
js/ui/main.js | 4 ++--
js/ui/telepathyClient.js | 2 +-
js/ui/userMenu.js | 4 ++--
8 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/js/misc/gnomeSession.js b/js/misc/gnomeSession.js
index c661d41..b3dc068 100644
--- a/js/misc/gnomeSession.js
+++ b/js/misc/gnomeSession.js
@@ -78,7 +78,7 @@ function Inhibitor(objectPath) {
Inhibitor.prototype = {
_init: function(objectPath) {
DBus.session.proxifyObject(this,
- "org.gnome.SessionManager",
+ 'org.gnome.SessionManager',
objectPath);
this.isLoaded = false;
this._loadingPropertiesCount = InhibitorIface.properties.length;
@@ -94,7 +94,7 @@ Inhibitor.prototype = {
if (this._loadingPropertiesCount == 0) {
this.isLoaded = true;
- this.emit("is-loaded");
+ this.emit('is-loaded');
}
}));
}
diff --git a/js/ui/boxpointer.js b/js/ui/boxpointer.js
index 979e2d1..989a089 100644
--- a/js/ui/boxpointer.js
+++ b/js/ui/boxpointer.js
@@ -75,7 +75,7 @@ BoxPointer.prototype = {
Tweener.addTween(this, { opacity: 255,
xOffset: 0,
yOffset: 0,
- transition: "linear",
+ transition: 'linear',
onComplete: onComplete,
time: POPUP_ANIMATION_TIME });
},
@@ -106,7 +106,7 @@ BoxPointer.prototype = {
Tweener.addTween(this, { opacity: 0,
xOffset: xOffset,
yOffset: yOffset,
- transition: "linear",
+ transition: 'linear',
time: POPUP_ANIMATION_TIME,
onComplete: Lang.bind(this, function () {
this.actor.hide();
diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js
index 52ab2ab..446fe72 100644
--- a/js/ui/extensionSystem.js
+++ b/js/ui/extensionSystem.js
@@ -289,7 +289,7 @@ function loadExtension(dir, enabled, type) {
}
if (extensions[uuid] != undefined) {
- logExtensionError(uuid, "extension already loaded");
+ logExtensionError(uuid, 'extension already loaded');
return;
}
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 1367767..b5e14f0 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -75,7 +75,7 @@ Key.prototype = {
this._extended_keys = this._key.get_extended_keys();
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.connect('key-pressed', Lang.bind(this, function ()
@@ -340,7 +340,7 @@ Keyboard.prototype = {
right_box.add(button.actor);
else
left_box.add(button.actor);
- if (key.name == "Caribou_Prefs") {
+ if (key.name == 'Caribou_Prefs') {
key.connect('key-released', Lang.bind(this, this.hide));
// Add new key for hiding message tray
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index c371895..4db755b 100644
--- a/js/ui/lookingGlass.js
+++ b/js/ui/lookingGlass.js
@@ -157,9 +157,9 @@ Signals.addSignalMethods(Notebook.prototype);
function objectToString(o) {
if (typeof(o) == typeof(objectToString)) {
// special case this since the default is way, way too verbose
- return "<js function>";
+ return '<js function>';
} else {
- return "" + o;
+ return o.toString();
}
}
@@ -322,7 +322,7 @@ ObjInspector.prototype = {
link = new St.Label({ text: '<error>' });
}
let hbox = new St.BoxLayout();
- let propText = propName + ": " + valueStr;
+ let propText = propName + ': ' + valueStr;
hbox.add(new St.Label({ text: propName + ': ' }));
hbox.add(link);
this._container.add_actor(hbox);
@@ -343,7 +343,7 @@ ObjInspector.prototype = {
this.actor.move_anchor_point(Math.floor(sourceX + sourceWidth / 2),
Math.floor(sourceY + sourceHeight / 2));
Tweener.addTween(this.actor, { scale_x: 1, scale_y: 1,
- transition: "easeOutQuad",
+ transition: 'easeOutQuad',
time: 0.2 });
} else {
this.actor.set_scale(1, 1);
diff --git a/js/ui/main.js b/js/ui/main.js
index 4e67eca..7e2588f 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -494,9 +494,9 @@ function notify(msg, details) {
function notifyError(msg, details) {
// Also print to stderr so it's logged somewhere
if (details)
- log("error: " + msg + ": " + details);
+ log('error: ' + msg + ': ' + details);
else
- log("error: " + msg)
+ log('error: ' + msg);
notify(msg, details);
}
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index 43e1423..0ea3a7e 100644
--- a/js/ui/telepathyClient.js
+++ b/js/ui/telepathyClient.js
@@ -570,7 +570,7 @@ ChatSource.prototype = {
open: function(notification) {
if (this._client.is_handling_channel(this._channel)) {
// 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 {
// We are not the handler, just ask to present the channel
diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
index 607d66c..22988fa 100644
--- a/js/ui/userMenu.js
+++ b/js/ui/userMenu.js
@@ -310,7 +310,7 @@ IMStatusChooserItem.prototype = {
return;
status = this._statusForPresence(newPresence);
- msg = msg ? msg : "";
+ msg = msg ? msg : '';
this._accountMgr.set_all_requested_presences(newPresence, status, msg);
},
@@ -346,7 +346,7 @@ IMStatusChooserItem.prototype = {
return;
status = this._statusForPresence(newPresence);
- msg = msg ? msg : "";
+ msg = msg ? msg : '';
this._expectedPresence = newPresence;
this._accountMgr.set_all_requested_presences(newPresence, status, msg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]