[grilo-plugins] Use Unicode in translatable strings



commit 97a4c1aba83652033e0c699b48febf9dd794c106
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Thu Oct 6 04:12:45 2016 +0200

    Use Unicode in translatable strings
    
    Changes "…" quotation marks to “…”, ' apostrophes to ’, - hyphens to —,
    and one - hyphen to a colon.
    
    See https://developer.gnome.org/hig/stable/typography.html
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772494

 src/dleyna/grl-dleyna-source.c          | 4 ++--
 src/dmap/grl-daap.c                     | 2 +-
 src/dmap/grl-dpap.c                     | 2 +-
 src/flickr/grl-flickr.c                 | 4 ++--
 src/jamendo/grl-jamendo.c               | 2 +-
 src/magnatune/grl-magnatune.c           | 2 +-
 src/metadata-store/grl-metadata-store.c | 4 ++--
 src/tracker/grl-tracker-source-api.c    | 2 +-
 src/tracker/grl-tracker-utils.c         | 4 ++--
 9 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/dleyna/grl-dleyna-source.c b/src/dleyna/grl-dleyna-source.c
index 6d6ec6c..c433ef0 100644
--- a/src/dleyna/grl-dleyna-source.c
+++ b/src/dleyna/grl-dleyna-source.c
@@ -31,7 +31,7 @@
 #include <glib/gi18n-lib.h>
 
 #define SOURCE_ID_TEMPLATE    "grl-dleyna-%s"
-#define SOURCE_DESC_TEMPLATE  _("A source for browsing the DLNA server '%s'")
+#define SOURCE_DESC_TEMPLATE  _("A source for browsing the DLNA server “%s”")
 
 #define MEDIA_ID_PREFIX "dleyna:"
 #define MEDIA_ID_PREFIX_LENGTH 7
