[rygel] core,mediathek: More translator-friendly language



commit 8cad73f7079b45a0c0cdacf7783787063eaff397
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Apr 20 01:49:22 2010 +0300

    core,mediathek: More translator-friendly language

 .../mediathek/rygel-mediathek-video-item.vala      |    2 +-
 src/rygel/rygel-browse.vala                        |    3 ++-
 src/rygel/rygel-root-device-factory.vala           |   12 +++++++-----
 3 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/src/plugins/mediathek/rygel-mediathek-video-item.vala b/src/plugins/mediathek/rygel-mediathek-video-item.vala
index 5e55f9d..93a047b 100644
--- a/src/plugins/mediathek/rygel-mediathek-video-item.vala
+++ b/src/plugins/mediathek/rygel-mediathek-video-item.vala
@@ -61,7 +61,7 @@ public class Rygel.MediathekVideoItem : Rygel.MediaItem {
             }
             else {
                 throw new MediathekVideoItemError.XML_PARSE_ERROR (
-                                        _("group node has url property"));
+                                        _("group node has no 'url' property"));
             }
         }
         else {
diff --git a/src/rygel/rygel-browse.vala b/src/rygel/rygel-browse.vala
index 094c98f..39ed81d 100644
--- a/src/rygel/rygel-browse.vala
+++ b/src/rygel/rygel-browse.vala
@@ -117,7 +117,8 @@ internal class Rygel.Browse: GLib.Object, Rygel.StateMachine {
                    this.browse_flag == "BrowseMetadata") {
             this.fetch_metadata = true;
         } else {
-            throw new ContentDirectoryError.INVALID_ARGS (_("Invalid Args"));
+            throw new ContentDirectoryError.INVALID_ARGS (
+                                        _("Invalid Arguments"));
         }
 
         /* ObjectID */
diff --git a/src/rygel/rygel-root-device-factory.vala b/src/rygel/rygel-root-device-factory.vala
index 0992573..1b1046f 100644
--- a/src/rygel/rygel-root-device-factory.vala
+++ b/src/rygel/rygel-root-device-factory.vala
@@ -99,7 +99,7 @@ internal class Rygel.RootDeviceFactory {
                                                 "device",
                                                 null);
         if (device_element == null) {
-            warning (_("Element /root/device not found."));
+            warning (_("XML node '%s' not found."), "/root/device");
 
             return;
         }
@@ -132,7 +132,8 @@ internal class Rygel.RootDeviceFactory {
                                                    "friendlyName",
                                                    null);
         if (element == null) {
-            warning (_("Element /root/device/friendlyName not found."));
+            warning (_("XML node '%s' not found."),
+                       "/root/device/friendlyName");
 
             return;
         }
@@ -153,7 +154,7 @@ internal class Rygel.RootDeviceFactory {
         /* UDN */
         element = Utils.get_xml_element (device_element, "UDN");
         if (element == null) {
-            warning (_("Element /root/device/UDN not found."));
+            warning (_("XML node '%s' not found."), "/root/device/UDN");
 
             return;
         }
@@ -172,7 +173,8 @@ internal class Rygel.RootDeviceFactory {
                                                    "modelDescription",
                                                    null);
         if (element == null) {
-            warning (_("Element /root/device/modelDescription not found."));
+            warning (_("XML node '%s' not found."),
+                       "/root/device/modelDescription");
 
             return;
         }
@@ -186,7 +188,7 @@ internal class Rygel.RootDeviceFactory {
                                                              "serviceList",
                                                              null);
         if (service_list_node == null) {
-            warning (_("Element /root/device/serviceList not found."));
+            warning (_("XML node '%s' not found."), "/root/device/serviceList");
 
             return;
         }



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