[gnome-session] Use Unicode in translatable strings



commit 9bbc9c156629037532f33da9d7dc311bb49470cb
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Thu Sep 29 23:06:36 2016 +0200

    Use Unicode in translatable strings
    
    See https://developer.gnome.org/hig/stable/typography.html
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772206

 gnome-session/gsm-fail-whale-dialog.c |    6 +++---
 gnome-session/main.c                  |    2 +-
 tools/gnome-session-inhibit.c         |    2 +-
 tools/gnome-session-quit.c            |    2 +-
 tools/gnome-session-selector.c        |    8 ++++----
 5 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gnome-session/gsm-fail-whale-dialog.c b/gnome-session/gsm-fail-whale-dialog.c
index c5889ef..ca64b2e 100644
--- a/gnome-session/gsm-fail-whale-dialog.c
+++ b/gnome-session/gsm-fail-whale-dialog.c
@@ -317,11 +317,11 @@ setup_window (GsmFailWhaleDialog *fail_dialog)
         gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0);
 
         if (!priv->allow_logout)
-                message_label = gtk_label_new (_("A problem has occurred and the system can't recover. 
Please contact a system administrator"));
+                message_label = gtk_label_new (_("A problem has occurred and the system can’t recover. 
Please contact a system administrator"));
         else if (priv->extensions)
-                message_label = gtk_label_new (_("A problem has occurred and the system can't recover. All 
extensions have been disabled as a precaution."));
+                message_label = gtk_label_new (_("A problem has occurred and the system can’t recover. All 
extensions have been disabled as a precaution."));
         else
-                message_label = gtk_label_new (_("A problem has occurred and the system can't 
recover.\nPlease log out and try again."));
+                message_label = gtk_label_new (_("A problem has occurred and the system can’t 
recover.\nPlease log out and try again."));
 
         gtk_label_set_justify (GTK_LABEL (message_label), GTK_JUSTIFY_CENTER);
         gtk_label_set_line_wrap (GTK_LABEL (message_label), TRUE);
diff --git a/gnome-session/main.c b/gnome-session/main.c
index 7ae3323..0e6f824 100644
--- a/gnome-session/main.c
+++ b/gnome-session/main.c
@@ -315,7 +315,7 @@ main (int argc, char **argv)
         }
 
         error = NULL;
-        options = g_option_context_new (_(" - the GNOME session manager"));
+        options = g_option_context_new (_(" — the GNOME session manager"));
         g_option_context_add_main_entries (options, entries, GETTEXT_PACKAGE);
         g_option_context_parse (options, &argc, &argv, &error);
         if (error != NULL) {
diff --git a/tools/gnome-session-inhibit.c b/tools/gnome-session-inhibit.c
index 622def1..1c7a56d 100644
--- a/tools/gnome-session-inhibit.c
+++ b/tools/gnome-session-inhibit.c
@@ -105,7 +105,7 @@ static gboolean inhibit (const gchar       *app_id,
 
 static void usage (void)
 {
-  g_print (_("%s [OPTION...] COMMAND\n"
+  g_print (_("%s [OPTION…] COMMAND\n"
              "\n"
              "Execute COMMAND while inhibiting some session functionality.\n"
              "\n"
diff --git a/tools/gnome-session-quit.c b/tools/gnome-session-quit.c
index 76b6f6d..4dddbfe 100644
--- a/tools/gnome-session-quit.c
+++ b/tools/gnome-session-quit.c
@@ -51,7 +51,7 @@ static GOptionEntry options[] = {
         {"power-off", '\0', 0, G_OPTION_ARG_NONE, &opt_power_off, N_("Power off"), NULL},
         {"reboot", '\0', 0, G_OPTION_ARG_NONE, &opt_reboot, N_("Reboot"), NULL},
         {"force", '\0', 0, G_OPTION_ARG_NONE, &opt_force, N_("Ignoring any existing inhibitors"), NULL},
-        {"no-prompt", '\0', 0, G_OPTION_ARG_NONE, &opt_no_prompt, N_("Don't prompt for user confirmation"), 
NULL},
+        {"no-prompt", '\0', 0, G_OPTION_ARG_NONE, &opt_no_prompt, N_("Don’t prompt for user confirmation"), 
NULL},
         {NULL}
 };
 
diff --git a/tools/gnome-session-selector.c b/tools/gnome-session-selector.c
index d7584ff..71892c4 100644
--- a/tools/gnome-session-selector.c
+++ b/tools/gnome-session-selector.c
@@ -104,15 +104,15 @@ is_valid_session_name (const char *name)
         if (user_tried_dot && user_tried_slash) {
             warning_text = g_strdup_printf ("%s\n<small><b>Note:</b> <i>%s</i></small>",
                                             info_text,
-                                            _("Session names are not allowed to start with ‘.’ or contain 
‘/’ characters"));
+                                            _("Session names are not allowed to start with “.” or contain 
“/” characters"));
         } else if (user_tried_dot) {
             warning_text = g_strdup_printf ("%s\n<small><b>Note:</b> <i>%s</i></small>",
                                             info_text,
-                                            _("Session names are not allowed to start with ‘.’"));
+                                            _("Session names are not allowed to start with “.”"));
         } else if (user_tried_slash) {
             warning_text = g_strdup_printf ("%s\n<small><b>Note:</b> <i>%s</i></small>",
                                             info_text,
-                                            _("Session names are not allowed to contain ‘/’ characters"));
+                                            _("Session names are not allowed to contain “/” characters"));
         }
 
         gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter);
@@ -120,7 +120,7 @@ is_valid_session_name (const char *name)
                 gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, 0, &n, -1);
                 if (strcmp (n, name) == 0) {
                         char *message;
-                        message = g_strdup_printf (_("A session named ‘%s’ already exists"), name);
+                        message = g_strdup_printf (_("A session named “%s” already exists"), name);
                         warning_text = g_strdup_printf ("%s\n<small><b>Note:</b> <i>%s</i></small>", 
info_text, message);
                         g_free (message);
                         g_free (n);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]