[banshee] [UI] Fix Podcasts, Radio, and playlists' statusbar nouns
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [UI] Fix Podcasts, Radio, and playlists' statusbar nouns
- Date: Fri, 13 Aug 2010 02:46:26 +0000 (UTC)
commit 0276ea3db1e6eb2e401981c5c5fd280260b277fb
Author: Gabriel Burt <gabriel burt gmail com>
Date: Thu Aug 12 19:35:07 2010 -0700
[UI] Fix Podcasts, Radio, and playlists' statusbar nouns
.../Banshee.Library/MusicLibrarySource.cs | 2 +-
.../Banshee.Library/VideoLibrarySource.cs | 2 +-
.../Banshee.Playlist/AbstractPlaylistSource.cs | 5 +++++
.../Banshee.Services/Banshee.Sources/Source.cs | 2 +-
.../Banshee.Audiobook/AudiobookLibrarySource.cs | 2 +-
.../Banshee.InternetRadio/InternetRadioSource.cs | 5 +++++
.../Banshee.Podcasting.Data/PodcastSource.cs | 5 +++++
7 files changed, 19 insertions(+), 4 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Library/MusicLibrarySource.cs b/src/Core/Banshee.Services/Banshee.Library/MusicLibrarySource.cs
index 221ddfe..99d2b7e 100644
--- a/src/Core/Banshee.Services/Banshee.Library/MusicLibrarySource.cs
+++ b/src/Core/Banshee.Services/Banshee.Library/MusicLibrarySource.cs
@@ -87,7 +87,7 @@ namespace Banshee.Library
));
}
- protected override string GetPluralItemCountString (int count)
+ public override string GetPluralItemCountString (int count)
{
return Catalog.GetPluralString ("{0} song", "{0} songs", count);
}
diff --git a/src/Core/Banshee.Services/Banshee.Library/VideoLibrarySource.cs b/src/Core/Banshee.Services/Banshee.Library/VideoLibrarySource.cs
index 4f024d8..43fdf00 100644
--- a/src/Core/Banshee.Services/Banshee.Library/VideoLibrarySource.cs
+++ b/src/Core/Banshee.Services/Banshee.Library/VideoLibrarySource.cs
@@ -65,7 +65,7 @@ namespace Banshee.Library
", Catalog.GetString ("Produced By")));
}
- protected override string GetPluralItemCountString (int count)
+ public override string GetPluralItemCountString (int count)
{
return Catalog.GetPluralString ("{0} video", "{0} videos", count);
}
diff --git a/src/Core/Banshee.Services/Banshee.Playlist/AbstractPlaylistSource.cs b/src/Core/Banshee.Services/Banshee.Playlist/AbstractPlaylistSource.cs
index eed0e4c..d66d05c 100644
--- a/src/Core/Banshee.Services/Banshee.Playlist/AbstractPlaylistSource.cs
+++ b/src/Core/Banshee.Services/Banshee.Playlist/AbstractPlaylistSource.cs
@@ -161,6 +161,11 @@ namespace Banshee.Playlist
base.AfterInitialized ();
}
+ public override string GetPluralItemCountString (int count)
+ {
+ return Parent == null ? base.GetPluralItemCountString (count) : Parent.GetPluralItemCountString (count);
+ }
+
public override void Rename (string newName)
{
base.Rename (newName);
diff --git a/src/Core/Banshee.Services/Banshee.Sources/Source.cs b/src/Core/Banshee.Services/Banshee.Sources/Source.cs
index d1cfb0c..bdf7f68 100644
--- a/src/Core/Banshee.Services/Banshee.Sources/Source.cs
+++ b/src/Core/Banshee.Services/Banshee.Sources/Source.cs
@@ -787,7 +787,7 @@ namespace Banshee.Sources
return builder.ToString ();
}
- protected virtual string GetPluralItemCountString (int count)
+ public virtual string GetPluralItemCountString (int count)
{
return Catalog.GetPluralString ("{0} item", "{0} items", count);
}
diff --git a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
index 889d298..4172106 100644
--- a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
+++ b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
@@ -139,7 +139,7 @@ namespace Banshee.Audiobook
true);
}
- protected override string GetPluralItemCountString (int count)
+ public override string GetPluralItemCountString (int count)
{
return Catalog.GetPluralString ("{0} book", "{0} books", count);
}
diff --git a/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs b/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs
index 5738b0c..538a294 100644
--- a/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs
+++ b/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs
@@ -150,6 +150,11 @@ namespace Banshee.InternetRadio
}
}
+ public override string GetPluralItemCountString (int count)
+ {
+ return Catalog.GetPluralString ("{0} station", "{0} stations", count);
+ }
+
protected override IEnumerable<IFilterListModel> CreateFiltersFor (DatabaseSource src)
{
DatabaseQueryFilterModel<string> genre_model = new DatabaseQueryFilterModel<string> (src, src.DatabaseTrackModel, ServiceManager.DbConnection,
diff --git a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs
index 8a7c21e..609fb05 100644
--- a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs
+++ b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs
@@ -184,6 +184,11 @@ namespace Banshee.Podcasting.Gui
get { return false; }
}
+ public override string GetPluralItemCountString (int count)
+ {
+ return Catalog.GetPluralString ("{0} episode", "{0} episodes", count);
+ }
+
public override bool AcceptsInputFromSource (Source source)
{
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]