[rygel] Use Unicode in translatable strings



commit 7ad4123f4a46655b50ba9d03e67d24256c6afd2e
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Mon Oct 3 14:29:14 2016 +0200

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

 src/librygel-core/rygel-basic-management.vala      |   10 +++++-----
 src/librygel-core/rygel-meta-config.vala           |   14 +++++++-------
 src/librygel-core/rygel-plugin-loader.vala         |    6 +++---
 .../rygel-recursive-module-loader.vala             |    6 +++---
 .../rygel-playbin-player.vala                      |    2 +-
 src/librygel-ruih/rygel-ruih-icon-elem.vala        |    2 +-
 src/librygel-ruih/rygel-ruih-protocol-elem.vala    |    4 ++--
 src/librygel-ruih/rygel-ruih-servicemanager.vala   |    6 +++---
 src/librygel-ruih/rygel-ruih-ui-elem.vala          |    2 +-
 src/librygel-server/rygel-browse.vala              |    2 +-
 src/librygel-server/rygel-http-item-uri.vala       |    2 +-
 src/librygel-server/rygel-http-post.vala           |    2 +-
 src/librygel-server/rygel-http-request.vala        |    2 +-
 .../rygel-http-resource-handler.vala               |    2 +-
 src/librygel-server/rygel-import-resource.vala     |    6 +++---
 src/librygel-server/rygel-item-destroyer.vala      |    4 ++--
 src/librygel-server/rygel-item-updater.vala        |    4 ++--
 src/librygel-server/rygel-object-creator.vala      |   16 ++++++++--------
 src/librygel-server/rygel-reference-creator.vala   |    6 +++---
 src/librygel-server/rygel-search.vala              |    2 +-
 .../gstreamer/rygel-gst-media-engine.vala          |    2 +-
 src/media-engines/gstreamer/rygel-gst-utils.vala   |    2 +-
 .../external/rygel-external-plugin-factory.vala    |    2 +-
 .../external/rygel-external-variant-util.vala      |    2 +-
 .../media-export/rygel-media-export-extract.vala   |    2 +-
 .../media-export/rygel-media-export-harvester.vala |    4 ++--
 .../rygel-media-export-harvesting-task.vala        |    2 +-
 .../rygel-media-export-media-cache.vala            |    2 +-
 .../rygel-media-export-playlist-container.vala     |    6 +++---
 ...rygel-media-export-playlist-root-container.vala |    4 ++--
 .../rygel-media-export-root-container.vala         |    2 +-
 src/plugins/mpris/rygel-mpris-plugin-factory.vala  |    2 +-
 .../rygel-tracker-category-all-container.vala      |    2 +-
 .../tracker/rygel-tracker-metadata-container.vala  |    2 +-
 src/plugins/tracker/rygel-tracker-plugin.vala      |    2 +-
 .../tracker/rygel-tracker-search-container.vala    |    2 +-
 src/rygel/rygel-acl.vala                           |    4 ++--
 src/rygel/rygel-user-config.vala                   |    6 +++---
 src/ui/rygel-writable-user-config.vala             |    2 +-
 39 files changed, 76 insertions(+), 76 deletions(-)
