Commit 941a9a2f authored by Philip Withnall's avatar Philip Withnall

Fixed localisation of the iPlayer library

parent 3281a3d4
......@@ -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
......
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment