[banshee] i18n: Fix a concatenated and untranslatable string (bgo#630039)
- From: Alexander Kojevnikov <alexk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] i18n: Fix a concatenated and untranslatable string (bgo#630039)
- Date: Mon, 18 Oct 2010 11:22:45 +0000 (UTC)
commit 4bc110f8df5b75c61ca54d887815eb425f69c80d
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Mon Oct 18 22:21:10 2010 +1100
i18n: Fix a concatenated and untranslatable string (bgo#630039)
.../Banshee.Library/LibrarySource.cs | 11 ++++++++---
.../Banshee.Library/MusicLibrarySource.cs | 4 ++++
.../Banshee.Library/VideoLibrarySource.cs | 4 ++++
.../Banshee.Audiobook/AudiobookLibrarySource.cs | 4 ++++
.../Banshee.Podcasting.Data/PodcastSource.cs | 4 ++++
5 files changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Library/LibrarySource.cs b/src/Core/Banshee.Services/Banshee.Library/LibrarySource.cs
index 6298b2f..0a85400 100644
--- a/src/Core/Banshee.Services/Banshee.Library/LibrarySource.cs
+++ b/src/Core/Banshee.Services/Banshee.Library/LibrarySource.cs
@@ -61,9 +61,7 @@ namespace Banshee.Library
base_dir_schema = CreateSchema<string> ("library-location", null, "The base directory under which files for this library are stored", null);
AfterInitialized ();
- Section library_section = PreferencesPage.Add (new Section ("library-location",
- // Translators: {0} is the library name, eg 'Music Library' or 'Podcasts'
- String.Format (Catalog.GetString ("{0} Folder"), Name), 2));
+ Section library_section = PreferencesPage.Add (new Section ("library-location", SectionName, 2));
library_section.Add (base_dir_schema);
}
@@ -118,6 +116,13 @@ namespace Banshee.Library
get { return true; }
}
+ protected virtual string SectionName {
+ get {
+ // Translators: {0} is the library name, eg 'Music Library' or 'Podcasts'
+ return String.Format (Catalog.GetString ("{0} Folder"), Name);
+ }
+ }
+
/*public override void CopyTrackTo (DatabaseTrackInfo track, SafeUri uri, UserJob job)
{
Banshee.IO.File.Copy (track.Uri, uri, false);
diff --git a/src/Core/Banshee.Services/Banshee.Library/MusicLibrarySource.cs b/src/Core/Banshee.Services/Banshee.Library/MusicLibrarySource.cs
index 60469eb..295ff23 100644
--- a/src/Core/Banshee.Services/Banshee.Library/MusicLibrarySource.cs
+++ b/src/Core/Banshee.Services/Banshee.Library/MusicLibrarySource.cs
@@ -109,6 +109,10 @@ namespace Banshee.Library
get { return non_default_smart_playlists; }
}
+ protected override string SectionName {
+ get { return Catalog.GetString ("Music Folder"); }
+ }
+
private static SmartPlaylistDefinition [] default_smart_playlists = new SmartPlaylistDefinition [] {
new SmartPlaylistDefinition (
Catalog.GetString ("Favorites"),
diff --git a/src/Core/Banshee.Services/Banshee.Library/VideoLibrarySource.cs b/src/Core/Banshee.Services/Banshee.Library/VideoLibrarySource.cs
index 43fdf00..64e2f14 100644
--- a/src/Core/Banshee.Services/Banshee.Library/VideoLibrarySource.cs
+++ b/src/Core/Banshee.Services/Banshee.Library/VideoLibrarySource.cs
@@ -86,6 +86,10 @@ namespace Banshee.Library
get { return default_smart_playlists; }
}
+ protected override string SectionName {
+ get { return Catalog.GetString ("Videos Folder"); }
+ }
+
private static SmartPlaylistDefinition [] default_smart_playlists = new SmartPlaylistDefinition [] {
new SmartPlaylistDefinition (
Catalog.GetString ("Favorites"),
diff --git a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
index 264dfe1..c08d586 100644
--- a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
+++ b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
@@ -145,6 +145,10 @@ namespace Banshee.Audiobook
return Catalog.GetPluralString ("{0} book", "{0} books", count);
}
+ protected override string SectionName {
+ get { return Catalog.GetString ("Audiobooks Folder"); }
+ }
+
private void OnPlaybackSourceChanged (object o, EventArgs args)
{
if (ServiceManager.PlaybackController.Source == this) {
diff --git a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs
index 18b4274..6efed71 100644
--- a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs
+++ b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs
@@ -95,6 +95,10 @@ namespace Banshee.Podcasting.Gui
get { return UniqueId; }
}
+ protected override string SectionName {
+ get { return Catalog.GetString ("Podcasts Folder"); }
+ }
+
class FeedMessage : SourceMessage
{
public Feed Feed { get; set; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]