[gnome-shell] Use Unicode in translatable strings
- From: Piotr Drąg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Use Unicode in translatable strings
- Date: Thu, 16 Feb 2017 01:07:26 +0000 (UTC)
commit 649d360289aa9db5ecc849b66cedf51128636606
Author: Piotr Drąg <piotrdrag gmail com>
Date: Fri Sep 30 00:00:13 2016 +0200
Use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772210
data/org.gnome.shell.gschema.xml.in | 16 ++++++++--------
js/ui/components/polkitAgent.js | 2 +-
js/ui/shellMountOperation.js | 2 +-
js/ui/status/network.js | 2 +-
js/ui/windowManager.js | 2 +-
src/main.c | 2 +-
6 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/data/org.gnome.shell.gschema.xml.in b/data/org.gnome.shell.gschema.xml.in
index 7348d09..63a1903 100644
--- a/data/org.gnome.shell.gschema.xml.in
+++ b/data/org.gnome.shell.gschema.xml.in
@@ -26,7 +26,7 @@
<summary>Disable user extensions</summary>
<description>
Disable all extensions the user has enabled without affecting
- the 'enabled-extension' setting.
+ the “enabled-extension” setting.
</description>
</key>
<key name="disable-extension-version-validation" type="b">
@@ -64,9 +64,9 @@
</key>
<key name="always-show-log-out" type="b">
<default>false</default>
- <summary>Always show the 'Log out' menu item in the user menu.</summary>
+ <summary>Always show the “Log out” menu item in the user menu.</summary>
<description>
- This key overrides the automatic hiding of the 'Log out'
+ This key overrides the automatic hiding of the “Log out”
menu item in single-user, single-session situations.
</description>
</key>
@@ -76,7 +76,7 @@
<description>
The shell will request a password when an encrypted device or a
remote filesystem is mounted. If the password can be saved for
- future use a 'Remember Password' checkbox will be present.
+ future use a “Remember Password” checkbox will be present.
This key sets the default state of the checkbox.
</description>
</key>
@@ -105,9 +105,9 @@
</key>
<key name="toggle-application-view" type="as">
<default>["<Super>a"]</default>
- <summary>Keybinding to open the "Show Applications" view</summary>
+ <summary>Keybinding to open the “Show Applications” view</summary>
<description>
- Keybinding to open the "Show Applications" view of the Activities
+ Keybinding to open the “Show Applications” view of the Activities
Overview.
</description>
</key>
@@ -176,8 +176,8 @@
<summary>The application icon mode.</summary>
<description>
Configures how the windows are shown in the switcher. Valid possibilities
- are 'thumbnail-only' (shows a thumbnail of the window), 'app-icon-only'
- (shows only the application icon) or 'both'.
+ are “thumbnail-only” (shows a thumbnail of the window), “app-icon-only”
+ (shows only the application icon) or “both”.
</description>
</key>
<key type="b" name="current-workspace-only">
diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js
index 4abfe0e..6e49ced 100644
--- a/js/ui/components/polkitAgent.js
+++ b/js/ui/components/polkitAgent.js
@@ -298,7 +298,7 @@ const AuthenticationDialog = new Lang.Class({
* requested authentication was not gained; this can happen
* because of an authentication error (like invalid password),
* for instance. */
- this._errorMessageLabel.set_text(_("Sorry, that didn\'t work. Please try again."));
+ this._errorMessageLabel.set_text(_("Sorry, that didn’t work. Please try again."));
this._errorMessageLabel.show();
this._infoMessageLabel.hide();
this._nullMessageLabel.hide();
diff --git a/js/ui/shellMountOperation.js b/js/ui/shellMountOperation.js
index 413f196..9322a2d 100644
--- a/js/ui/shellMountOperation.js
+++ b/js/ui/shellMountOperation.js
@@ -380,7 +380,7 @@ const ShellMountPasswordDialog = new Lang.Class({
this.setInitialKeyFocus(this._passwordEntry);
this._errorMessageLabel = new St.Label({ style_class: 'prompt-dialog-error-label',
- text: _("Sorry, that didn\'t work. Please try again.") });
+ text: _("Sorry, that didn’t work. Please try again.") });
this._errorMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
this._errorMessageLabel.clutter_text.line_wrap = true;
this._errorMessageLabel.hide();
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 72f973a..560743c 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1431,7 +1431,7 @@ const NMVPNConnectionItem = new Lang.Class({
case NetworkManager.VPNConnectionState.PREPARE:
case NetworkManager.VPNConnectionState.CONNECT:
case NetworkManager.VPNConnectionState.IP_CONFIG_GET:
- return _("connecting...");
+ return _("connecting…");
case NetworkManager.VPNConnectionState.NEED_AUTH:
/* Translators: this is for network connections that require some kind of key or password */
return _("authentication required");
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 79b2092..3d0de97 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -675,7 +675,7 @@ const ResizePopup = new Lang.Class({
set: function(rect, displayW, displayH) {
/* Translators: This represents the size of a window. The first number is
* the width of the window and the second is the height. */
- let text = _("%d x %d").format(displayW, displayH);
+ let text = _("%d × %d").format(displayW, displayH);
this._label.set_text(text);
this._widget.set_position(rect.x, rect.y);
diff --git a/src/main.c b/src/main.c
index dbf0e3b..78a300d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -390,7 +390,7 @@ GOptionEntry gnome_shell_options[] = {
{
"mode", 0, 0, G_OPTION_ARG_STRING,
&session_mode,
- N_("Use a specific mode, e.g. \"gdm\" for login screen"),
+ N_("Use a specific mode, e.g. “gdm” for login screen"),
"MODE"
},
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]