[Zope3-checkins] CVS: Zope3/src/zope/app/container - find.py:1.6
size.py:1.4
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Aug 6 11:45:40 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/container
In directory cvs.zope.org:/tmp/cvs-serv18235/app/container
Modified Files:
find.py size.py
Log Message:
Mainly I18n of the ISized adapters.
=== Zope3/src/zope/app/container/find.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/container/find.py:1.5 Sat Jun 7 02:37:22 2003
+++ Zope3/src/zope/app/container/find.py Wed Aug 6 10:45:04 2003
@@ -11,10 +11,9 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""
+"""Find Support
$Id$
-
"""
from zope.app.interfaces.container.find import IFind, IIdFindFilter
@@ -45,8 +44,6 @@
result)
return result
- #
- ############################################################
def _find_helper(id, object, container, id_filters, object_filters, result):
for id_filter in id_filters:
=== Zope3/src/zope/app/container/size.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/container/size.py:1.3 Sat Jun 7 02:37:22 2003
+++ Zope3/src/zope/app/container/size.py Wed Aug 6 10:45:04 2003
@@ -16,7 +16,7 @@
$Id$
"""
-
+from zope.app.i18n import ZopeMessageIDFactory as _
from zope.app.interfaces.size import ISized
from zope.interface import implements
@@ -37,5 +37,7 @@
"""See ISized"""
num_items = len(self._container)
if num_items == 1:
- return '1 item'
- return '%s items' % num_items
+ return _('1 item')
+ size = _('${items} items')
+ size.mapping = {'items': str(num_items)}
+ return size
More information about the Zope3-Checkins
mailing list