[gnome-nettool] Use Unicode in translatable strings
- From: Piotr Drąg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nettool] Use Unicode in translatable strings
- Date: Fri, 28 Apr 2017 16:46:51 +0000 (UTC)
commit ab61235dae8c6dec434fa7e8c8be1d441d7a5d5d
Author: Piotr Drąg <piotrdrag gmail com>
Date: Fri Nov 11 17:29:42 2016 +0100
Use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=774281
data/gnome-nettool.ui | 2 +-
src/callbacks.c | 2 +-
src/finger.c | 4 ++--
src/main.c | 2 +-
src/nettool.c | 6 +++---
5 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/data/gnome-nettool.ui b/data/gnome-nettool.ui
index d7d739f..c5aa273 100644
--- a/data/gnome-nettool.ui
+++ b/data/gnome-nettool.ui
@@ -167,7 +167,7 @@
</object>
<object class="GtkWindow" id="main_window">
<property name="visible">True</property>
- <property comments="Dear Translator: This is the Window Title" name="title" translatable="yes">Devices -
Network Tools</property>
+ <property comments="Dear Translator: This is the Window Title" name="title" translatable="yes">Devices —
Network Tools</property>
<child>
<object class="GtkVBox" id="vbox_main">
<property name="visible">True</property>
diff --git a/src/callbacks.c b/src/callbacks.c
index ce19e6f..c705d25 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -460,7 +460,7 @@ on_page_switch (GtkNotebook * notebook,
/* Dear Translator: This is the Window Title. 'Network Tools' is the
* name of the application */
- title = g_strdup_printf (_("%s - Network Tools"),
+ title = g_strdup_printf (_("%s — Network Tools"),
gtk_label_get_text (GTK_LABEL (netinfo->page_label)));
gtk_window_set_title (GTK_WINDOW (netinfo->main_window), title);
g_free (title);
diff --git a/src/finger.c b/src/finger.c
index 930582c..a20979d 100644
--- a/src/finger.c
+++ b/src/finger.c
@@ -62,11 +62,11 @@ finger_do (Netinfo * netinfo)
if (g_ascii_strcasecmp (user, "") != 0)
netinfo->stbar_text =
- g_strdup_printf (_("Getting information of %s on \"%s\""), user,
+ g_strdup_printf (_("Getting information of %s on “%s”"), user,
g_ascii_strcasecmp (host, "") != 0 ? host : "localhost");
else
netinfo->stbar_text =
- g_strdup_printf (_("Getting information of all users on \"%s\""),
+ g_strdup_printf (_("Getting information of all users on “%s”"),
g_ascii_strcasecmp (host, "") != 0 ? host : "localhost");
/*if (netinfo->stbar_text)
g_free (netinfo->stbar_text);
diff --git a/src/main.c b/src/main.c
index bb58845..1a5f23d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -127,7 +127,7 @@ main (int argc, char *argv[])
}
if (!g_file_test (dialog, G_FILE_TEST_EXISTS)) {
- g_critical (_("The file %s doesn't exist, "
+ g_critical (_("The file %s doesn’t exist, "
"please check if gnome-nettool is correctly installed"),
dialog);
return -1;
diff --git a/src/nettool.c b/src/nettool.c
index 1cf232d..3735144 100644
--- a/src/nettool.c
+++ b/src/nettool.c
@@ -209,7 +209,7 @@ netinfo_validate_host (Netinfo * netinfo)
if (hostname == NULL) {
hostname = gethostbyname2 (host, PF_INET6);
if (hostname == NULL) {
- primary = g_strdup_printf (_("The address '%s' cannot be found"),
+ primary = g_strdup_printf (_("The address “%s” cannot be found"),
host);
secondary = g_strdup (_("Please enter a valid network address and try
again."));
}
@@ -285,9 +285,9 @@ netinfo_reap_child (GPid pid, gint status, gpointer user_data)
cmd = g_strjoinv (" ", netinfo->command_line);
primary = g_strdup_printf (
- /* '%s' is the task name to run
+ /* “%s” is the task name to run
(e.g. Traceroute, Port Scan, Finger, etc.) */
- _("An error occurred when try to run '%s'"),
+ _("An error occurred when try to run “%s”"),
page_label);
secondary = g_strdup_printf ("%s", cmd);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]