@@ -377,7 +377,7 @@ grl_dleyna_source_store_upload_update_cb (GrlDleynaSource      *self,
 
   if (!g_str_equal (upload_status, "COMPLETED")) {
     error = g_error_new (GRL_CORE_ERROR, GRL_CORE_ERROR_STORE_FAILED,
-                          _("Upload failed, '%s', transferred %lu of %lu bytes"),
+                          _("Upload failed, “%s”, transferred %lu of %lu bytes"),
                           upload_status,
                           (long unsigned int) length,
                           (long unsigned int) total);
diff --git a/src/dmap/grl-daap.c b/src/dmap/grl-daap.c
index 9cfcb9c..e8beb98 100644
--- a/src/dmap/grl-daap.c
+++ b/src/dmap/grl-daap.c
@@ -47,7 +47,7 @@ GRL_LOG_DOMAIN_STATIC(daap_log_domain);
 /* --- Plugin information --- */
 
 #define SOURCE_ID_TEMPLATE   "grl-daap-%s"
-#define SOURCE_DESC_TEMPLATE _("A source for browsing the DAAP server '%s'")
+#define SOURCE_DESC_TEMPLATE _("A source for browsing the DAAP server “%s”")
 
 /* --- Grilo DAAP Private --- */
 
diff --git a/src/dmap/grl-dpap.c b/src/dmap/grl-dpap.c
index 1ac1536..9e0071e 100644
--- a/src/dmap/grl-dpap.c
+++ b/src/dmap/grl-dpap.c
@@ -47,7 +47,7 @@ GRL_LOG_DOMAIN_STATIC(dmap_log_domain);
 /* --- Plugin information --- */
 
 #define SOURCE_ID_TEMPLATE   "grl-dpap-%s"
-#define SOURCE_DESC_TEMPLATE _("A source for browsing the DPAP server '%s'")
+#define SOURCE_DESC_TEMPLATE _("A source for browsing the DPAP server “%s”")
 
 /* --- Grilo DPAP Private --- */
 
diff --git a/src/flickr/grl-flickr.c b/src/flickr/grl-flickr.c
index c0de3a2..0e0fff1 100644
--- a/src/flickr/grl-flickr.c
+++ b/src/flickr/grl-flickr.c
@@ -64,9 +64,9 @@ GRL_LOG_DOMAIN(flickr_log_domain);
 
 #define PERSONAL_SOURCE_ID "grl-flickr-%s"
 /* "%s" is a full user name, like "John Doe" */
-#define PERSONAL_SOURCE_NAME _("%s's Flickr")
+#define PERSONAL_SOURCE_NAME _("%s’s Flickr")
 /* "%s" is a full user name, like "John Doe" */
-#define PERSONAL_SOURCE_DESC _("A source for browsing and searching %s's flickr photos")
+#define PERSONAL_SOURCE_DESC _("A source for browsing and searching %s’s flickr photos")
 
 typedef struct {
   GrlSource *source;
diff --git a/src/jamendo/grl-jamendo.c b/src/jamendo/grl-jamendo.c
index a0188ae..d271f60 100644
--- a/src/jamendo/grl-jamendo.c
+++ b/src/jamendo/grl-jamendo.c
@@ -1284,7 +1284,7 @@ grl_jamendo_source_query (GrlSource *source,
   if (!parse_query (qs->query, &category, &term)) {
     error = g_error_new (GRL_CORE_ERROR,
                          GRL_CORE_ERROR_QUERY_FAILED,
-                         _("Malformed query \"%s\""),
+                         _("Malformed query “%s”"),
                          qs->query);
     goto send_error;
   }
diff --git a/src/magnatune/grl-magnatune.c b/src/magnatune/grl-magnatune.c
index 8bd381b..39b3899 100644
--- a/src/magnatune/grl-magnatune.c
+++ b/src/magnatune/grl-magnatune.c
@@ -455,7 +455,7 @@ magnatune_get_db_done(GObject *source_object,
     if (ret == FALSE) {
       err = g_error_new(GRL_CORE_ERROR,
                         GRL_CORE_ERROR_MEDIA_NOT_FOUND,
-                        _("Failed to save database from magnatune - '%s'"),
+                        _("Failed to save database from magnatune: “%s”"),
                         err_fn->message);
       g_error_free(err_fn);
 
diff --git a/src/metadata-store/grl-metadata-store.c b/src/metadata-store/grl-metadata-store.c
index cab80b8..29eb55e 100644
--- a/src/metadata-store/grl-metadata-store.c
+++ b/src/metadata-store/grl-metadata-store.c
@@ -789,7 +789,7 @@ grl_metadata_store_source_resolve (GrlSource *source,
     error = g_error_new (GRL_CORE_ERROR,
                          GRL_CORE_ERROR_RESOLVE_FAILED,
                          _("Failed to resolve: %s"),
-                         _("\"source-id\" not available"));
+                         _("“source-id” not available"));
     rs->callback (rs->source, rs->operation_id, rs->media, rs->user_data, error);
     g_error_free (error);
     return;
@@ -834,7 +834,7 @@ grl_metadata_store_source_store_metadata (GrlSource *source,
     error = g_error_new (GRL_CORE_ERROR,
                          GRL_CORE_ERROR_STORE_METADATA_FAILED,
                          _("Failed to update metadata: %s"),
-                         _("\"source-id\" not available"));
+                         _("“source-id” not available"));
     failed_keys = g_list_copy (sms->keys);
   } else {
     /* Special case for root categories */
diff --git a/src/tracker/grl-tracker-source-api.c b/src/tracker/grl-tracker-source-api.c
index de4b185..52f4207 100644
--- a/src/tracker/grl-tracker-source-api.c
+++ b/src/tracker/grl-tracker-source-api.c
@@ -1085,7 +1085,7 @@ grl_tracker_source_browse_category (GrlSource *source,
 
       error = g_error_new (GRL_CORE_ERROR,
                            GRL_CORE_ERROR_BROWSE_FAILED,
-                           _("ID '%s' is not known in this source"),
+                           _("ID “%s” is not known in this source"),
                            id);
 
       bs->callback (bs->source, bs->operation_id, NULL, 0,
diff --git a/src/tracker/grl-tracker-utils.c b/src/tracker/grl-tracker-utils.c
index 0984a3a..7fa03ec 100644
--- a/src/tracker/grl-tracker-utils.c
+++ b/src/tracker/grl-tracker-utils.c
@@ -735,7 +735,7 @@ get_tracker_volume_name (const gchar *uri,
       if (g_file_equal (m_file, file)) {
         gchar *m_name = g_mount_get_name (G_MOUNT (mount->data));
         g_object_unref (G_OBJECT (m_file));
-        source_name = g_strdup_printf (_("Removable - %s"), m_name);
+        source_name = g_strdup_printf (_("Removable — %s"), m_name);
         g_free (m_name);
         break;
       }
@@ -756,7 +756,7 @@ get_tracker_volume_name (const gchar *uri,
 static gchar *
 get_tracker_upnp_name (const gchar *datasource_name)
 {
-  return g_strdup_printf ("UPnP - %s", datasource_name);
+  return g_strdup_printf ("UPnP — %s", datasource_name);
 }
 
 gchar *


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