[Checkins] SVN: zope.app.form/trunk/ Translate the title on
SequenceWidget's "Add <title>" button.
Christian Zagrodnick
cz at gocept.com
Fri Nov 9 08:09:00 EST 2007
Log message for revision 81634:
Translate the title on SequenceWidget's "Add <title>" button.
Changed:
U zope.app.form/trunk/CHANGES.txt
U zope.app.form/trunk/src/zope/app/form/browser/i18n.txt
U zope.app.form/trunk/src/zope/app/form/browser/sequencewidget.py
-=-
Modified: zope.app.form/trunk/CHANGES.txt
===================================================================
--- zope.app.form/trunk/CHANGES.txt 2007-11-09 11:09:40 UTC (rev 81633)
+++ zope.app.form/trunk/CHANGES.txt 2007-11-09 13:08:59 UTC (rev 81634)
@@ -2,8 +2,14 @@
CHANGES
=======
+3.5.0 (unreleased)
+==================
+
+- Translate the title on SequenceWidget's "Add <title>" button.
+
+
3.4.1 (2007-10-31)
-------------------
+==================
- Resolve ``ZopeSecurityPolicy`` deprecation warning.
Modified: zope.app.form/trunk/src/zope/app/form/browser/i18n.txt
===================================================================
--- zope.app.form/trunk/src/zope/app/form/browser/i18n.txt 2007-11-09 11:09:40 UTC (rev 81633)
+++ zope.app.form/trunk/src/zope/app/form/browser/i18n.txt 2007-11-09 13:08:59 UTC (rev 81634)
@@ -67,7 +67,7 @@
...Eine ausf...Beschreibung...
...Irgendeine Zahl...
...Irgendeine Liste...
- ...hinzuf...
+ ...Irgendeine Liste hinzuf...
...Auffrischen...
...Hinzuf...
...Objektname...
Modified: zope.app.form/trunk/src/zope/app/form/browser/sequencewidget.py
===================================================================
--- zope.app.form/trunk/src/zope/app/form/browser/sequencewidget.py 2007-11-09 11:09:40 UTC (rev 81633)
+++ zope.app.form/trunk/src/zope/app/form/browser/sequencewidget.py 2007-11-09 13:08:59 UTC (rev 81634)
@@ -80,7 +80,9 @@
button_label = _('Add %s')
button_label = translate(button_label, context=self.request,
default=button_label)
- return button_label % (self.context.title or self.context.__name__)
+ title = self.context.title or self.context.__name__
+ title = translate(title, context=self.request, default=title)
+ return button_label % title
def _getWidget(self, i):
More information about the Checkins
mailing list