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



commit d2d1d2e333230d3028eaed97b4d6cb18e40a7b29
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 bbe6904..72741e1 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]