[gtranslator/wip/piotrdrag/unicode-typography] Use Unicode typography in user-visible strings



commit f03527e3a459132ef378e53c9967e35616fce357
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Tue Sep 11 19:59:19 2018 +0200

    Use Unicode typography in user-visible strings
    
    See https://developer.gnome.org/hig/stable/typography.html

 data/org.gnome.Gtranslator.gschema.xml.in                 |  6 +++---
 plugins/alternate-language/gtr-alternate-language-panel.c |  2 +-
 plugins/codeview/gtr-codeview-plugin.c                    |  2 +-
 plugins/dictionary/gtr-dict-panel.c                       | 12 ++++++------
 src/gtr-actions-file.c                                    |  2 +-
 src/gtr-close-confirmation-dialog.c                       |  4 ++--
 src/gtr-header-dialog.ui                                  |  4 ++--
 src/gtr-po.c                                              |  6 +++---
 src/gtr-window.c                                          |  4 ++--
 src/main.c                                                |  4 ++--
 10 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/data/org.gnome.Gtranslator.gschema.xml.in b/data/org.gnome.Gtranslator.gschema.xml.in
index cdba7a1f..563925dc 100644
--- a/data/org.gnome.Gtranslator.gschema.xml.in
+++ b/data/org.gnome.Gtranslator.gschema.xml.in
@@ -120,8 +120,8 @@
       <default>'id'</default>
       <summary>Message list sort order</summary>
       <description>
-        Sort order to use in the message list. Possible values are "status", 
-        "id", "original-text" and "translated-text".
+        Sort order to use in the message list. Possible values are “status”, 
+        “id”, “original-text” and “translated-text”.
       </description>
     </key>
   </schema>
@@ -155,7 +155,7 @@
     <key name="active-plugins" type="as">
       <default>['translation-memory']</default>
       <summary>Active plugins</summary>
-      <description>List of active plugins. It contains the "Location" of the active plugins. See the 
.gtranslator-plugin file for obtaining the "Location" of a given plugin.</description>
+      <description>List of active plugins. It contains the “Location” of the active plugins. See the 
.gtranslator-plugin file for obtaining the “Location” of a given plugin.</description>
     </key>
   </schema>
 </schemalist>
diff --git a/plugins/alternate-language/gtr-alternate-language-panel.c 
b/plugins/alternate-language/gtr-alternate-language-panel.c
index f09cb1e3..6db0dbfa 100644
--- a/plugins/alternate-language/gtr-alternate-language-panel.c
+++ b/plugins/alternate-language/gtr-alternate-language-panel.c
@@ -360,7 +360,7 @@ gtr_alternate_lang_panel_init (GtrAlternateLangPanel * panel)
   gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (panel->priv->textview),
                                GTK_WRAP_WORD);
   gtk_text_view_set_editable (GTK_TEXT_VIEW (panel->priv->textview), FALSE);
-  gtr_alternate_lang_panel_set_text (panel, _("There isn't any file loaded"));
+  gtr_alternate_lang_panel_set_text (panel, _("There isn’t any file loaded"));
   gtk_widget_set_sensitive (panel->priv->textview, FALSE);
   gtk_widget_show (panel->priv->textview);
 
diff --git a/plugins/codeview/gtr-codeview-plugin.c b/plugins/codeview/gtr-codeview-plugin.c
index bba4de76..2379c27d 100644
--- a/plugins/codeview/gtr-codeview-plugin.c
+++ b/plugins/codeview/gtr-codeview-plugin.c
@@ -126,7 +126,7 @@ show_in_editor (const gchar * program_name,
       dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
                                        GTK_DIALOG_MODAL,
                                        GTK_BUTTONS_CLOSE,
-                                       _("Please install \"%s\" to be able to show the file"),
+                                       _("Please install “%s” to be able to show the file"),
                                        program_name);
       gtk_dialog_run (GTK_DIALOG (dialog));
       gtk_widget_destroy (dialog);
