Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/glive.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-02-10 14:28:26 (GMT)
committer Daniel Drake <dsd@laptop.org>2012-03-16 21:23:29 (GMT)
commit97bab1747047eefc2109119a1651deb25b30691f (patch)
treec4b85c635c301f0672a7e4611e279f9648d092d6 /glive.py
parentd7629a8196e68d42fe0d22aff520d94f3c928b62 (diff)
Use named parameters in gettext strings -v2
When there are more than one parameter with the same type gettext need named parameters to enable the translators to change the order if needed. Pootle server complain about this format strings in Record activity, and you can see the same error doing "./setup.py genpot" v2: Fixed typo Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'glive.py')
-rw-r--r--glive.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/glive.py b/glive.py
index fd9a5af..97fc0e1 100644
--- a/glive.py
+++ b/glive.py
@@ -393,7 +393,8 @@ class Glive:
stringType = constants.MEDIA_INFO[type]['istr']
# Translators: photo by photographer, e.g. "Photo by Mary"
- tl[gst.TAG_TITLE] = _('%s by %s') % (stringType, self.model.get_nickname())
+ tl[gst.TAG_TITLE] = _('%(type)s by %(name)s') % {'type': stringType,
+ 'name': self.model.get_nickname()}
return tl
def blockedCb(self, x, y, z):