[totem] Fixed localisation of the iPlayer library
- From: pwithnall src gnome org
- To: svn-commits-list gnome org
- Subject: [totem] Fixed localisation of the iPlayer library
- Date: Tue, 5 May 2009 14:42:29 -0400 (EDT)
commit 941a9a2fa9da9017710d82bcb23a65cee2c11ffe
Author: Philip Withnall <philip tecnocode co uk>
Date: Sun Apr 26 15:30:00 2009 +0100
Fixed localisation of the iPlayer library
---
po/POTFILES.in | 3 +++
src/plugins/iplayer/iplayer2.py | 5 +++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5738851..cd9959c 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -49,6 +49,9 @@ src/plugins/coherence_upnp/coherence_upnp.py
src/plugins/galago/totem-galago.c
[type: gettext/ini]src/plugins/gromit/gromit.totem-plugin.in
src/plugins/gromit/totem-gromit.c
+[type: gettext/ini]src/plugins/iplayer/iplayer.totem-plugin.in
+src/plugins/iplayer/iplayer.py
+src/plugins/iplayer/iplayer2.py
[type: gettext/glade]src/plugins/jamendo/jamendo.ui
[type: gettext/ini]src/plugins/jamendo/jamendo.totem-plugin.in
src/plugins/jamendo/jamendo.py
diff --git a/src/plugins/iplayer/iplayer2.py b/src/plugins/iplayer/iplayer2.py
index 623ff4b..363602a 100644
--- a/src/plugins/iplayer/iplayer2.py
+++ b/src/plugins/iplayer/iplayer2.py
@@ -293,7 +293,7 @@ class NoItemsError(Exception):
def __str__(self):
reason = self.reason or '<no reason given>'
- return "Programme unavailable ('%s')" % (reason)
+ return _('Programme unavailable ("%s")') % (reason)
class memoize(object):
@@ -324,7 +324,7 @@ def httpget(url):
resp, data = http.request(url, 'GET')
except:
#print "Response for status %s for %s" % (resp.status, data)
- totem.action_error ('Network Error', 'Failed to fetch URL: %s' % url)
+ totem.action_error (_('Network Error'), _('Failed to fetch URI: %s') % url)
raise
return data
@@ -835,6 +835,7 @@ class feed(object):
"""
path = []
+ # TODO: This is not i18n-friendly whatsoever
# if got a channel, don't need tv/radio distinction
if self.channel:
assert self.channel in channels_tv or self.channel in channels_radio, 'Unknown channel'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]