[rygel] mediathek,i18n: No need to translate Mediathek strings



commit 778bc72189ed0b580adf80929d776088f86e0f26
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sun Jun 6 19:14:55 2010 +0300

    mediathek,i18n: No need to translate Mediathek strings
    
    Only Germans use this plugin and it is supposed to be removed in future.
    Besides modern Germans speak good english. :)

 po/POTFILES.in                                     |    5 -----
 po/POTFILES.skip                                   |    5 +++++
 .../mediathek/rygel-mediathek-asx-playlist.vala    |    4 ++--
 src/plugins/mediathek/rygel-mediathek-plugin.vala  |    2 +-
 .../mediathek/rygel-mediathek-root-container.vala  |    4 ++--
 .../mediathek/rygel-mediathek-rss-container.vala   |   14 +++++++-------
 .../mediathek/rygel-mediathek-video-item.vala      |   12 ++++++------
 7 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index e04bb5e..5441ae1 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -46,11 +46,6 @@ src/plugins/media-export/rygel-media-export-query-container.vala
 src/plugins/media-export/rygel-media-export-recursive-file-monitor.vala
 src/plugins/media-export/rygel-media-export-root-container.vala
 src/plugins/media-export/rygel-media-export-writable-container.vala
-src/plugins/mediathek/rygel-mediathek-asx-playlist.vala
-src/plugins/mediathek/rygel-mediathek-plugin.vala
-src/plugins/mediathek/rygel-mediathek-root-container.vala
-src/plugins/mediathek/rygel-mediathek-rss-container.vala
-src/plugins/mediathek/rygel-mediathek-video-item.vala
 src/plugins/test/rygel-test-audio-item.vala
 src/plugins/test/rygel-test-content-dir.vala
 src/plugins/test/rygel-test-item.vala
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index 3fa6c92..bff06e3 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -14,6 +14,11 @@ src/plugins/media-export/rygel-media-export-plugin.c
 src/plugins/media-export/rygel-media-export-query-container.c
 src/plugins/media-export/rygel-media-export-recursive-file-monitor.c
 src/plugins/media-export/rygel-media-export-root-container.c
+src/plugins/mediathek/rygel-mediathek-asx-playlist.vala
+src/plugins/mediathek/rygel-mediathek-plugin.vala
+src/plugins/mediathek/rygel-mediathek-root-container.vala
+src/plugins/mediathek/rygel-mediathek-rss-container.vala
+src/plugins/mediathek/rygel-mediathek-video-item.vala
 src/plugins/mediathek/rygel-mediathek-asx-playlist.c
 src/plugins/mediathek/rygel-mediathek-plugin.c
 src/plugins/mediathek/rygel-mediathek-root-container.c