diff --git a/plugins/dictionary/gtr-dict-panel.c b/plugins/dictionary/gtr-dict-panel.c
index 13eae52d..fd5f8db1 100644
--- a/plugins/dictionary/gtr-dict-panel.c
+++ b/plugins/dictionary/gtr-dict-panel.c
@@ -163,7 +163,7 @@ get_context_from_loader (GtrDictPanel * panel)
       gchar *detail;
 
       detail =
-        g_strdup_printf (_("No dictionary source available with name '%s'"),
+        g_strdup_printf (_("No dictionary source available with name “%s”"),
                          priv->source_name);
 
       gtr_dict_panel_create_warning_dialog (_
@@ -182,7 +182,7 @@ get_context_from_loader (GtrDictPanel * panel)
     {
       gchar *detail;
 
-      detail = g_strdup_printf (_("No context available for source '%s'"),
+      detail = g_strdup_printf (_("No context available for source “%s”"),
                                 gdict_source_get_description (source));
 
       gtr_dict_panel_create_warning_dialog (_
@@ -269,7 +269,7 @@ source_activated_cb (GdictSourceChooser * chooser,
     {
       gchar *message;
 
-      message = g_strdup_printf (_("Dictionary source '%s' selected"),
+      message = g_strdup_printf (_("Dictionary source “%s” selected"),
                                  gdict_source_get_description (source));
       gtr_statusbar_flash_message (panel->priv->status, 0, "%s", message);
       g_free (message);
@@ -288,7 +288,7 @@ strategy_activated_cb (GdictStrategyChooser * chooser,
     {
       gchar *message;
 
-      message = g_strdup_printf (_("Strategy '%s' selected"), strat_desc);
+      message = g_strdup_printf (_("Strategy “%s” selected"), strat_desc);
       gtr_statusbar_flash_message (panel->priv->status, 0, "%s", message);
       g_free (message);
     }
@@ -306,7 +306,7 @@ database_activated_cb (GdictDatabaseChooser * chooser,
     {
       gchar *message;
 
-      message = g_strdup_printf (_("Database '%s' selected"), db_desc);
+      message = g_strdup_printf (_("Database “%s” selected"), db_desc);
       gtr_statusbar_flash_message (panel->priv->status, 0, "%s", message);
       g_free (message);
     }
@@ -350,7 +350,7 @@ speller_word_activated_cb (GdictSpeller * speller,
     {
       gchar *message;
 
-      message = g_strdup_printf (_("Word '%s' selected"), word);
+      message = g_strdup_printf (_("Word “%s” selected"), word);
       gtr_statusbar_flash_message (panel->priv->status, 0, "%s", message);
       g_free (message);
     }
diff --git a/src/gtr-actions-file.c b/src/gtr-actions-file.c
index 4053313a..c23a0d79 100644
--- a/src/gtr-actions-file.c
+++ b/src/gtr-actions-file.c
@@ -316,7 +316,7 @@ gtr_save_file_as_dialog (GtkAction * action, GtrWindow * window)
 
   dialog = gtr_file_chooser_new (GTK_WINDOW (window),
                                  FILESEL_SAVE,
-                                 _("Save file as..."),
+                                 _("Save file as…"),
                                  _gtr_application_get_last_dir (GTR_APP));
 
   gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog),
diff --git a/src/gtr-close-confirmation-dialog.c b/src/gtr-close-confirmation-dialog.c
index e975d233..7c5e0383 100644
--- a/src/gtr-close-confirmation-dialog.c
+++ b/src/gtr-close-confirmation-dialog.c
@@ -367,7 +367,7 @@ build_single_doc_dialog (GtrCloseConfirmationDialog * dlg)
 
   str =
     g_markup_printf_escaped (_
-                             ("Save the changes to document \"%s\" before closing?"),
+                             ("Save the changes to document “%s” before closing?"),
                              doc_name);
   g_free (doc_name);
 
@@ -582,7 +582,7 @@ build_multiple_docs_dialog (GtrCloseConfirmationDialog * dlg)
       gtk_label_new (_
                      ("Saving has been disabled by the system administrator."));
   else
-    secondary_label = gtk_label_new (_("If you don't save, "
+    secondary_label = gtk_label_new (_("If you don’t save, "
                                        "all your changes will be permanently lost."));
 
   gtk_box_pack_start (GTK_BOX (vbox2), secondary_label, FALSE, FALSE, 0);
diff --git a/src/gtr-header-dialog.ui b/src/gtr-header-dialog.ui
index 635c264e..b258744b 100644
--- a/src/gtr-header-dialog.ui
+++ b/src/gtr-header-dialog.ui
@@ -465,7 +465,7 @@
                             <property name="can_focus">False</property>
                             <property name="xalign">0</property>
                             <property name="xpad">12</property>
-                            <property name="label" translatable="yes">Translator's _name:</property>
+                            <property name="label" translatable="yes">Translator’s _name:</property>
                             <property name="use_underline">True</property>
                             <property name="mnemonic_widget">tr_name</property>
                           </object>
@@ -482,7 +482,7 @@
                             <property name="can_focus">False</property>
                             <property name="xalign">0</property>
                             <property name="xpad">12</property>
-                            <property name="label" translatable="yes">Translator's _email:</property>
+                            <property name="label" translatable="yes">Translator’s _email:</property>
                             <property name="use_underline">True</property>
                             <property name="mnemonic_widget">tr_email</property>
                           </object>
diff --git a/src/gtr-po.c b/src/gtr-po.c
index 9130a890..7b3e819c 100644
--- a/src/gtr-po.c
+++ b/src/gtr-po.c
@@ -445,7 +445,7 @@ _gtr_po_load (GtrPo * po, GFile * location, GError ** error)
       g_set_error (error,
                    GTR_PO_ERROR,
                    GTR_PO_ERROR_FILENAME,
-                   _("Failed opening file '%s': %s"),
+                   _("Failed opening file “%s”: %s"),
                    filename, g_strerror (errno));
       g_free (filename);
       return FALSE;
@@ -519,7 +519,7 @@ _gtr_po_load_ensure_utf8 (GtrPo * po, GError ** error)
               g_set_error (error,
                            GTR_PO_ERROR,
                            GTR_PO_ERROR_ENCODING,
-                           _("Could not convert from charset '%s' to UTF-8"),
+                           _("Could not convert from charset “%s” to UTF-8"),
                            charset);
               g_mapped_file_unref (mapped);
               g_free (charset);
@@ -756,7 +756,7 @@ gtr_po_save_file (GtrPo * po, GError ** error)
                    GTR_PO_ERROR_FILENAME,
                    _("You are saving a file with a .pot extension.\n"
                      "Pot files are generated by the compilation process.\n"
-                     "Your file should likely be named '%s.po'."), filename);
+                     "Your file should likely be named “%s.po”."), filename);
       g_free (filename);
       return;
     }
diff --git a/src/gtr-window.c b/src/gtr-window.c
index 7bb97591..0d7cc047 100644
--- a/src/gtr-window.c
+++ b/src/gtr-window.c
@@ -271,12 +271,12 @@ set_window_title (GtrWindow * window, gboolean with_path)
       if (state == GTR_PO_STATE_MODIFIED)
         {
           /* Translators: this is the title of the window with a modified document */
-          title = g_strdup_printf (_("*%s - gtranslator"), basename);
+          title = g_strdup_printf (_("*%s — gtranslator"), basename);
         }
       else
         {
           /* Translators: this is the title of the window with a document opened */
-          title = g_strdup_printf (_("%s - gtranslator"), basename);
+          title = g_strdup_printf (_("%s — gtranslator"), basename);
         }
 
       g_free (basename);
diff --git a/src/main.c b/src/main.c
index 1b4d35d8..89c491d4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -94,11 +94,11 @@ main (gint argc, gchar * argv[])
   GOptionContext *context;
   GError *error = NULL;
 
-  context = g_option_context_new (_("- Edit PO files"));
+  context = g_option_context_new (_("— Edit PO files"));
   g_option_context_add_group (context, g_irepository_get_option_group ());
   if (!g_option_context_parse (context, &argc, &argv, &error))
     {
-      g_print(_("%s\nRun '%s --help' to see a full list of available command line options.\n"),
+      g_print(_("%s\nRun “%s --help” to see a full list of available command line options.\n"),
               error->message, argv[0]);
       g_error_free (error);
       g_option_context_free (context);


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