[gtk] Use Unicode typography in new translatable strings



commit cf5f577834ae0da9a272a6c8f8d83cbed9b83046
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Fri Feb 8 19:24:53 2019 +0100

    Use Unicode typography in new translatable strings
    
    See https://developer.gnome.org/hig/stable/typography.html

 gtk/gtkwidget.c                       | 2 +-
 gtk/tools/gtk-builder-tool-simplify.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index db8434998d..92dc835842 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -1314,7 +1314,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
   widget_props[PROP_OVERFLOW] =
       g_param_spec_enum ("overflow",
                          P_("Overflow"),
-                         P_("How content outside the widget's content area is treated"),
+                         P_("How content outside the widget’s content area is treated"),
                          GTK_TYPE_OVERFLOW,
                          GTK_OVERFLOW_VISIBLE,
                          GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/tools/gtk-builder-tool-simplify.c b/gtk/tools/gtk-builder-tool-simplify.c
index 1847e37c99..beb4edadab 100644
--- a/gtk/tools/gtk-builder-tool-simplify.c
+++ b/gtk/tools/gtk-builder-tool-simplify.c
@@ -772,7 +772,7 @@ simplify_file (const char *filename,
 
   if (!g_file_get_contents (filename, &buffer, NULL, &error))
     {
-      g_printerr (_("Can’t load '%s': %s\n"), filename, error->message);
+      g_printerr (_("Can’t load “%s”: %s\n"), filename, error->message);
       return FALSE;
     }
 
@@ -783,7 +783,7 @@ simplify_file (const char *filename,
   context = g_markup_parse_context_new (&parser, G_MARKUP_TREAT_CDATA_AS_TEXT, &data, NULL);
   if (!g_markup_parse_context_parse (context, buffer, -1, &error))
     {
-      g_printerr (_("Can’t parse '%s': %s\n"), filename, error->message);
+      g_printerr (_("Can’t parse “%s”: %s\n"), filename, error->message);
       return FALSE;
     }
 
@@ -802,13 +802,13 @@ simplify_file (const char *filename,
 
       if (!g_file_get_contents (data.output_filename, &content, &length, &error))
         {
-          g_printerr (_("Failed to read '%s': %s\n"), data.output_filename, error->message);
+          g_printerr (_("Failed to read “%s”: %s\n"), data.output_filename, error->message);
           return FALSE;
         }
 
       if (!g_file_set_contents (data.input_filename, content, length, &error))
         {
-          g_printerr (_("Failed to write %s: '%s'\n"), data.input_filename, error->message);
+          g_printerr (_("Failed to write %s: “%s”\n"), data.input_filename, error->message);
           return FALSE;
         }
     }


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