[banshee] RadioTrackInfo: Move the "Unknown Stream" label in a static field



commit dd4e4246fae235de0895dc405890cf809b00d1d1
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sun Apr 1 15:41:05 2012 +0200

    RadioTrackInfo: Move the "Unknown Stream" label in a static field

 .../Banshee.Streaming/RadioTrackInfo.cs            |    1 +
 .../Banshee.Gui.Widgets/TrackInfoDisplay.cs        |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Streaming/RadioTrackInfo.cs b/src/Core/Banshee.Services/Banshee.Streaming/RadioTrackInfo.cs
index cb4b78a..4c5807e 100644
--- a/src/Core/Banshee.Services/Banshee.Streaming/RadioTrackInfo.cs
+++ b/src/Core/Banshee.Services/Banshee.Streaming/RadioTrackInfo.cs
@@ -45,6 +45,7 @@ namespace Banshee.Streaming
 {
     public class RadioTrackInfo : TrackInfo
     {
+        public static readonly string UnknownStream = Catalog.GetString ("Unknown Stream");
 
 #region Static Helper Methods
 
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
index bfca4e1..3d72be0 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
@@ -540,7 +540,7 @@ namespace Banshee.Gui.Widgets
 
                 if (String.IsNullOrEmpty (by_from)) {
                     // simply: "Chicago Public Radio" or whatever the artist name is
-                    markup = GLib.Markup.EscapeText (radio_track.ParentTrack.ArtistName ?? Catalog.GetString ("Unknown Stream"));
+                    markup = GLib.Markup.EscapeText (radio_track.ParentTrack.ArtistName ?? Banshee.Streaming.RadioTrackInfo.UnknownStream);
                 } else {
                     // Translators: {0} and {1} are markup so ignore them, {2} is the name of the radio station
                     string on = MarkupFormat (Catalog.GetString ("{0}on{1} {2}"), radio_track.ParentTrack.TrackTitle);



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