[gnome-mud/piotrdrag/unicode-typography] Use Unicode typography in user-visible strings



commit 4ec7321e04723c19f539dd168cbfb303d29cbeb7
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Tue Jan 1 17:21:53 2019 +0100

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

 src/mud-connection-view.c |  6 +++---
 src/mud-log.c             |  8 ++++----
 src/mud-window.c          |  2 +-
 ui/main.ui                | 12 ++++++------
 ui/muds.ui                |  2 +-
 5 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/src/mud-connection-view.c b/src/mud-connection-view.c
index 5831e70..e1d48d8 100644
--- a/src/mud-connection-view.c
+++ b/src/mud-connection-view.c
@@ -526,7 +526,7 @@ mud_connection_view_constructor (GType gtype,
     dl_vbox = gtk_vbox_new(FALSE, 0);
     dl_hbox = gtk_hbox_new(FALSE, 0);
 
-    self->priv->dl_label = gtk_label_new("Downloading...");
+    self->priv->dl_label = gtk_label_new("Downloading…");
     self->priv->progressbar = gtk_progress_bar_new();
     gtk_progress_bar_set_pulse_step (GTK_PROGRESS_BAR(self->priv->progressbar), 0.1);
     self->priv->dl_button = gtk_button_new_from_stock("gtk-cancel");
@@ -1965,7 +1965,7 @@ mud_connection_view_start_download(MudConnectionView *view)
     g_return_if_fail(!view->priv->downloading);
 
     gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(view->priv->progressbar), 0.0);
-    gtk_label_set_text(GTK_LABEL(view->priv->dl_label), _("Connecting..."));
+    gtk_label_set_text(GTK_LABEL(view->priv->dl_label), _("Connecting…"));
     gtk_widget_show(view->priv->progressbar);
     gtk_widget_show(view->priv->dl_label);
     gtk_widget_show(view->priv->dl_button);
@@ -1979,7 +1979,7 @@ mud_connection_view_start_download(MudConnectionView *view)
     g_string_append(dl_label_text, _("Downloading"));
     g_string_append_c(dl_label_text, ' ');
     g_string_append(dl_label_text, uri[g_strv_length(uri) - 1]);
-    g_string_append(dl_label_text, "...");
+    g_string_append(dl_label_text, "…");
 
     gtk_label_set_text(GTK_LABEL(view->priv->dl_label), dl_label_text->str);
 
diff --git a/src/mud-log.c b/src/mud-log.c
index 0ffb3dd..d1d2bc9 100644
--- a/src/mud-log.c
+++ b/src/mud-log.c
@@ -394,7 +394,7 @@ mud_log_select_clicked_cb(GtkWidget *widget,
     dialog = GTK_WIDGET(gtk_builder_get_object(builder, "save_dialog"));
     g_object_unref(builder);
 
-    g_object_set(dialog, "title", _("Save log as..."), NULL);
+    g_object_set(dialog, "title", _("Save log as…"), NULL);
 
     if(strlen(gtk_entry_get_text(GTK_ENTRY(self->priv->entry_file))) != 0)
     {
@@ -727,7 +727,7 @@ mud_log_open(MudLog *self)
 
             time(&t);
             strftime(buf, 1024,
-                    _("\n*** Log starts *** %d/%m/%Y %H:%M:%S\n"),
+                    _("\n*** Log starts *** %d/%m/%Y %H∶%M∶%S\n"),
                     localtime(&t));
             fprintf(self->priv->logfile, "%s", buf);
             fdatasync(fileno(self->priv->logfile));
@@ -812,7 +812,7 @@ mud_log_open(MudLog *self)
 
             utils_error_message(main_window,
                                 _("Log Error"),
-                                _("Could not open \"%s\" for writing."),
+                                _("Could not open “%s” for writing."),
                                 self->priv->filename);
         }
     }
