[seahorse-nautilus] Use Unicode in translatable strings



commit 73de146fe43838a77a84f16db8bf4f834371cf45
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Mon Dec 4 18:35:40 2017 +0100

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

 data/org.gnome.seahorse.nautilus.gschema.xml |    2 +-
 nautilus-ext/seahorse-nautilus.c             |    2 +-
 tool/seahorse-notification.c                 |    2 +-
 tool/seahorse-passphrase.c                   |    6 +++---
 tool/seahorse-tool-files.c                   |    8 ++++----
 tool/seahorse-tool.c                         |   26 +++++++++++++-------------
 tool/seahorse-util.c                         |    4 ++--
 7 files changed, 25 insertions(+), 25 deletions(-)
---
diff --git a/data/org.gnome.seahorse.nautilus.gschema.xml b/data/org.gnome.seahorse.nautilus.gschema.xml
index 8f134a9..dc8b37e 100644
--- a/data/org.gnome.seahorse.nautilus.gschema.xml
+++ b/data/org.gnome.seahorse.nautilus.gschema.xml
@@ -8,7 +8,7 @@
                <key name="separate-files" type="b">
                        <default>false</default>
                        <summary>Handle multiple files separately</summary>
-                       <description>When handling multiple files, don't package them but process 
separately.</description>
+                       <description>When handling multiple files, don’t package them but process 
separately.</description>
                </key>
                <key name="armor-mode" type="b">
                        <default>false</default>
diff --git a/nautilus-ext/seahorse-nautilus.c b/nautilus-ext/seahorse-nautilus.c
index 41efdfd..ffb71a3 100644
--- a/nautilus-ext/seahorse-nautilus.c
+++ b/nautilus-ext/seahorse-nautilus.c
@@ -155,7 +155,7 @@ seahorse_nautilus_get_file_items (NautilusMenuProvider *provider,
     if (is_all_mime_types (files, no_display_types))
         return NULL;
 
-    item = nautilus_menu_item_new ("NautilusSh::crypt", _("Encrypt..."),
+    item = nautilus_menu_item_new ("NautilusSh::crypt", _("Encrypt…"),
         ngettext ("Encrypt (and optionally sign) the selected file", "Encrypt the selected files", num), 
NULL);
     g_object_set_data_full (G_OBJECT (item), "files", nautilus_file_info_list_copy (files),
                                  (GDestroyNotify) nautilus_file_info_list_free);
diff --git a/tool/seahorse-notification.c b/tool/seahorse-notification.c
index c98ab23..61c4321 100644
--- a/tool/seahorse-notification.c
+++ b/tool/seahorse-notification.c
@@ -646,7 +646,7 @@ seahorse_notify_signatures (const gchar* data, gpgme_verify_result_t status)
     default:
         if (status->signatures->status != 0)
             seahorse_util_handle_gpgme (status->signatures->status,
-                                        _("Couldn't verify signature."));
+                                        _("Couldn’t verify signature."));
         return;
     };
 
