[libpeas/wip/piotrdrag/unicode-typography: 4/4] Use Unicode in translatable strings



commit 5ff99fc06a03a93956db137ac07d773a65bf9bc4
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Tue Oct 11 15:50:46 2016 +0200

    Use Unicode in translatable strings
    
    See https://developer.gnome.org/hig/stable/typography.html
    
    Fixes: https://gitlab.gnome.org/GNOME/libpeas/issues/22

 libpeas-gtk/peas-gtk-disable-plugins-dialog.c | 6 +++---
 libpeas-gtk/peas-gtk-plugin-manager-view.c    | 2 +-
 libpeas/peas-engine.c                         | 6 +++---
 peas-demo/peas-demo.c                         | 2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/libpeas-gtk/peas-gtk-disable-plugins-dialog.c b/libpeas-gtk/peas-gtk-disable-plugins-dialog.c
index 6f9d5af..2f6ca13 100644
--- a/libpeas-gtk/peas-gtk-disable-plugins-dialog.c
+++ b/libpeas-gtk/peas-gtk-disable-plugins-dialog.c
@@ -99,7 +99,7 @@ build_multiple_dependent_plugins (PeasGtkDisablePluginsDialog *dialog)
   g_free (message);
 
   gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
-      _("The following plugins depend on '%s' and will also be disabled:"),
+      _("The following plugins depend on “%s” and will also be disabled:"),
       peas_plugin_info_get_name (priv->plugin_info));
 
   message_area = gtk_message_dialog_get_message_area (GTK_MESSAGE_DIALOG (dialog));
@@ -165,8 +165,8 @@ build_single_dependent_plugin (PeasGtkDisablePluginsDialog *dialog)
   g_free (message);
 
   gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
-      _("The '%s' plugin depends on the '%s' plugin.\n"
-        "If you disable '%s', '%s' will also be disabled."),
+      _("The “%s” plugin depends on the “%s” plugin.\n"
+        "If you disable “%s”, “%s” will also be disabled."),
       peas_plugin_info_get_name (priv->plugin_info),
       peas_plugin_info_get_name (priv->dep_plugins->data),
       peas_plugin_info_get_name (priv->plugin_info),
diff --git a/libpeas-gtk/peas-gtk-plugin-manager-view.c b/libpeas-gtk/peas-gtk-plugin-manager-view.c
index c6afbff..43453b4 100644
--- a/libpeas-gtk/peas-gtk-plugin-manager-view.c
+++ b/libpeas-gtk/peas-gtk-plugin-manager-view.c
@@ -631,7 +631,7 @@ peas_gtk_plugin_manager_view_query_tooltip (GtkWidget  *widget,
     return FALSE;
 
   /* Avoid having markup in a translated string */
-  to_bold = g_strdup_printf (_("The plugin '%s' could not be loaded"),
+  to_bold = g_strdup_printf (_("The plugin “%s” could not be loaded"),
                              peas_plugin_info_get_name (info));
 
   /* Keep separate because some translations do special things
diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
index 5713cb0..87755a3 100644
--- a/libpeas/peas-engine.c
+++ b/libpeas/peas-engine.c
@@ -1115,7 +1115,7 @@ peas_engine_load_plugin_real (PeasEngine     *engine,
           g_set_error (&info->error,
                        PEAS_PLUGIN_INFO_ERROR,
                        PEAS_PLUGIN_INFO_ERROR_DEP_NOT_FOUND,
-                       _("Dependency '%s' was not found"),
+                       _("Dependency “%s” was not found"),
                        dependencies[i]);
           goto error;
         }
@@ -1125,7 +1125,7 @@ peas_engine_load_plugin_real (PeasEngine     *engine,
           g_set_error (&info->error,
                        PEAS_PLUGIN_INFO_ERROR,
                        PEAS_PLUGIN_INFO_ERROR_LOADING_FAILED,
-                       _("Dependency '%s' failed to load"),
+                       _("Dependency “%s” failed to load"),
                        peas_plugin_info_get_name (dep_info));
           goto error;
         }
@@ -1139,7 +1139,7 @@ peas_engine_load_plugin_real (PeasEngine     *engine,
       g_set_error (&info->error,
                    PEAS_PLUGIN_INFO_ERROR,
                    PEAS_PLUGIN_INFO_ERROR_LOADER_NOT_FOUND,
-                   _("Plugin loader '%s' was not found"),
+                   _("Plugin loader “%s” was not found"),
                    peas_utils_get_loader_from_id (info->loader_id));
       goto error;
     }
diff --git a/peas-demo/peas-demo.c b/peas-demo/peas-demo.c
index 2a996f8..161150e 100644
--- a/peas-demo/peas-demo.c
+++ b/peas-demo/peas-demo.c
@@ -105,7 +105,7 @@ main (int    argc,
   gchar *plugin_dir;
   PeasEngine *engine;
 
-  option_context = g_option_context_new (_("- libpeas demo application"));
+  option_context = g_option_context_new (_("— libpeas demo application"));
   g_option_context_add_main_entries (option_context, demo_args, GETTEXT_PACKAGE);
   g_option_context_add_group (option_context, gtk_get_option_group (TRUE));
 


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