[gnome-credentials] Use Unicode in translatable strings



commit 8a7309215a282774a94d6f46bcb720825747e57f
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Tue May 9 20:15:19 2017 +0200

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

 data/org.gnome.Credentials.gschema.xml |    2 +-
 src/editor.vala                        |    2 +-
 src/gpg-editor.vala                    |    6 +++---
 src/gpg-view-adapter.vala              |    4 ++--
 src/list-panel.vala                    |    8 ++++----
 src/secret-editor.vala                 |    8 ++++----
 src/ssh-editor.vala                    |    4 ++--
 src/utils.vala                         |   16 ++++++++--------
 8 files changed, 25 insertions(+), 25 deletions(-)
---
diff --git a/data/org.gnome.Credentials.gschema.xml b/data/org.gnome.Credentials.gschema.xml
index d2a3034..25fcebe 100644
--- a/data/org.gnome.Credentials.gschema.xml
+++ b/data/org.gnome.Credentials.gschema.xml
@@ -4,7 +4,7 @@
       <default>true</default>
       <summary>Show exclamation mark</summary>
       <description>
-        Use the exclamation mark at the end of "Hello world".
+        Use the exclamation mark at the end of “Hello world”.
       </description>
     </key>
   </schema>
diff --git a/src/editor.vala b/src/editor.vala
index 91bc2aa..a211141 100644
--- a/src/editor.vala
+++ b/src/editor.vala
@@ -14,7 +14,7 @@ namespace Credentials {
                         item.delete.end (res);
                     } catch (GLib.Error e) {
                         Utils.show_error (window,
-                                          _("Couldn't delete item: %s"),
+                                          _("Couldn’t delete item: %s"),
                                           e.message);
                     }
                 });
diff --git a/src/gpg-editor.vala b/src/gpg-editor.vala
index a7af284..9031ff9 100644
--- a/src/gpg-editor.vala
+++ b/src/gpg-editor.vala
@@ -643,7 +643,7 @@ namespace Credentials {
                 Gtk.DialogFlags.MODAL,
                 Gtk.MessageType.QUESTION,
                 Gtk.ButtonsType.OK_CANCEL,
-                _("Remove subkey \"%s\"? "),
+                _("Remove subkey “%s”? "),
                 subkey.key_id);
             dialog.response.connect ((res) => {
                     if (res == Gtk.ResponseType.OK) {
@@ -768,7 +768,7 @@ namespace Credentials {
                 Gtk.DialogFlags.MODAL,
                 Gtk.MessageType.QUESTION,
                 Gtk.ButtonsType.OK_CANCEL,
-                _("Remove user ID \"%s\"? "),
+                _("Remove user ID “%s”? "),
                 user_id.uid);
             dialog.response.connect ((res) => {
                     if (res == Gtk.ResponseType.OK) {
@@ -849,7 +849,7 @@ namespace Credentials {
                         item.change_password.end (res);
                     } catch (GLib.Error e) {
                         Utils.show_error (window,
-                                          _("Couldn't change password: %s"),
+                                          _("Couldn’t change password: %s"),
                                           e.message);
                     }
                 });
diff --git a/src/gpg-view-adapter.vala b/src/gpg-view-adapter.vala
index 89389c4..e77c87f 100644
--- a/src/gpg-view-adapter.vala
+++ b/src/gpg-view-adapter.vala
@@ -117,13 +117,13 @@ namespace Credentials {
                                     } catch (GLib.Error e) {
                                         Utils.show_error (
                                             transient_for,
-                                            _("Couldn't import keys: %s"),
+                                            _("Couldn’t import keys: %s"),
                                             e.message);
                                     }
                                 });
                         } catch (GLib.Error e) {
                             Utils.show_error (transient_for,
-                                              _("Couldn't read file %s: %s"),
+                                              _("Couldn’t read file %s: %s"),
                                               path, e.message);
                         }
                     }
diff --git a/src/list-panel.vala b/src/list-panel.vala
index f0406e8..35eeb0f 100644
--- a/src/list-panel.vala
+++ b/src/list-panel.vala
@@ -93,7 +93,7 @@ namespace Credentials {
                         Gtk.DialogFlags.MODAL,
                         Gtk.MessageType.QUESTION,
                         Gtk.ButtonsType.OK_CANCEL,
-                        _("\"%s\" is locked.  Unlock? "),
+                        _("“%s” is locked.  Unlock? "),
                         collection.name);
                     dialog.response.connect ((res) => {
                             if (res == Gtk.ResponseType.OK)
@@ -130,7 +130,7 @@ namespace Credentials {
                                                        null);
                 } catch (GLib.Error e) {
                     Utils.show_error (window,
-                                      _("Couldn't publish items: %s"),
+                                      _("Couldn’t publish items: %s"),
                                       e.message);
                     return;
                 }
@@ -182,7 +182,7 @@ namespace Credentials {
                     } catch (GLib.Error e) {
                         Utils.show_error (
                             window,
-                            _("Couldn't export items: %s"),
+                            _("Couldn’t export items: %s"),
                             e.message);
                     }
                 }
@@ -198,7 +198,7 @@ namespace Credentials {
                     yield item.delete (null);
                 } catch (GLib.Error e) {
                     Utils.show_error (window,
-                                      _("Couldn't delete items: %s"),
+                                      _("Couldn’t delete items: %s"),
                                       e.message);
                     return;
                 }