diff --git a/tool/seahorse-passphrase.c b/tool/seahorse-passphrase.c
index 9c3000a..ae387b2 100644
--- a/tool/seahorse-passphrase.c
+++ b/tool/seahorse-passphrase.c
@@ -112,9 +112,9 @@ seahorse_passphrase_get (gconstpointer dummy, const gchar *passphrase_hint,
 
        if (split_uid && split_uid[0] && split_uid[1]) {
                if (flags & SEAHORSE_PASS_NEW)
-                       label = g_strdup_printf (_("Enter new passphrase for '%s'"), split_uid[1]);
+                       label = g_strdup_printf (_("Enter new passphrase for “%s”"), split_uid[1]);
                else
-                       label = g_strdup_printf (_("Enter passphrase for '%s'"), split_uid[1]);
+                       label = g_strdup_printf (_("Enter passphrase for “%s”"), split_uid[1]);
        } else {
                if (flags & SEAHORSE_PASS_NEW)
                        label = g_strdup (_("Enter new passphrase"));
@@ -132,7 +132,7 @@ seahorse_passphrase_get (gconstpointer dummy, const gchar *passphrase_hint,
 
        gcr_prompt_set_password_new (prompt, flags & SEAHORSE_PASS_NEW);
 
-       gcr_prompt_set_continue_label (prompt, _("Ok"));
+       gcr_prompt_set_continue_label (prompt, _("OK"));
        gcr_prompt_set_cancel_label (prompt, _("Cancel"));
 
        g_free (label);
diff --git a/tool/seahorse-tool-files.c b/tool/seahorse-tool-files.c
index e6abc88..696a942 100644
--- a/tool/seahorse-tool-files.c
+++ b/tool/seahorse-tool-files.c
@@ -860,7 +860,7 @@ seahorse_tool_files_process (SeahorseToolMode *mode, const gchar **uris)
 
     /* Start progress bar */
     seahorse_tool_progress_start (mode->title);
-    if (!seahorse_tool_progress_update (-1, _("Preparing...")))
+    if (!seahorse_tool_progress_update (-1, _("Preparing…")))
         goto finally;
 
     /*
@@ -869,7 +869,7 @@ seahorse_tool_files_process (SeahorseToolMode *mode, const gchar **uris)
      */
 
     if (!step_check_uris (&ctx, uris, &err)) {
-        errdesc = _("Couldn't list files");
+        errdesc = _("Couldn’t list files");
         goto finally;
     }
 
@@ -879,7 +879,7 @@ seahorse_tool_files_process (SeahorseToolMode *mode, const gchar **uris)
      */
     if (mode->package) {
         if (!step_process_multiple (&ctx, uris, &err)) {
-            errdesc = _("Couldn't package files");
+            errdesc = _("Couldn’t package files");
             goto finally;
         }
     }
@@ -892,7 +892,7 @@ seahorse_tool_files_process (SeahorseToolMode *mode, const gchar **uris)
      * dealing with. This also gets file size info.
      */
     if (!step_expand_uris (&ctx, &err)) {
-        errdesc = _("Couldn't list files");
+        errdesc = _("Couldn’t list files");
         goto finally;
     }
 
diff --git a/tool/seahorse-tool.c b/tool/seahorse-tool.c
index ae7f98f..711c791 100644
--- a/tool/seahorse-tool.c
+++ b/tool/seahorse-tool.c
@@ -69,7 +69,7 @@ static const GOptionEntry options[] = {
     { "uri-list", 'T', 0, G_OPTION_ARG_NONE, &read_uris,
         N_("Read list of URIs on standard in"), NULL },
     { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &arg_uris,
-        NULL, N_("file...") },
+        NULL, N_("file…") },
     { NULL }
 };
 
@@ -230,7 +230,7 @@ prompt_recipients (gpgme_key_t *signkey, gboolean *symmetric)
         gpgme_key_unref (*signkey);
 
     if (gerr)
-        seahorse_util_handle_gpgme (gerr, _("Couldn't load keys"));
+        seahorse_util_handle_gpgme (gerr, _("Couldn’t load keys"));
 
     return NULL;
 }
@@ -247,7 +247,7 @@ encrypt_sign_start (SeahorseToolMode *mode, const gchar *uri, gpgme_data_t urida
 
     /* File to encrypt to */
     touri = seahorse_util_add_suffix (uri, SEAHORSE_CRYPT_SUFFIX,
-                                      _("Choose Encrypted File Name for '%s'"));
+                                      _("Choose Encrypted File Name for “%s”"));
     if (!touri)
         return FALSE;
 
@@ -344,7 +344,7 @@ prompt_signer ()
         gpgme_release (ctx);
 
         if (gerr != 0)
-            seahorse_util_handle_gpgme (gerr, _("Couldn't load keys"));
+            seahorse_util_handle_gpgme (gerr, _("Couldn’t load keys"));
     }
 
     g_object_unref (ckstore);
@@ -364,7 +364,7 @@ sign_start (SeahorseToolMode *mode, const gchar *uri, gpgme_data_t uridata,
 
     /* File to encrypt to */
     touri = seahorse_util_add_suffix (uri, SEAHORSE_SIG_SUFFIX,
-                                      _("Choose Signature File Name for '%s'"));
+                                      _("Choose Signature File Name for “%s”"));
     if (!touri)
         return FALSE;
 
