[Zope3-checkins] CVS: Zope3/src/zope/i18n -
simpletranslationservice.py:1.10
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Aug 7 17:27:13 EDT 2003
Update of /cvs-repository/Zope3/src/zope/i18n
In directory cvs.zope.org:/tmp/cvs-serv21743/src/zope/i18n
Modified Files:
simpletranslationservice.py
Log Message:
Allow interpolation of non-string/unicode objects. Are there any objections
to this?
=== Zope3/src/zope/i18n/simpletranslationservice.py 1.9 => 1.10 ===
--- Zope3/src/zope/i18n/simpletranslationservice.py:1.9 Fri Jun 6 15:29:09 2003
+++ Zope3/src/zope/i18n/simpletranslationservice.py Thu Aug 7 16:26:37 2003
@@ -94,6 +94,6 @@
# Now substitute with the variables in mapping
for string in to_replace:
var = _get_var_regex.findall(string)[0]
- text = text.replace(string, mapping.get(var))
+ text = text.replace(string, unicode(mapping.get(var)))
return text
More information about the Zope3-Checkins
mailing list