diff --git a/src/secret-editor.vala b/src/secret-editor.vala
index 227836c..a88c6fc 100644
--- a/src/secret-editor.vala
+++ b/src/secret-editor.vala
@@ -176,7 +176,7 @@ namespace Credentials {
                                     _item.set_secret.end (res);
                                 } catch (GLib.Error e) {
                                     Utils.show_error (window,
-                                                      _("Couldn't write password: %s"),
+                                                      _("Couldn’t write password: %s"),
                                                       e.message);
                                 }
                             });
@@ -206,7 +206,7 @@ namespace Credentials {
                                     _item.set_label.end (res);
                                 } catch (GLib.Error e) {
                                     Utils.show_error (window,
-                                                      _("Couldn't write label: %s"),
+                                                      _("Couldn’t write label: %s"),
                                                       e.message);
                                 }
                             });
@@ -252,7 +252,7 @@ namespace Credentials {
                                     _item.changed ();
                                 } catch (GLib.Error e) {
                                     Utils.show_error (window,
-                                                      _("Couldn't write attributes: %s"),
+                                                      _("Couldn’t write attributes: %s"),
                                                       e.message);
                                 }
                             });
@@ -273,7 +273,7 @@ namespace Credentials {
                                        Gtk.DialogFlags.MODAL,
                                        Gtk.MessageType.QUESTION,
                                        Gtk.ButtonsType.OK_CANCEL,
-                                       _("Delete password \"%s\"? "),
+                                       _("Delete password “%s”? "),
                                        _item.get_label ());
 
             confirm_dialog.response.connect ((res) => {
diff --git a/src/ssh-editor.vala b/src/ssh-editor.vala
index a6a9127..86f6345 100644
--- a/src/ssh-editor.vala
+++ b/src/ssh-editor.vala
@@ -43,7 +43,7 @@ namespace Credentials {
                                 _item.set_comment.end (res);
                             } catch (GLib.Error e) {
                                 Utils.show_error (window,
-                                                  _("Couldn't write comment: %s"),
+                                                  _("Couldn’t write comment: %s"),
                                                   e.message);
                             }
                         });
@@ -137,7 +137,7 @@ namespace Credentials {
                             _item.change_password.end (res);
                         } catch (GLib.Error e) {
                             Utils.show_error (window,
-                                              _("Couldn't change password: %s"),
+                                              _("Couldn’t change password: %s"),
                                               e.message);
                         }
                 });
diff --git a/src/utils.vala b/src/utils.vala
index e3f4d7e..22b9de1 100644
--- a/src/utils.vala
+++ b/src/utils.vala
@@ -59,10 +59,10 @@ namespace Credentials.Utils {
             if (days_ago < 1) {
                 if (use_24) {
                     /* Translators: Time in 24h format */
-                    format = N_("%H:%M");
+                    format = N_("%H∶%M");
                 } else {
                     /* Translators: Time in 12h format */
-                    format = N_("%l:%M %p");
+                    format = N_("%l∶%M %p");
                 }
             }
             // Show the word "Yesterday" and time if date is on yesterday
@@ -75,12 +75,12 @@ namespace Credentials.Utils {
                         /* Translators: this is the word Yesterday followed by
                          * a time in 24h format. i.e. "Yesterday 23:04" */
                         // xgettext:no-c-format
-                        format = N_("Yesterday %H:%M");
+                        format = N_("Yesterday %H∶%M");
                     } else {
                         /* Translators: this is the word Yesterday followed by
                          * a time in 12h format. i.e. "Yesterday 9:04 PM" */
                         // xgettext:no-c-format
-                        format = N_("Yesterday %l:%M %p");
+                        format = N_("Yesterday %l∶%M %p");
                     }
                 }
             } else if (date.get_year () == now.get_year ()) {
@@ -95,13 +95,13 @@ namespace Credentials.Utils {
                          * by the abbreviated month name followed by a time in
                          * 24h format i.e. "3 Feb 23:04" */
                         // xgettext:no-c-format
-                        format = N_("%-e %b %H:%M");
+                        format = N_("%-e %b %H∶%M");
                     } else {
                         /* Translators: this is the day of the month followed
                          * by the abbreviated month name followed by a time in
                          * 12h format i.e. "3 Feb 9:04" */
                         // xgettext:no-c-format
-                        format = N_("%-e %b %l:%M %p");
+                        format = N_("%-e %b %l∶%M %p");
                     }
                 }
             } else {
@@ -118,14 +118,14 @@ namespace Credentials.Utils {
                          * followed by the year followed by a time in
                          * 24h format i.e. "3 Feb 2015 23:04" */
                         // xgettext:no-c-format
-                        format = N_("%-e %b %Y %H:%M");
+                        format = N_("%-e %b %Y %H∶%M");
                     } else {
                         /* Translators: this is the day number
                          * followed by the abbreviated month name
                          * followed by the year followed by a time in
                          * 12h format i.e. "3 Feb 2015 9:04 PM" */
                         // xgettext:no-c-format
-                        format = N_("%-e %b %Y %l:%M %p");
+                        format = N_("%-e %b %Y %l∶%M %p");
                     }
                 }
             }


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