[banshee] [TrackInfo] Add audiobook-related strings



commit f43ddc0b7650d20096230a03b5d41c5d4495a71f
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Sat May 15 18:24:29 2010 -0700

    [TrackInfo] Add audiobook-related strings

 .../Banshee.Core/Banshee.Collection/TrackInfo.cs   |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs b/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
index 51ef991..a9a1340 100644
--- a/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
+++ b/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
@@ -415,6 +415,7 @@ namespace Banshee.Collection
 
         // TODO turn this into a PrimarySource-owned delegate?
         private static readonly string restart_podcast = Catalog.GetString ("_Restart Podcast");
+        private static readonly string restart_audiobook = Catalog.GetString ("_Restart Audiobook");
         private static readonly string restart_video = Catalog.GetString ("_Restart Video");
         private static readonly string restart_song = Catalog.GetString ("_Restart Song");
         private static readonly string restart_item = Catalog.GetString ("_Restart Item");
@@ -423,6 +424,8 @@ namespace Banshee.Collection
             get {
                 if (HasAttribute (TrackMediaAttributes.Podcast))
                     return restart_podcast;
+                if (HasAttribute (TrackMediaAttributes.AudioBook))
+                    return restart_audiobook;
                 if (HasAttribute (TrackMediaAttributes.VideoStream))
                     return restart_video;
                 if (HasAttribute (TrackMediaAttributes.Music))
@@ -432,6 +435,7 @@ namespace Banshee.Collection
         }
 
         private static readonly string jump_to_podcast = Catalog.GetString ("_Jump to Playing Podcast");
+        private static readonly string jump_to_audiobook = Catalog.GetString ("_Jump to Playing Audiobook");
         private static readonly string jump_to_video = Catalog.GetString ("_Jump to Playing Video");
         private static readonly string jump_to_song = Catalog.GetString ("_Jump to Playing Song");
         private static readonly string jump_to_item = Catalog.GetString ("_Jump to Playing Item");
@@ -440,6 +444,8 @@ namespace Banshee.Collection
             get {
                 if (HasAttribute (TrackMediaAttributes.Podcast))
                     return jump_to_podcast;
+                if (HasAttribute (TrackMediaAttributes.AudioBook))
+                    return jump_to_audiobook;
                 if (HasAttribute (TrackMediaAttributes.VideoStream))
                     return jump_to_video;
                 if (HasAttribute (TrackMediaAttributes.Music))



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