The following commit has been merged in the master branch:
commit 69122033f44cad102b132a652884a5141ffe5dfb
Author: Michal Čihař <[email protected]>
Date:   Wed Oct 7 13:01:24 2009 +0200

    Make it better translatable.

diff --git a/phonedb/forms.py b/phonedb/forms.py
index ec7c968..128b724 100644
--- a/phonedb/forms.py
+++ b/phonedb/forms.py
@@ -15,8 +15,8 @@ class SearchForm(Form):
         label = ugettext_lazy('Features'),
         required = False,
         choices = [(f.name,
-            mark_safe(ugettext_lazy('%s [<a href="%s">Link</a>]') %
-                (f.get_description(), '/phone/search/' + f.name))
+            mark_safe(ugettext_lazy('%(description)s [<a 
href="%(url)s">Link</a>]') %
+                {'description': f.get_description(), 'url': '/phone/search/' + 
f.name})
                 ) for f in Feature.objects.all()],
         widget = forms.CheckboxSelectMultiple
         )
@@ -26,8 +26,8 @@ class NewForm(ModelForm):
         label = ugettext_lazy('Features'),
         required = False,
         choices = [(f.name,
-            ugettext_lazy('%s (%s)') %
-                (f.get_description(), f.name)
+            ugettext_lazy('%(description)s (%(name)s)') %
+                {'description': f.get_description(), 'name': f.name}
                 ) for f in Feature.objects.all()],
         widget = forms.CheckboxSelectMultiple
         )

-- 
UNNAMED PROJECT

_______________________________________________
Wammu-svn mailing list
[email protected]
https://lists.cihar.com/cgi-bin/mailman/listinfo/wammu-svn

Reply via email to