[rygel] core,media-export: Correctly case abbreviations



commit 20bc3cc22f7ed0ce4e1d77fbb929c63d4865bcee
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Apr 20 01:42:24 2010 +0300

    core,media-export: Correctly case abbreviations
    
    - 'URL' instead of 'Url' or 'url'
    - 'ID' instead of 'id' or 'Id'

 .../rygel-media-export-query-container.vala        |    6 +++---
 .../rygel-media-export-root-container.vala         |    6 +++---
 src/rygel/rygel-media-db.vala                      |    4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-query-container.vala b/src/plugins/media-export/rygel-media-export-query-container.vala
index 7339afc..fd27c85 100644
--- a/src/plugins/media-export/rygel-media-export-query-container.vala
+++ b/src/plugins/media-export/rygel-media-export-query-container.vala
@@ -44,14 +44,14 @@ internal class Rygel.MediaExportQueryContainer : Rygel.MediaDBContainer {
         var args = id.split(",");
 
         if ((args.length % 2) != 0) {
-            warning (_("Id does not contain pairs"));
+            warning (_("ID does not contain pairs"));
 
             return false;
         }
 
         for (int i = 0; i < args.length; i += 2) {
             if (args[i] == "" || args[i + 1] == "") {
-                warning (_("Empty part not allowed in virtual id"));
+                warning (_("Empty part not allowed in virtual ID"));
 
                 return false;
             }
@@ -91,7 +91,7 @@ internal class Rygel.MediaExportQueryContainer : Rygel.MediaDBContainer {
         base (media_db, id, name);
 
         this.plaintext_id = get_virtual_container_definition (id);
-        debug ("plaintext id is: %s", this.plaintext_id);
+        debug ("plaintext ID is: %s", this.plaintext_id);
         var args = this.plaintext_id.split(",");
 
         if ((args.length % 2) != 0) {
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 bae1c89..eae4290 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -94,7 +94,7 @@ public class Rygel.MediaExportRootContainer : Rygel.MediaDBContainer {
         try {
             this.media_db.remove_by_id (id);
         } catch (Error error) {
-            warning (_("Failed to remove uri: %s"), error.message);
+            warning (_("Failed to remove URI: %s"), error.message);
         }
     }
 
@@ -343,7 +343,7 @@ public class Rygel.MediaExportRootContainer : Rygel.MediaDBContainer {
                 var info = container.split ("=");
                 var id = MediaExportQueryContainer.PREFIX + info[1];
                 if (!MediaExportQueryContainer.validate_virtual_id (id)) {
-                    warning (_("%s is not a valid virtual id"), id);
+                    warning (_("%s is not a valid virtual ID"), id);
 
                     continue;
                 }
@@ -370,7 +370,7 @@ public class Rygel.MediaExportRootContainer : Rygel.MediaDBContainer {
                 continue;
             }
 
-            debug (_("Id %s no longer in config, deleting..."), id);
+            debug (_("ID %s no longer in config, deleting..."), id);
             try {
                 this.media_db.remove_by_id (id);
             } catch (DatabaseError error) {
diff --git a/src/rygel/rygel-media-db.vala b/src/rygel/rygel-media-db.vala
index a454e61..0f4adac 100644
--- a/src/rygel/rygel-media-db.vala
+++ b/src/rygel/rygel-media-db.vala
@@ -289,7 +289,7 @@ public class Rygel.MediaDB : Object {
             object_added (item.id);
             item_added (item.id);
         } catch (DatabaseError error) {
-            warning (_("Failed to add item with id %s: %s"),
+            warning (_("Failed to add item with ID %s: %s"),
                      item.id,
                      error.message);
             db.rollback ();
@@ -315,7 +315,7 @@ public class Rygel.MediaDB : Object {
                 container_updated (object.id);
             }
         } catch (Error error) {
-            warning (_("Failed to add item with id %s: %s"),
+            warning (_("Failed to add item with ID %s: %s"),
                      object.id,
                      error.message);
             db.rollback ();



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