[gdm] Use Unicode in translatable strings



commit 95b0209e795e1c04669649fb710c87d089cc3d6a
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Thu Sep 29 22:41:37 2016 +0200

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

 daemon/gdm-display-access-file.c |    2 +-
 daemon/gdm-server.c              |   10 +++++-----
 daemon/gdm-session-worker.c      |    4 ++--
 daemon/main.c                    |    4 ++--
 utils/gdmflexiserver.c           |    2 +-
 5 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/daemon/gdm-display-access-file.c b/daemon/gdm-display-access-file.c
index 02ec0a0..9bf818d 100644
--- a/daemon/gdm-display-access-file.c
+++ b/daemon/gdm-display-access-file.c
@@ -297,7 +297,7 @@ _create_xauth_file_for_user (const char  *username,
                 g_set_error (error,
                              GDM_DISPLAY_ERROR,
                              GDM_DISPLAY_ERROR_GETTING_USER_INFO,
-                             _("could not find user \"%s\" on system"),
+                             _("could not find user “%s” on system"),
                              username);
                 goto out;
 
diff --git a/daemon/gdm-server.c b/daemon/gdm-server.c
index 6357d34..79cddc6 100644
--- a/daemon/gdm-server.c
+++ b/daemon/gdm-server.c
@@ -388,7 +388,7 @@ change_user (GdmServer *server)
 
         gdm_get_pwent_for_name (server->priv->user_name, &pwent);
         if (pwent == NULL) {
-                g_warning (_("Server was to be spawned by user %s but that user doesn't exist"),
+                g_warning (_("Server was to be spawned by user %s but that user doesn’t exist"),
                            server->priv->user_name);
                 _exit (1);
         }
@@ -399,7 +399,7 @@ change_user (GdmServer *server)
 
         if (pwent->pw_uid != 0) {
                 if (setgid (pwent->pw_gid) < 0)  {
-                        g_warning (_("Couldn't set groupid to %d"),
+                        g_warning (_("Couldn’t set groupid to %d"),
                                    pwent->pw_gid);
                         _exit (1);
                 }
@@ -411,7 +411,7 @@ change_user (GdmServer *server)
                 }
 
                 if (setuid (pwent->pw_uid) < 0)  {
-                        g_warning (_("Couldn't set userid to %d"),
+                        g_warning (_("Couldn’t set userid to %d"),
                                    (int)pwent->pw_uid);
                         _exit (1);
                 }
@@ -419,7 +419,7 @@ change_user (GdmServer *server)
                 gid_t groups[1] = { 0 };
 
                 if (setgid (0) < 0)  {
-                        g_warning (_("Couldn't set groupid to %d"), 0);
+                        g_warning (_("Couldn’t set groupid to %d"), 0);
                         /* Don't error out, it's not fatal, if it fails we'll
                          * just still be */
                 }
@@ -542,7 +542,7 @@ server_child_setup (GdmServer *server)
 
         if (server->priv->priority != 0) {
                 if (setpriority (PRIO_PROCESS, 0, server->priv->priority)) {
-                        g_warning (_("%s: Server priority couldn't be set to %d: %s"),
+                        g_warning (_("%s: Server priority couldn’t be set to %d: %s"),
                                    "gdm_server_spawn",
                                    server->priv->priority,
                                    g_strerror (errno));
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index d97b02b..c4d21ec 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -639,14 +639,14 @@ get_friendly_error_message (int error_code)
 
             case PAM_ACCT_EXPIRED:
             case PAM_AUTHTOK_EXPIRED:
-                return _("Your account was given a time limit that's now passed.");
+                return _("Your account was given a time limit that’s now passed.");
                 break;
 
             default:
                 break;
         }
 
-        return _("Sorry, that didn't work. Please try again.");
+        return _("Sorry, that didn’t work. Please try again.");
 }
 
 static int
diff --git a/daemon/main.c b/daemon/main.c
index ca2dda3..a2add01 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -220,7 +220,7 @@ gdm_daemon_lookup_user (uid_t *uidp,
 
         /* Set uid and gid */
         if G_UNLIKELY (pwent == NULL) {
-                gdm_fail (_("Can't find the GDM user '%s'. Aborting!"), username);
+                gdm_fail (_("Can’t find the GDM user “%s”. Aborting!"), username);
         } else {
                 uid = pwent->pw_uid;
         }
@@ -232,7 +232,7 @@ gdm_daemon_lookup_user (uid_t *uidp,
         grent = getgrnam (groupname);
 
         if G_UNLIKELY (grent == NULL) {
-                gdm_fail (_("Can't find the GDM group '%s'. Aborting!"), groupname);
+                gdm_fail (_("Can’t find the GDM group “%s”. Aborting!"), groupname);
         } else  {
                 gid = grent->gr_gid;
         }
diff --git a/utils/gdmflexiserver.c b/utils/gdmflexiserver.c
index 1c0e3ae..02ffdb3 100644
--- a/utils/gdmflexiserver.c
+++ b/utils/gdmflexiserver.c
@@ -134,7 +134,7 @@ main (int argc, char *argv[])
         setlocale (LC_ALL, "");
 
         /* Option parsing */
-        ctx = g_option_context_new (_("- New GDM login"));
+        ctx = g_option_context_new (_("— New GDM login"));
         g_option_context_set_translation_domain (ctx, GETTEXT_PACKAGE);
         g_option_context_add_main_entries (ctx, options, NULL);
         g_option_context_parse (ctx, &argc, &argv, NULL);


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