@@ -845,7 +845,7 @@ mud_log_close(MudLog *log)
 
     time(&t);
     strftime(buf, 255,
-            _("\n *** Log stops *** %d/%m/%Y %H:%M:%S\n"),
+            _("\n *** Log stops *** %d/%m/%Y %H∶%M∶%S\n"),
             localtime(&t));
 
     fprintf(log->priv->logfile, "%s", buf);
diff --git a/src/mud-window.c b/src/mud-window.c
index b376203..8a81a00 100644
--- a/src/mud-window.c
+++ b/src/mud-window.c
@@ -1225,7 +1225,7 @@ mud_window_populate_profiles_menu(MudWindow *self)
 
     icon = gtk_image_new_from_stock("gtk-edit", GTK_ICON_SIZE_MENU);
 
-    manage = gtk_image_menu_item_new_with_mnemonic(_("_Manage Profiles..."));
+    manage = gtk_image_menu_item_new_with_mnemonic(_("_Manage Profiles…"));
     gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(manage), icon);
     gtk_widget_show(manage);
 
diff --git a/ui/main.ui b/ui/main.ui
index 4c58a60..60ca2c2 100644
--- a/ui/main.ui
+++ b/ui/main.ui
@@ -19,7 +19,7 @@
   <object class="GtkDialog" id="log_config_window">
     <property name="can_focus">False</property>
     <property name="border_width">5</property>
-    <property name="title" translatable="yes">Start Logging...</property>
+    <property name="title" translatable="yes">Start Logging…</property>
     <property name="resizable">False</property>
     <property name="window_position">center-on-parent</property>
     <property name="destroy_with_parent">True</property>
@@ -679,7 +679,7 @@
                     <property name="can_focus">False</property>
                     <child>
                       <object class="GtkImageMenuItem" id="main_connect">
-                        <property name="label" translatable="yes">C_onnection...</property>
+                        <property name="label" translatable="yes">C_onnection…</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="use_action_appearance">False</property>
@@ -724,7 +724,7 @@
                     </child>
                     <child>
                       <object class="GtkImageMenuItem" id="menu_start_logging">
-                        <property name="label" translatable="yes">Start _Logging...</property>
+                        <property name="label" translatable="yes">Start _Logging…</property>
                         <property name="visible">True</property>
                         <property name="sensitive">False</property>
                         <property name="can_focus">False</property>
@@ -746,7 +746,7 @@
                     </child>
                     <child>
                       <object class="GtkImageMenuItem" id="menu_dump_buffer">
-                        <property name="label" translatable="yes">_Save Buffer...</property>
+                        <property name="label" translatable="yes">_Save Buffer…</property>
                         <property name="visible">True</property>
                         <property name="sensitive">False</property>
                         <property name="can_focus">False</property>
@@ -830,7 +830,7 @@
                     </child>
                     <child>
                       <object class="GtkImageMenuItem" id="menu_preferences">
-                        <property name="label">Profile Preferences...</property>
+                        <property name="label">Profile Preferences…</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="use_action_appearance">False</property>
@@ -1050,7 +1050,7 @@
   <object class="GtkFileChooserDialog" id="save_dialog">
     <property name="can_focus">False</property>
     <property name="border_width">5</property>
-    <property name="title" translatable="yes">Save buffer as...</property>
+    <property name="title" translatable="yes">Save buffer as…</property>
     <property name="window_position">center</property>
     <property name="type_hint">dialog</property>
     <property name="action">save</property>
diff --git a/ui/muds.ui b/ui/muds.ui
index 677c5bd..3dac1b4 100644
--- a/ui/muds.ui
+++ b/ui/muds.ui
@@ -17,7 +17,7 @@
   </object>
   <object class="GtkDialog" id="iconselect">
     <property name="can_focus">False</property>
-    <property name="title" translatable="yes">Select An Icon...</property>
+    <property name="title" translatable="yes">Select An Icon…</property>
     <property name="modal">True</property>
     <property name="window_position">center-on-parent</property>
     <property name="default_width">300</property>


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