[libgnomekbd/wip/piotrdrag/unicode-typography: 2/2] Use Unicode in translatable strings



commit 54264acca9afb899c5ee6fdc7e2f9124451b4624
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Tue Oct 11 16:08:08 2016 +0200

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

 libgnomekbd/gkbd-keyboard-config.c  | 6 +++---
 libgnomekbd/gkbd-keyboard-drawing.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgnomekbd/gkbd-keyboard-config.c b/libgnomekbd/gkbd-keyboard-config.c
index 00dc429..4fed7d2 100644
--- a/libgnomekbd/gkbd-keyboard-config.c
+++ b/libgnomekbd/gkbd-keyboard-config.c
@@ -709,7 +709,7 @@ gkbd_keyboard_config_to_string (const GkbdKeyboardConfig * config)
                    g_strdup_printf (ngettext
                                     /* Translators: The count is related to the number of options. The %s
                                     * format specifier should not be modified, left "as is". */
-                                    ("layout \"%s\"", "layouts \"%s\"",
+                                    ("layout “%s”", "layouts “%s”",
                                      count), buffer->str);
                g_string_truncate (buffer, 0);
        }
@@ -727,7 +727,7 @@ gkbd_keyboard_config_to_string (const GkbdKeyboardConfig * config)
                    g_strdup_printf (ngettext
                                     /* Translators: The count is related to the number of options. The %s
                                     * format specifier should not be modified, left "as is". */
-                                    ("option \"%s\"", "options \"%s\"",
+                                    ("option “%s”", "options “%s”",
                                      count), buffer->str);
                g_string_truncate (buffer, 0);
        }
@@ -735,7 +735,7 @@ gkbd_keyboard_config_to_string (const GkbdKeyboardConfig * config)
        g_string_free (buffer, TRUE);
 
        result =
-           g_strdup_printf (_("model \"%s\", %s and %s"), config->model,
+           g_strdup_printf (_("model “%s”, %s and %s"), config->model,
                             layouts ? layouts : _("no layout"),
                             options ? options : _("no options"));
 
diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c
index da526d2..c9eef82 100644
--- a/libgnomekbd/gkbd-keyboard-drawing.c
+++ b/libgnomekbd/gkbd-keyboard-drawing.c
@@ -2454,7 +2454,7 @@ gkbd_keyboard_drawing_draw_page (GtkPrintOperation * operation,
        gtk_print_operation_set_unit (operation, GTK_UNIT_PIXEL);
 
        header = g_strdup_printf
-           (_("Keyboard layout \"%s\"\n"
+           (_("Keyboard layout “%s”\n"
               "Copyright &#169; X.Org Foundation and "
               "XKeyboardConfig contributors\n"
               "For licensing see package metadata"), data->description);


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