@@ -437,7 +437,7 @@ import_start (SeahorseToolMode *mode, const gchar *uri, gpgme_data_t uridata,
                                                      G_TYPE_INVALID);
 
         seahorse_operation_mark_start (op);
-        seahorse_operation_mark_progress (op, _("Importing keys ..."), 0.5);
+        seahorse_operation_mark_progress (op, _("Importing keys…"), 0.5);
     } else {
         g_free (buffer);
 
@@ -515,7 +515,7 @@ decrypt_start (SeahorseToolMode *mode, const gchar *uri, gpgme_data_t uridata,
     gchar *touri;
 
     /* File to decrypt to */
-    touri = seahorse_util_remove_suffix (uri, _("Choose Decrypted File Name for '%s'"));
+    touri = seahorse_util_remove_suffix (uri, _("Choose Decrypted File Name for “%s”"));
     if (!touri)
         return FALSE;
 
@@ -572,7 +572,7 @@ verify_start (SeahorseToolMode *mode, const gchar *uri, gpgme_data_t uridata,
         gchar *t;
 
         unesc_uri = g_uri_unescape_string (seahorse_util_uri_get_last (uri), NULL);
-        t = g_strdup_printf (_("Choose Original File for '%s'"),
+        t = g_strdup_printf (_("Choose Original File for “%s”"),
                              unesc_uri);
 
         dialog = gtk_file_chooser_dialog_new (t,
@@ -716,7 +716,7 @@ main (int argc, char **argv)
         mode.recipients = prompt_recipients (&mode.signer, &mode.symmetric);
         if (mode.recipients || mode.symmetric) {
             mode.title = _("Encrypting");
-            mode.errmsg = _("Couldn't encrypt file: %s");
+            mode.errmsg = _("Couldn’t encrypt file: %s");
             mode.startcb = encrypt_sign_start;
             mode.package = TRUE;
         }
@@ -725,26 +725,26 @@ main (int argc, char **argv)
         mode.signer = prompt_signer ();
         if (mode.signer) {
             mode.title = _("Signing");
-            mode.errmsg = _("Couldn't sign file: %s");
+            mode.errmsg = _("Couldn’t sign file: %s");
             mode.startcb = sign_start;
         }
 
     } else if (mode_import) {
         mode.title = _("Importing");
-        mode.errmsg = _("Couldn't import keys from file: %s");
+        mode.errmsg = _("Couldn’t import keys from file: %s");
         mode.startcb = import_start;
         mode.donecb = import_done;
         mode.imports = 0;
 
     } else if (mode_decrypt) {
         mode.title = _("Decrypting");
-        mode.errmsg = _("Couldn't decrypt file: %s");
+        mode.errmsg = _("Couldn’t decrypt file: %s");
         mode.startcb = decrypt_start;
         mode.donecb = decrypt_done;
 
     } else if (mode_verify) {
         mode.title = _("Verifying");
-        mode.errmsg = _("Couldn't verify file: %s");
+        mode.errmsg = _("Couldn’t verify file: %s");
         mode.startcb = verify_start;
         mode.donecb = verify_done;
 
diff --git a/tool/seahorse-util.c b/tool/seahorse-util.c
index 4bbca6e..f5f8e28 100644
--- a/tool/seahorse-util.c
+++ b/tool/seahorse-util.c
@@ -388,12 +388,12 @@ seahorse_util_uris_package (const gchar* package, const char** uris)
     }
 
     if (!r) {
-        seahorse_util_handle_error (err, _("Couldn't run file-roller"));
+        seahorse_util_handle_error (err, _("Couldn’t run file-roller"));
         return FALSE;
     }
 
     if(!(WIFEXITED(status) && WEXITSTATUS(status) == 0)) {
-        seahorse_util_show_error(NULL, _("Couldn't package files"),
+        seahorse_util_show_error(NULL, _("Couldn’t package files"),
                                  _("The file-roller process did not complete successfully"));
         return FALSE;
     }


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