diff --git a/src/plugins/mediathek/rygel-mediathek-asx-playlist.vala b/src/plugins/mediathek/rygel-mediathek-asx-playlist.vala
index d428f3f..d44d0f9 100644
--- a/src/plugins/mediathek/rygel-mediathek-asx-playlist.vala
+++ b/src/plugins/mediathek/rygel-mediathek-asx-playlist.vala
@@ -91,14 +91,14 @@ public class Rygel.MediathekAsxPlaylist : Object {
                 else {
                     throw new 
                         MediathekAsxPlaylistError.XML_ERROR (
-                                                  _("Could not fetch XML"));
+                                                  "Could not fetch XML");
                 }
             }
             catch (RegexError error) { }
         }
         else {
             throw new MediathekAsxPlaylistError.NETWORK_ERROR (
-                                        _("Playlist download failed: %u (%s)"),
+                                        "Playlist download failed: %u (%s)",
                                         message.status_code,
                                         Soup.status_get_phrase (
                                                         message.status_code));
diff --git a/src/plugins/mediathek/rygel-mediathek-plugin.vala b/src/plugins/mediathek/rygel-mediathek-plugin.vala
index b4cdca6..20c9e0b 100644
--- a/src/plugins/mediathek/rygel-mediathek-plugin.vala
+++ b/src/plugins/mediathek/rygel-mediathek-plugin.vala
@@ -26,7 +26,7 @@ using GUPnP;
 [ModuleInit]
 public void module_init (PluginLoader loader) {
     var plugin = new Plugin.MediaServer ("ZDFMediathek",
-                                         _("ZDF Mediathek"),
+                                         "ZDF Mediathek",
                                          typeof (Rygel.MediathekContentDir));
     loader.add_plugin (plugin);
 }
diff --git a/src/plugins/mediathek/rygel-mediathek-root-container.vala b/src/plugins/mediathek/rygel-mediathek-root-container.vala
index e6a0108..3db652b 100644
--- a/src/plugins/mediathek/rygel-mediathek-root-container.vala
+++ b/src/plugins/mediathek/rygel-mediathek-root-container.vala
@@ -28,7 +28,7 @@ public class Rygel.MediathekRootContainer : Rygel.SimpleContainer {
     private static MediathekRootContainer instance;
 
     private bool on_schedule_update () {
-        message(_("Scheduling update for all feeds...."));
+        message("Scheduling update for all feeds....");
         foreach (var container in this.children) {
             ((MediathekRssContainer) container).update ();
         }
@@ -57,7 +57,7 @@ public class Rygel.MediathekRootContainer : Rygel.SimpleContainer {
         }
 
         if (feeds.size == 0) {
-            message (_("Could not get RSS from configuration, using defaults"));
+            message ("Could not get RSS from configuration, using defaults");
             feeds.add (508);
         }
 
diff --git a/src/plugins/mediathek/rygel-mediathek-rss-container.vala b/src/plugins/mediathek/rygel-mediathek-rss-container.vala
index d4c5b4e..e72e7fb 100644
--- a/src/plugins/mediathek/rygel-mediathek-rss-container.vala
+++ b/src/plugins/mediathek/rygel-mediathek-rss-container.vala
@@ -31,7 +31,7 @@ public class Rygel.MediathekRssContainer : Rygel.SimpleContainer {
     private void on_feed_got (Soup.Session session, Soup.Message msg) {
         switch (msg.status_code) {
             case 304:
-                message(_("Feed has not changed, nothing to do"));
+                message("Feed has not changed, nothing to do");
                 break;
             case 200:
                 if (parse_response ((string) msg.response_body.data,
@@ -42,7 +42,7 @@ public class Rygel.MediathekRssContainer : Rygel.SimpleContainer {
                 break;
             default:
                 // TODO Need to handle redirects....
-                warning(_("Got unexpected response %u (%s)"),
+                warning("Got unexpected response %u (%s)",
                         msg.status_code,
                         Soup.status_get_phrase (msg.status_code));
                 break;
@@ -76,20 +76,20 @@ public class Rygel.MediathekRssContainer : Rygel.SimpleContainer {
                         ret = true;
                     }
                     catch (MediathekVideoItemError error) {
-                        warning (_("Error creating video item: %s"),
+                        warning ("Error creating video item: %s",
                                  error.message);
                     }
                 }
             }
             else {
-                warning (_("XPath query failed"));
+                warning ("XPath query failed");
             }
 
             delete doc;
             this.updated ();
         }
         else {
-            warning (_("Failed to parse doc"));
+            warning ("Failed to parse doc");
         }
 
         return ret;
@@ -100,7 +100,7 @@ public class Rygel.MediathekRssContainer : Rygel.SimpleContainer {
             "http://www.zdf.de/ZDFmediathek/content/%u?view=rss".printf(
                                                             zdf_content_id)); 
         if (last_modified != null) {
-            debug (_("Requesting change since %s"),
+            debug ("Requesting change since %s",
                    last_modified.to_string(DateFormat.HTTP));
             message.request_headers.append("If-Modified-Since", 
                    last_modified.to_string(DateFormat.HTTP));
@@ -114,7 +114,7 @@ public class Rygel.MediathekRssContainer : Rygel.SimpleContainer {
     public MediathekRssContainer (MediaContainer parent, uint id) {
         base ("GroupId:%u".printf(id),
              parent, 
-             _("ZDF Mediathek RSS feed %u").printf (id));
+             "ZDF Mediathek RSS feed %u".printf (id));
 
         this.zdf_content_id = id;
         update ();
diff --git a/src/plugins/mediathek/rygel-mediathek-video-item.vala b/src/plugins/mediathek/rygel-mediathek-video-item.vala
index 93a047b..c02739d 100644
--- a/src/plugins/mediathek/rygel-mediathek-video-item.vala
+++ b/src/plugins/mediathek/rygel-mediathek-video-item.vala
@@ -35,7 +35,7 @@ public class Rygel.MediathekVideoItem : Rygel.MediaItem {
              MediaItem.VIDEO_CLASS);
 
         this.mime_type = "video/x-ms-wmv";
-        this.author = _("ZDF - Second German TV Channel Streams");
+        this.author = "ZDF - Second German TV Channel Streams";
     }
 
     private static bool namespace_ok(Xml.Node* node) {
@@ -61,12 +61,12 @@ public class Rygel.MediathekVideoItem : Rygel.MediaItem {
             }
             else {
                 throw new MediathekVideoItemError.XML_PARSE_ERROR (
-                                        _("group node has no 'url' property"));
+                                        "group node has no 'url' property");
             }
         }
         else {
             throw new MediathekVideoItemError.XML_PARSE_ERROR (
-                                        _("invalid or no namespace"));
+                                        "invalid or no namespace");
         }
 
         return asx;
@@ -99,7 +99,7 @@ public class Rygel.MediathekVideoItem : Rygel.MediaItem {
                         }
                     }
                     else {
-                        var msg = _("Invalid or no namespace on group node");
+                        var msg = "Invalid or no namespace on group node";
 
                         throw new MediathekVideoItemError.XML_PARSE_ERROR (msg);
                     }
@@ -111,13 +111,13 @@ public class Rygel.MediathekVideoItem : Rygel.MediaItem {
         }
         if (title == null) {
             throw new MediathekVideoItemError.XML_PARSE_ERROR (
-                                        _("Could not find title"));
+                                        "Could not find title");
         }
 
 
         if (asx == null) {
             throw new MediathekVideoItemError.XML_PARSE_ERROR (
-                                        _("Could not find URIs"));
+                                        "Could not find URIs");
         }
 
         video_item = new MediathekVideoItem (parent, title);



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