---
diff --git a/src/librygel-core/rygel-basic-management.vala b/src/librygel-core/rygel-basic-management.vala
index 1a69407..c066153 100644
--- a/src/librygel-core/rygel-basic-management.vala
+++ b/src/librygel-core/rygel-basic-management.vala
@@ -172,13 +172,13 @@ public class Rygel.BasicManagement : Service {
                     (action_name == "GetNSLookupResult") ||
                     (action_name == "GetTracerouteResult"))) {
             /// TestID is valid but the test Results are not available
-            action.return_error (708, _("Invalid Test State '%s'").printf (
+            action.return_error (708, _("Invalid Test State “%s”").printf (
                                         bm_test.execution_state.to_string ()));
 
             return false;
         } else if ((action_name == "CancelTest") && !bm_test.is_active ()) {
             /// TestID is valid but the test can't be canceled
-            action.return_error (709, _("State '%s' Precludes Cancel").printf (
+            action.return_error (709, _("State “%s” Precludes Cancel").printf (
                                         bm_test.execution_state.to_string ()));
 
             return false;
@@ -252,7 +252,7 @@ public class Rygel.BasicManagement : Service {
                         out dscp);
 
         if (host == "") {
-            warning (_("Cannot run 'Ping' action: Host is empty"));
+            warning (_("Cannot run “Ping” action: Host is empty"));
             action.return_error (402, _("Invalid argument"));
 
             return;
@@ -345,7 +345,7 @@ public class Rygel.BasicManagement : Service {
                         out interval_time_out);
 
         if (hostname == "") {
-            warning (_("Cannot run 'NSLookup' action: HostName is empty"));
+            warning (_("Cannot run “NSLookup” action: HostName is empty"));
             action.return_error (402, _("Invalid argument"));
 
             return;
@@ -427,7 +427,7 @@ public class Rygel.BasicManagement : Service {
                         out dscp);
 
         if (host == "") {
-            warning (_("Cannot run 'Traceroute' action: Host is empty"));
+            warning (_("Cannot run “Traceroute” action: Host is empty"));
             action.return_error (402, _("Invalid argument"));
 
             return;
diff --git a/src/librygel-core/rygel-meta-config.vala b/src/librygel-core/rygel-meta-config.vala
index c2762a9..313f3b4 100644
--- a/src/librygel-core/rygel-meta-config.vala
+++ b/src/librygel-core/rygel-meta-config.vala
@@ -333,7 +333,7 @@ public class Rygel.MetaConfig : GLib.Object, Configuration {
 
         if (unavailable) {
             // translators: "enabled" is part of the config key and must not be translated
-            var msg = _("No value set for '%s/enabled'");
+            var msg = _("No value set for “%s/enabled”");
             throw new ConfigurationError.NO_VALUE_SET (msg, section);
         }
 
@@ -352,7 +352,7 @@ public class Rygel.MetaConfig : GLib.Object, Configuration {
 
         if (val == null) {
             // translators: "title" is part of the config key and must not be translated
-            var msg = _("No value set for '%s/title'");
+            var msg = _("No value set for “%s/title”");
             throw new ConfigurationError.NO_VALUE_SET (msg, section);
         }
 
@@ -372,7 +372,7 @@ public class Rygel.MetaConfig : GLib.Object, Configuration {
 
         if (val == null) {
             throw new ConfigurationError.NO_VALUE_SET
-                                        (_("No value available for '%s/%s'"),
+                                        (_("No value available for “%s/%s”"),
                                          section,
                                          key);
         }
@@ -394,7 +394,7 @@ public class Rygel.MetaConfig : GLib.Object, Configuration {
 
         if (val == null) {
             throw new ConfigurationError.NO_VALUE_SET
-                                        (_("No value available for '%s/%s'"),
+                                        (_("No value available for “%s/%s”"),
                                          section,
                                          key);
         }
@@ -420,7 +420,7 @@ public class Rygel.MetaConfig : GLib.Object, Configuration {
 
         if (unavailable) {
             throw new ConfigurationError.NO_VALUE_SET
-                                        (_("No value available for '%s/%s'"),
+                                        (_("No value available for “%s/%s”"),
                                          section,
                                          key);
         }
@@ -442,7 +442,7 @@ public class Rygel.MetaConfig : GLib.Object, Configuration {
 
         if (val == null) {
             throw new ConfigurationError.NO_VALUE_SET
-                                        (_("No value available for '%s/%s'"),
+                                        (_("No value available for “%s/%s”"),
                                          section,
                                          key);
         }
@@ -466,7 +466,7 @@ public class Rygel.MetaConfig : GLib.Object, Configuration {
 
         if (unavailable) {
             throw new ConfigurationError.NO_VALUE_SET
-                                        (_("No value available for '%s/%s'"),
+                                        (_("No value available for “%s/%s”"),
                                          section,
                                          key);
         }
diff --git a/src/librygel-core/rygel-plugin-loader.vala b/src/librygel-core/rygel-plugin-loader.vala
index 49db1a8..f61a7b3 100644
--- a/src/librygel-core/rygel-plugin-loader.vala
+++ b/src/librygel-core/rygel-plugin-loader.vala
@@ -86,7 +86,7 @@ public class Rygel.PluginLoader : RecursiveModuleLoader {
     }
 
     public void add_plugin (Plugin plugin) {
-        message (_("New plugin '%s' available"), plugin.name);
+        message (_("New plugin “%s” available"), plugin.name);
         this.plugin_hash.set (plugin.name, plugin);
         this.plugin_available (plugin);
     }
@@ -110,7 +110,7 @@ public class Rygel.PluginLoader : RecursiveModuleLoader {
         Module module = Module.open (module_file.get_path (),
                                      ModuleFlags.BIND_LOCAL);
         if (module == null) {
-            warning (_("Failed to load module from path '%s': %s"),
+            warning (_("Failed to load module from path “%s”: %s"),
                      module_file.get_path (),
                      Module.error ());
 
@@ -120,7 +120,7 @@ public class Rygel.PluginLoader : RecursiveModuleLoader {
         void* function;
 
         if (!module.symbol("module_init", out function)) {
-            warning (_("Failed to find entry point function '%s' in '%s': %s"),
+            warning (_("Failed to find entry point function “%s” in “%s”: %s"),
                      "module_init",
                      module_file.get_path (),
                      Module.error ());
diff --git a/src/librygel-core/rygel-recursive-module-loader.vala 
b/src/librygel-core/rygel-recursive-module-loader.vala
index 9dfa230..d96aee2 100644
--- a/src/librygel-core/rygel-recursive-module-loader.vala
+++ b/src/librygel-core/rygel-recursive-module-loader.vala
@@ -67,7 +67,7 @@ public abstract class Rygel.RecursiveModuleLoader : Object {
 
         var folder = File.new_for_path (this.base_path);
         if (folder == null || !this.is_folder (folder)) {
-            warning (_("Failed to open plugins folder: '%s'"),
+            warning (_("Failed to open plugins folder: “%s”"),
                      this.base_path);
 
             return;
@@ -146,7 +146,7 @@ public abstract class Rygel.RecursiveModuleLoader : Object {
                                                        Priority.DEFAULT,
                                                        null);
         } catch (Error error) {
-            critical (_("Error listing contents of folder '%s': %s"),
+            critical (_("Error listing contents of folder “%s”: %s"),
                       folder.get_path (),
                       error.message);
 
@@ -218,7 +218,7 @@ public abstract class Rygel.RecursiveModuleLoader : Object {
 
             return this.is_folder_eligible (file_info);
         } catch (Error error) {
-            critical (_("Failed to query content type for '%s'"),
+            critical (_("Failed to query content type for “%s”"),
                       file.get_path ());
 
             return false;
diff --git a/src/librygel-renderer-gst/rygel-playbin-player.vala 
b/src/librygel-renderer-gst/rygel-playbin-player.vala
index 60f20a1..bc4df6f 100644
--- a/src/librygel-renderer-gst/rygel-playbin-player.vala
+++ b/src/librygel-renderer-gst/rygel-playbin-player.vala
@@ -364,7 +364,7 @@ public class Rygel.Playbin.Player : GLib.Object, Rygel.MediaPlayer {
         this.playbin = ElementFactory.make ("playbin", null);
         if (this.playbin == null) {
             throw new PlayerError.NO_ELEMENT (
-                _("Your GStreamer installation seems to be missing the \"playbin\" element. The Rygel 
GStreamer renderer implementation cannot work without it"));
+                _("Your GStreamer installation seems to be missing the “playbin” element. The Rygel 
GStreamer renderer implementation cannot work without it"));
         }
         this.setup_playbin ();
     }
diff --git a/src/librygel-ruih/rygel-ruih-icon-elem.vala b/src/librygel-ruih/rygel-ruih-icon-elem.vala
index 04a006b..19dccaf 100644
--- a/src/librygel-ruih/rygel-ruih-icon-elem.vala
+++ b/src/librygel-ruih/rygel-ruih-icon-elem.vala
@@ -63,7 +63,7 @@ protected class IconElem : UIListing {
                 this.url = child_node->get_content ();
                 break;
             default:
-                var msg = _("Unable to parse Icon data - unexpected node: %s");
+                var msg = _("Unable to parse Icon data — unexpected node: %s");
                 throw new Rygel.RuihServiceError.OPERATION_REJECTED
                                         (msg.printf (node_name));
             }
diff --git a/src/librygel-ruih/rygel-ruih-protocol-elem.vala b/src/librygel-ruih/rygel-ruih-protocol-elem.vala
index 45fbd18..28b2ebe 100644
--- a/src/librygel-ruih/rygel-ruih-protocol-elem.vala
+++ b/src/librygel-ruih/rygel-ruih-protocol-elem.vala
@@ -39,7 +39,7 @@ protected class ProtocolElem : UIListing {
                 this.short_name = prop->children->content;
                 break;
             default:
-                var msg = _("Unable to parse Protocol data - unexpected attribute: %s");
+                var msg = _("Unable to parse Protocol data — unexpected attribute: %s");
                 throw new Rygel.RuihServiceError.OPERATION_REJECTED
                                         (msg.printf (attr_name));
             }
@@ -60,7 +60,7 @@ protected class ProtocolElem : UIListing {
                 this.protocol_info = child_node->get_content ();
                 break;
             default:
-                var msg = _("Unable to parse Protocol data - unexpected node: %s");
+                var msg = _("Unable to parse Protocol data — unexpected node: %s");
                 throw new Rygel.RuihServiceError.OPERATION_REJECTED
                                         (msg.printf (node_name));
             }
diff --git a/src/librygel-ruih/rygel-ruih-servicemanager.vala 
b/src/librygel-ruih/rygel-ruih-servicemanager.vala
index b0b7af0..41c0370 100644
--- a/src/librygel-ruih/rygel-ruih-servicemanager.vala
+++ b/src/librygel-ruih/rygel-ruih-servicemanager.vala
@@ -87,7 +87,7 @@ public class Rygel.RuihServiceManager : Object
                     try {
                         this.set_ui_list (ui_listing_full_path);
                     } catch (RuihServiceError e) {
-                        warning (_("Failed to set UIList for file %s - %s"),
+                        warning (_("Failed to set UIList for file %s — %s"),
                                  ui_listing_full_path,
                                  e.message);
                     }
@@ -98,11 +98,11 @@ public class Rygel.RuihServiceManager : Object
                 }
             });
         } catch (RuihServiceError e) {
-            warning (_("Failed to set initial UI list for file %s - %s"),
+            warning (_("Failed to set initial UI list for file %s — %s"),
                      this.ui_listing_full_path,
                      e.message);
         } catch (IOError e) {
-            warning (_("Failed to monitor the file %s - %s"),
+            warning (_("Failed to monitor the file %s — %s"),
                      this.ui_listing_full_path,
                      e.message);
         }
diff --git a/src/librygel-ruih/rygel-ruih-ui-elem.vala b/src/librygel-ruih/rygel-ruih-ui-elem.vala
index 4e49524..8b487d4 100644
--- a/src/librygel-ruih/rygel-ruih-ui-elem.vala
+++ b/src/librygel-ruih/rygel-ruih-ui-elem.vala
@@ -75,7 +75,7 @@ protected class UIElem : UIListing
                 this.protocols.add (new ProtocolElem (child_node));
                 break;
             default:
-                var msg = _("Unable to parse UI data - unexpected node: %s");
+                var msg = _("Unable to parse UI data — unexpected node: %s");
                 throw new Rygel.RuihServiceError.OPERATION_REJECTED
                                         (msg.printf (node_name));
             }
diff --git a/src/librygel-server/rygel-browse.vala b/src/librygel-server/rygel-browse.vala
index 021ba2b..66dfb16 100644
--- a/src/librygel-server/rygel-browse.vala
+++ b/src/librygel-server/rygel-browse.vala
@@ -131,7 +131,7 @@ internal class Rygel.Browse: Rygel.MediaQueryAction {
     }
 
     protected override void handle_error (Error error) {
-        warning (_("Failed to browse '%s': %s\n"),
+        warning (_("Failed to browse “%s”: %s\n"),
                  this.object_id,
                  error.message);
 
diff --git a/src/librygel-server/rygel-http-item-uri.vala b/src/librygel-server/rygel-http-item-uri.vala
index 851a11d..b0e2417 100644
--- a/src/librygel-server/rygel-http-item-uri.vala
+++ b/src/librygel-server/rygel-http-item-uri.vala
@@ -149,7 +149,7 @@ public class Rygel.HTTPItemURI : Object {
         var parts = request_uri.split ("/");
 
         if (parts.length < 2 || parts.length % 2 == 0) {
-            throw new HTTPRequestError.BAD_REQUEST (_("Invalid URI '%s'"),
+            throw new HTTPRequestError.BAD_REQUEST (_("Invalid URI “%s”"),
                                                     request_uri);
         }
 
diff --git a/src/librygel-server/rygel-http-post.vala b/src/librygel-server/rygel-http-post.vala
index 6c855b6..b2a9efd 100644
--- a/src/librygel-server/rygel-http-post.vala
+++ b/src/librygel-server/rygel-http-post.vala
@@ -59,7 +59,7 @@ internal class Rygel.HTTPPost : HTTPRequest {
 
     private async void handle_real () throws Error {
         if (!(this.object as MediaFileItem).place_holder) {
-            var msg = _("Pushing data to non-empty item '%s' not allowed");
+            var msg = _("Pushing data to non-empty item “%s” not allowed");
 
             throw new ContentDirectoryError.INVALID_ARGS (msg, this.object.id);
         }
diff --git a/src/librygel-server/rygel-http-request.vala b/src/librygel-server/rygel-http-request.vala
index a6344d6..c2cb156 100644
--- a/src/librygel-server/rygel-http-request.vala
+++ b/src/librygel-server/rygel-http-request.vala
@@ -92,7 +92,7 @@ public abstract class Rygel.HTTPRequest : GLib.Object, Rygel.StateMachine {
                this.uri.resource_name != null) ||
               (media_object is MediaFileItem))) {
             throw new HTTPRequestError.NOT_FOUND
-                                        (_("Requested item '%s' not found"),
+                                        (_("Requested item “%s” not found"),
                                          this.uri.item_id);
         }
 
diff --git a/src/librygel-server/rygel-http-resource-handler.vala 
b/src/librygel-server/rygel-http-resource-handler.vala
index 43815f8..af6012b 100644
--- a/src/librygel-server/rygel-http-resource-handler.vala
+++ b/src/librygel-server/rygel-http-resource-handler.vala
@@ -88,7 +88,7 @@ internal class Rygel.HTTPMediaResourceHandler : HTTPGetHandler {
                                     (request, this.media_resource);
             if (src == null) {
                 throw new HTTPRequestError.NOT_FOUND
-                              (_("Couldn't create data source for %s"),
+                              (_("Couldn’t create data source for %s"),
                                this.media_resource.get_name ());
             }
 
diff --git a/src/librygel-server/rygel-import-resource.vala b/src/librygel-server/rygel-import-resource.vala
index a9b4779..3767074 100644
--- a/src/librygel-server/rygel-import-resource.vala
+++ b/src/librygel-server/rygel-import-resource.vala
@@ -121,7 +121,7 @@ internal class Rygel.ImportResource : GLib.Object, Rygel.StateMachine {
 
             this.item = yield this.fetch_item ();
         } catch (Error error) {
-            warning (_("Failed to get original URI for '%s': %s"),
+            warning (_("Failed to get original URI for “%s”: %s"),
                      this.destination_uri,
                      error.message);
 
@@ -183,10 +183,10 @@ internal class Rygel.ImportResource : GLib.Object, Rygel.StateMachine {
         if (media_object == null ||
             !(media_object is MediaFileItem) ||
             !(media_object.parent is WritableContainer)) {
-            msg = _("URI '%s' invalid for importing contents to").printf
+            msg = _("URI “%s” invalid for importing contents to").printf
                                         (this.destination_uri);
         } else if (!(media_object as MediaFileItem).place_holder) {
-            msg = _("Pushing data to non-empty item '%s' not allowed").printf
+            msg = _("Pushing data to non-empty item “%s” not allowed").printf
                                         (media_object.id);
         } else if (media_object.get_uris ().is_empty) {
             assert_not_reached ();
diff --git a/src/librygel-server/rygel-item-destroyer.vala b/src/librygel-server/rygel-item-destroyer.vala
index b165dee..911378f 100644
--- a/src/librygel-server/rygel-item-destroyer.vala
+++ b/src/librygel-server/rygel-item-destroyer.vala
@@ -57,7 +57,7 @@ internal class Rygel.ItemDestroyer: GLib.Object, Rygel.StateMachine {
 
             this.action.return ();
 
-            debug (_("Successfully destroyed object '%s'"), this.object_id);
+            debug (_("Successfully destroyed object “%s”"), this.object_id);
         } catch (Error error) {
             if (error is ContentDirectoryError) {
                 this.action.return_error (error.code, error.message);
@@ -65,7 +65,7 @@ internal class Rygel.ItemDestroyer: GLib.Object, Rygel.StateMachine {
                 this.action.return_error (701, error.message);
             }
 
-            warning (_("Failed to destroy object '%s': %s"),
+            warning (_("Failed to destroy object “%s”: %s"),
                      this.object_id,
                      error.message);
         }
diff --git a/src/librygel-server/rygel-item-updater.vala b/src/librygel-server/rygel-item-updater.vala
index 1e3d8e4..2e0c3c8 100644
--- a/src/librygel-server/rygel-item-updater.vala
+++ b/src/librygel-server/rygel-item-updater.vala
@@ -78,7 +78,7 @@ internal class Rygel.ItemUpdater: GLib.Object, Rygel.StateMachine {
 
             this.action.return ();
 
-            debug (_("Successfully updated object '%s'"), this.object_id);
+            debug (_("Successfully updated object “%s”"), this.object_id);
         } catch (Error error) {
             if (error is ContentDirectoryError) {
                 this.action.return_error (error.code, error.message);
@@ -86,7 +86,7 @@ internal class Rygel.ItemUpdater: GLib.Object, Rygel.StateMachine {
                 this.action.return_error (701, error.message);
             }
 
-            warning (_("Failed to update object '%s': %s"),
+            warning (_("Failed to update object “%s”: %s"),
                      this.object_id,
                      error.message);
         }
diff --git a/src/librygel-server/rygel-object-creator.vala b/src/librygel-server/rygel-object-creator.vala
index 0c31643..950c953 100644
--- a/src/librygel-server/rygel-object-creator.vala
+++ b/src/librygel-server/rygel-object-creator.vala
@@ -188,7 +188,7 @@ internal class Rygel.ObjectCreator: GLib.Object, Rygel.StateMachine {
 
         if (this.elements == null) {
             throw new ContentDirectoryError.BAD_METADATA
-                                        (_("'Elements' argument missing."));
+                                        (_("“Elements” argument missing."));
         } else if (comment_pattern.match_string (this.elements)) {
             throw new ContentDirectoryError.BAD_METADATA
                                         (_("Comments not allowed in XML"));
@@ -221,7 +221,7 @@ internal class Rygel.ObjectCreator: GLib.Object, Rygel.StateMachine {
         }
 
         if (this.didl_object == null) {
-            var message = _("No objects in DIDL-Lite from client: '%s'");
+            var message = _("No objects in DIDL-Lite from client: “%s”");
 
             throw new ContentDirectoryError.BAD_METADATA
                                         (message, this.elements);
@@ -244,7 +244,7 @@ internal class Rygel.ObjectCreator: GLib.Object, Rygel.StateMachine {
              (OCMFlags.UPLOAD |
               OCMFlags.CREATE_CONTAINER |
               OCMFlags.UPLOAD_DESTROYABLE)) != 0)) {
-            var msg =  _("Flags that must not be set were found in 'dlnaManaged'");
+            var msg =  _("Flags that must not be set were found in “dlnaManaged”");
             throw new ContentDirectoryError.BAD_METADATA (msg);
         }
 
@@ -380,7 +380,7 @@ internal class Rygel.ObjectCreator: GLib.Object, Rygel.StateMachine {
 
         if (upnp_class == "object") {
             throw new ContentDirectoryError.BAD_METADATA
-                                    (_("UPnP class '%s' not supported"),
+                                    (_("UPnP class “%s” not supported"),
                                      this.didl_object.upnp_class);
         }
 
@@ -471,7 +471,7 @@ internal class Rygel.ObjectCreator: GLib.Object, Rygel.StateMachine {
             this.action.return_error (701, error.message);
         }
 
-        warning (_("Failed to create item under '%s': %s"),
+        warning (_("Failed to create item under “%s”: %s"),
                  this.container_id,
                  error.message);
 
@@ -545,7 +545,7 @@ internal class Rygel.ObjectCreator: GLib.Object, Rygel.StateMachine {
             if (info != null) {
                 if (info.dlna_profile != null) {
                     if (!this.is_profile_valid (info.dlna_profile)) {
-                        var msg = _("DLNA profile '%s' not supported");
+                        var msg = _("DLNA profile “%s” not supported");
                         throw new ContentDirectoryError.BAD_METADATA
                                     (msg,
                                      info.dlna_profile);
@@ -645,7 +645,7 @@ internal class Rygel.ObjectCreator: GLib.Object, Rygel.StateMachine {
             container.upnp_class = upnp_class;
             return container;
         default:
-            var msg = _("Cannot create object of class '%s': Not supported");
+            var msg = _("Cannot create object of class “%s”: Not supported");
             throw new ContentDirectoryError.BAD_METADATA (msg, upnp_class);
         }
     }
@@ -743,7 +743,7 @@ internal class Rygel.ObjectCreator: GLib.Object, Rygel.StateMachine {
                 object = yield container.find_object (this.object.id,
                                                       this.cancellable);
             } catch (Error error) {
-                var msg = _("Error from container '%s' on trying to find the newly added child object '%s' 
in it: %s");
+                var msg = _("Error from container “%s” on trying to find the newly added child object “%s” 
in it: %s");
                 warning (msg, container.id, this.object.id, error.message);
             }
 
diff --git a/src/librygel-server/rygel-reference-creator.vala 
b/src/librygel-server/rygel-reference-creator.vala
index ba17af0..4fc7a48 100644
--- a/src/librygel-server/rygel-reference-creator.vala
+++ b/src/librygel-server/rygel-reference-creator.vala
@@ -47,12 +47,12 @@ internal class Rygel.ReferenceCreator : GLib.Object, Rygel.StateMachine {
                              typeof (string), out this.object_id);
         if (this.container_id == null) {
             throw new ContentDirectoryError.INVALID_ARGS
-                                        (_("'ContainerID' agument missing."));
+                                        (_("“ContainerID” agument missing."));
         }
 
         if (this.object_id == null) {
             throw new ContentDirectoryError.INVALID_ARGS
-                                        (_("'ObjectID' argument missing."));
+                                        (_("“ObjectID” argument missing."));
         }
     }
 
@@ -83,7 +83,7 @@ internal class Rygel.ReferenceCreator : GLib.Object, Rygel.StateMachine {
                 this.action.return_error (402, error.message);
             }
 
-            warning (_("Failed to create object under '%s': %s"),
+            warning (_("Failed to create object under “%s”: %s"),
                      this.container_id,
                      error.message);
 
diff --git a/src/librygel-server/rygel-search.vala b/src/librygel-server/rygel-search.vala
index 5fd467a..d391444 100644
--- a/src/librygel-server/rygel-search.vala
+++ b/src/librygel-server/rygel-search.vala
@@ -91,7 +91,7 @@ internal class Rygel.Search:  Rygel.MediaQueryAction {
     }
 
     protected override void handle_error (Error error) {
-        warning (_("Failed to search in '%s': %s"),
+        warning (_("Failed to search in “%s”: %s"),
                  this.object_id,
                  error.message);
 
diff --git a/src/media-engines/gstreamer/rygel-gst-media-engine.vala 
b/src/media-engines/gstreamer/rygel-gst-media-engine.vala
index 8534bce..3801769 100644
--- a/src/media-engines/gstreamer/rygel-gst-media-engine.vala
+++ b/src/media-engines/gstreamer/rygel-gst-media-engine.vala
@@ -137,7 +137,7 @@ public class Rygel.GstMediaEngine : Rygel.MediaEngine {
         if (!Gst.URI.protocol_is_supported (URIType.SRC, scheme) &&
             scheme != "gst-launch" &&
             scheme != "dvd") {
-            warning (_("Can't process URI %s with protocol %s"),
+            warning (_("Can’t process URI %s with protocol %s"),
                      source_uri,
                      scheme);
 
diff --git a/src/media-engines/gstreamer/rygel-gst-utils.vala 
b/src/media-engines/gstreamer/rygel-gst-utils.vala
index 1b7b7c4..a1f7b4c 100644
--- a/src/media-engines/gstreamer/rygel-gst-utils.vala
+++ b/src/media-engines/gstreamer/rygel-gst-utils.vala
@@ -55,7 +55,7 @@ internal abstract class Rygel.GstUtils {
             } else if (uri.has_prefix ("dvd://")) {
                 src = ElementFactory.make ("dvdreadsrc", "dvdreadsrc");
                 if (src == null) {
-                    warning (_("GStreamer element 'dvdreadsrc' not found. DVD support does not work"));
+                    warning (_("GStreamer element “dvdreadsrc” not found. DVD support does not work"));
 
                     return null;
                 }
diff --git a/src/plugins/external/rygel-external-plugin-factory.vala 
b/src/plugins/external/rygel-external-plugin-factory.vala
index e63756e..3754ea4 100644
--- a/src/plugins/external/rygel-external-plugin-factory.vala
+++ b/src/plugins/external/rygel-external-plugin-factory.vala
@@ -32,7 +32,7 @@ public void module_init (PluginLoader loader) {
     try {
         plugin_factory = new External.PluginFactory (loader);
     } catch (Error error) {
-        message (_("Module '%s' could not connect to D-Bus session bus. "+
+        message (_("Module “%s” could not connect to D-Bus session bus. "+
                    "Ignoring…"), External.Plugin.MODULE_NAME);
     }
 }
diff --git a/src/plugins/external/rygel-external-variant-util.vala 
b/src/plugins/external/rygel-external-variant-util.vala
index 0e54f3e..fa4da04 100644
--- a/src/plugins/external/rygel-external-variant-util.vala
+++ b/src/plugins/external/rygel-external-variant-util.vala
@@ -20,7 +20,7 @@
 
 namespace Rygel.External {
     public static string MANDATORY_MISSING_MESSAGE =
-        N_("External provider %s did not provide mandatory property \"%s\"");
+        N_("External provider %s did not provide mandatory property “%s”");
 
     public static Variant? get_mandatory
                                     (HashTable<string, Variant> props,
diff --git a/src/plugins/media-export/rygel-media-export-extract.vala 
b/src/plugins/media-export/rygel-media-export-extract.vala
index 41c9e7f..ec1c535 100644
--- a/src/plugins/media-export/rygel-media-export-extract.vala
+++ b/src/plugins/media-export/rygel-media-export-extract.vala
@@ -146,7 +146,7 @@ static void send_error (File file, Error err) {
 }
 
 int main (string[] args) {
-    var ctx = new OptionContext (_("- helper binary for Rygel to extract metadata"));
+    var ctx = new OptionContext (_("— helper binary for Rygel to extract metadata"));
     ctx.add_main_entries (options, null);
     ctx.add_group (Gst.init_get_option_group ());
 
diff --git a/src/plugins/media-export/rygel-media-export-harvester.vala 
b/src/plugins/media-export/rygel-media-export-harvester.vala
index a4f20d4..d72c7de 100644
--- a/src/plugins/media-export/rygel-media-export-harvester.vala
+++ b/src/plugins/media-export/rygel-media-export-harvester.vala
@@ -143,7 +143,7 @@ internal class Rygel.MediaExport.Harvester : GLib.Object {
     private void on_file_harvested (StateMachine state_machine) {
         var task = state_machine as HarvestingTask;
         var file = task.origin;
-        message (_("'%s' harvested"), file.get_uri ());
+        message (_("“%s” harvested"), file.get_uri ());
 
         this.tasks.unset (file);
         if (this.tasks.is_empty) {
@@ -199,7 +199,7 @@ internal class Rygel.MediaExport.Harvester : GLib.Object {
                                         as MediaContainer;
                     this.schedule (file, parent_container);
                 } catch (Database.DatabaseError error) {
-                    warning (_("Error fetching object '%s' from database: %s"),
+                    warning (_("Error fetching object “%s” from database: %s"),
                             id,
                             error.message);
                 }
diff --git a/src/plugins/media-export/rygel-media-export-harvesting-task.vala 
b/src/plugins/media-export/rygel-media-export-harvesting-task.vala
index 8a803e9..2023e58 100644
--- a/src/plugins/media-export/rygel-media-export-harvesting-task.vala
+++ b/src/plugins/media-export/rygel-media-export-harvesting-task.vala
@@ -256,7 +256,7 @@ public class Rygel.MediaExport.HarvestingTask : Rygel.StateMachine,
 
             yield enumerator.close_async (Priority.DEFAULT, this.cancellable);
         } catch (Error err) {
-            warning (_("Failed to enumerate folder \"%s\": %s"),
+            warning (_("Failed to enumerate folder “%s”: %s"),
                      directory.get_path (),
                      err.message);
         }
diff --git a/src/plugins/media-export/rygel-media-export-media-cache.vala 
b/src/plugins/media-export/rygel-media-export-media-cache.vala
index 80bc98d..74bbdf1 100644
--- a/src/plugins/media-export/rygel-media-export-media-cache.vala
+++ b/src/plugins/media-export/rygel-media-export-media-cache.vala
@@ -658,7 +658,7 @@ public class Rygel.MediaExport.MediaCache : Object {
             } else if (old_version == current_version) {
                 upgrader.fix_schema ();
             } else {
-                warning (_("The version \"%d\" of the detected database is newer than our supported version 
\"%d\""),
+                warning (_("The version “%d” of the detected database is newer than our supported version 
“%d”"),
                          old_version,
                          current_version);
                 this.db = null;
diff --git a/src/plugins/media-export/rygel-media-export-playlist-container.vala 
b/src/plugins/media-export/rygel-media-export-playlist-container.vala
index adc0a23..bfc8a8e 100644
--- a/src/plugins/media-export/rygel-media-export-playlist-container.vala
+++ b/src/plugins/media-export/rygel-media-export-playlist-container.vala
@@ -67,7 +67,7 @@ internal class Rygel.MediaExport.PlaylistContainer : DBContainer,
                                 Cancellable?    cancellable)
                                 throws Error {
         throw new WritableContainerError.NOT_IMPLEMENTED
-                                        (_("Can't create items in %s"),
+                                        (_("Can’t create items in %s"),
                                          this.id);
     }
 
@@ -88,7 +88,7 @@ internal class Rygel.MediaExport.PlaylistContainer : DBContainer,
                                      Cancellable?         cancellable)
                                      throws Error {
         throw new WritableContainerError.NOT_IMPLEMENTED
-                                        (_("Can't add containers in %s"),
+                                        (_("Can’t add containers in %s"),
                                          this.id);
     }
 
@@ -96,7 +96,7 @@ internal class Rygel.MediaExport.PlaylistContainer : DBContainer,
                                         Cancellable?    cancellable)
                                         throws Error {
         throw new WritableContainerError.NOT_IMPLEMENTED
-                                        (_("Can't remove containers in %s"),
+                                        (_("Can’t remove containers in %s"),
                                          this.id);
     }
 
diff --git a/src/plugins/media-export/rygel-media-export-playlist-root-container.vala 
b/src/plugins/media-export/rygel-media-export-playlist-root-container.vala
index d64b770..3e0b275 100644
--- a/src/plugins/media-export/rygel-media-export-playlist-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-playlist-root-container.vala
@@ -72,7 +72,7 @@ internal class Rygel.MediaExport.PlaylistRootContainer : Rygel.WritableContainer
                                 Cancellable?        cancellable)
                                 throws Error {
         throw new WritableContainerError.NOT_IMPLEMENTED
-                                        (_("Can't create items in %s"),
+                                        (_("Can’t create items in %s"),
                                          this.id);
     }
 
@@ -80,7 +80,7 @@ internal class Rygel.MediaExport.PlaylistRootContainer : Rygel.WritableContainer
                                    Cancellable? cancellable)
                                    throws Error {
         throw new WritableContainerError.NOT_IMPLEMENTED
-                                        (_("Can't remove items in %s"),
+                                        (_("Can’t remove items in %s"),
                                          this.id);
    }
 
diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala 
b/src/plugins/media-export/rygel-media-export-root-container.vala
index 03aa1ec..c3af754 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -363,7 +363,7 @@ public class Rygel.MediaExport.RootContainer : TrackableDbContainer {
      */
     private RootContainer () {
         Object (id : "0",
-                title : _("@REALNAME@'s media"),
+                title : _("@REALNAME@’s media"),
                 parent : null,
                 child_count : 0);
     }
diff --git a/src/plugins/mpris/rygel-mpris-plugin-factory.vala 
b/src/plugins/mpris/rygel-mpris-plugin-factory.vala
index bf1380f..5ea1981 100644
--- a/src/plugins/mpris/rygel-mpris-plugin-factory.vala
+++ b/src/plugins/mpris/rygel-mpris-plugin-factory.vala
@@ -32,7 +32,7 @@ public void module_init (PluginLoader loader) {
     try {
         plugin_factory = new MPRIS.PluginFactory (loader);
     } catch (IOError error) {
-        message (_("Module '%s' could not connect to D-Bus session bus. "+
+        message (_("Module “%s” could not connect to D-Bus session bus. "+
                    "Ignoring…"), MPRIS.Plugin.MODULE_NAME);
     }
 }
diff --git a/src/plugins/tracker/rygel-tracker-category-all-container.vala 
b/src/plugins/tracker/rygel-tracker-category-all-container.vala
index af86d42..a045f7a 100644
--- a/src/plugins/tracker/rygel-tracker-category-all-container.vala
+++ b/src/plugins/tracker/rygel-tracker-category-all-container.vala
@@ -60,7 +60,7 @@ public class Rygel.Tracker.CategoryAllContainer : SearchContainer,
                 var uri = Filename.to_uri (item_factory.upload_dir, null);
                 this.add_uri (uri);
             } catch (ConvertError error) {
-                warning (_("Failed to construct URI for folder '%s': %s"),
+                warning (_("Failed to construct URI for folder “%s”: %s"),
                         item_factory.upload_dir,
                         error.message);
             }
diff --git a/src/plugins/tracker/rygel-tracker-metadata-container.vala 
b/src/plugins/tracker/rygel-tracker-metadata-container.vala
index 77f21ff..689968c 100644
--- a/src/plugins/tracker/rygel-tracker-metadata-container.vala
+++ b/src/plugins/tracker/rygel-tracker-metadata-container.vala
@@ -107,7 +107,7 @@ public abstract class Rygel.Tracker.MetadataContainer : Rygel.SimpleContainer {
                 this.add_child_container (container);
             }
         } catch (Error error) {
-            critical (_("Error getting all values for '%s': %s"),
+            critical (_("Error getting all values for “%s”: %s"),
                       this.id,
                       error.message);
             this.update_in_progress = false;
diff --git a/src/plugins/tracker/rygel-tracker-plugin.vala b/src/plugins/tracker/rygel-tracker-plugin.vala
index f9932ec..4708cd2 100644
--- a/src/plugins/tracker/rygel-tracker-plugin.vala
+++ b/src/plugins/tracker/rygel-tracker-plugin.vala
@@ -30,7 +30,7 @@ public class Rygel.Tracker.Plugin : Rygel.MediaServerPlugin {
     public Plugin () {
         if (root == null) {
             // translators: @REALNAME@ is substituted for user's real name and it doesn't need translation.
-            root = new RootContainer (_("@REALNAME@'s media"));
+            root = new RootContainer (_("@REALNAME@’s media"));
         }
 
         base (root, Plugin.NAME, null, PluginCapabilities.UPLOAD);
diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala 
b/src/plugins/tracker/rygel-tracker-search-container.vala
index 46fa9a4..13f2cc4 100644
--- a/src/plugins/tracker/rygel-tracker-search-container.vala
+++ b/src/plugins/tracker/rygel-tracker-search-container.vala
@@ -225,7 +225,7 @@ public class Rygel.Tracker.SearchContainer : SimpleContainer {
             }
 
         } catch (GLib.Error error) {
-            critical (_("Error getting item count under category '%s': %s"),
+            critical (_("Error getting item count under category “%s”: %s"),
                       this.item_factory.category,
                       error.message);
 
diff --git a/src/rygel/rygel-acl.vala b/src/rygel/rygel-acl.vala
index 2e73eb1..6d8eaa3 100644
--- a/src/rygel/rygel-acl.vala
+++ b/src/rygel/rygel-acl.vala
@@ -140,9 +140,9 @@ internal class Rygel.Acl : GLib.Object, GUPnP.Acl
                                          "acl-fallback-policy");
         } catch (Error error) {
             if (this.fallback_policy) {
-                message (_("No ACL fallback policy found. Using \"allow\""));
+                message (_("No ACL fallback policy found. Using “allow”"));
             } else {
-                message (_("No ACL fallback policy found. Using \"deny\""));
+                message (_("No ACL fallback policy found. Using “deny”"));
             }
         }
     }
diff --git a/src/rygel/rygel-user-config.vala b/src/rygel/rygel-user-config.vala
index 13227a7..449e3cf 100644
--- a/src/rygel/rygel-user-config.vala
+++ b/src/rygel/rygel-user-config.vala
@@ -243,7 +243,7 @@ public class Rygel.UserConfig : GLib.Object, Configuration {
             debug ("Loaded user configuration from file '%s'", local_path);
         } catch (Error error) {
             // TRANSLATORS: First %s is the file's path, second is the error message
-            warning (_("Failed to load user configuration from file '%s': %s"),
+            warning (_("Failed to load user configuration from file “%s”: %s"),
                    local_path,
                    error.message);
             this.key_file = new KeyFile ();
@@ -296,7 +296,7 @@ public class Rygel.UserConfig : GLib.Object, Configuration {
 
         if (val == null || val == "") {
             throw new ConfigurationError.NO_VALUE_SET
-                                        (_("No value available for '%s'"), key);
+                                        (_("No value available for “%s”"), key);
         }
 
         return val;
@@ -367,7 +367,7 @@ public class Rygel.UserConfig : GLib.Object, Configuration {
 
         if (val < min || val > max) {
             throw new ConfigurationError.VALUE_OUT_OF_RANGE
-                                        (_("Value of '%s' out of range"), key);
+                                        (_("Value of “%s” out of range"), key);
         }
 
         return val;
diff --git a/src/ui/rygel-writable-user-config.vala b/src/ui/rygel-writable-user-config.vala
index d9d0e65..75c76f3 100644
--- a/src/ui/rygel-writable-user-config.vala
+++ b/src/ui/rygel-writable-user-config.vala
@@ -116,7 +116,7 @@ public class Rygel.WritableUserConfig : Rygel.UserConfig {
         try {
             FileUtils.set_contents (path, data, (long) length);
         } catch (FileError err) {
-            critical (_("Failed to save configuration data to file '%s': %s"),
+            critical (_("Failed to save configuration data to file “%s”: %s"),
                       path,
                       err.message);
         }



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