[rygel] media-export: Mark top-level folder name translatable



commit b2a2e00a5934c6823dfc97bc3ebeabf6bc591395
Author: Jens Georg <mail jensge org>
Date:   Thu Jun 21 21:01:05 2012 +0200

    media-export: Mark top-level folder name translatable

 .../rygel-media-export-media-cache-upgrader.vala   |    2 +-
 .../rygel-media-export-root-container.vala         |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-media-cache-upgrader.vala b/src/plugins/media-export/rygel-media-export-media-cache-upgrader.vala
index c2c109d..93d73d7 100644
--- a/src/plugins/media-export/rygel-media-export-media-cache-upgrader.vala
+++ b/src/plugins/media-export/rygel-media-export-media-cache-upgrader.vala
@@ -295,7 +295,7 @@ internal class Rygel.MediaExport.MediaCacheUpgrader {
                                 "('0', '" +
                                 RootContainer.FILESYSTEM_FOLDER_ID +
                                 "', 0, '" +
-                                RootContainer.FILESYSTEM_FOLDER_NAME +
+                                _(RootContainer.FILESYSTEM_FOLDER_NAME) +
                                 "', 0)");
             this.database.exec ("UPDATE Object SET parent = '" +
                                 RootContainer.FILESYSTEM_FOLDER_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 8cca766..723be32 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -50,7 +50,7 @@ public class Rygel.MediaExport.RootContainer : Rygel.MediaExport.DBContainer {
     private static MediaContainer instance = null;
     private static Error          creation_error = null;
 
-    internal const string FILESYSTEM_FOLDER_NAME = "Files & Folders";
+    internal const string FILESYSTEM_FOLDER_NAME = N_("Files & Folders");
     internal const string FILESYSTEM_FOLDER_ID   = "Filesystem";
 
     private const string SEARCH_CONTAINER_PREFIX = QueryContainer.PREFIX +
@@ -364,7 +364,7 @@ public class Rygel.MediaExport.RootContainer : Rygel.MediaExport.DBContainer {
             this.filesystem_container = new DBContainer
                                         (media_db,
                                          FILESYSTEM_FOLDER_ID,
-                                         FILESYSTEM_FOLDER_NAME);
+                                         _(FILESYSTEM_FOLDER_NAME));
             this.filesystem_container.parent = this;
             this.media_db.save_container (this.filesystem_container);
         } catch (Error error) { }



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