diff options
author | Piotr Drąg <piotrdrag@gmail.com> | 2016-10-11 15:50:46 +0200 |
---|---|---|
committer | Piotr Drąg <piotrdrag@gmail.com> | 2018-05-22 18:39:06 +0200 |
commit | 25eb445c55f96f52b23a2813538e325d18fe79ec (patch) | |
tree | f7f115891a503c1544415233a0adac8e790c39f5 | |
parent | 48a70f1f9372326d18c1fbbe44b65d7ff21a9a60 (diff) | |
download | libpeas-wip/piotrdrag/unicode-typography.tar.gz |
Use Unicode in translatable stringswip/piotrdrag/unicode-typography
See https://developer.gnome.org/hig/stable/typography.html
Fixes: https://gitlab.gnome.org/GNOME/libpeas/issues/22
-rw-r--r-- | libpeas-gtk/peas-gtk-disable-plugins-dialog.c | 6 | ||||
-rw-r--r-- | libpeas-gtk/peas-gtk-plugin-manager-view.c | 2 | ||||
-rw-r--r-- | libpeas/peas-engine.c | 6 | ||||
-rw-r--r-- | 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)); |