[Zope3-checkins] CVS: Zope3/src/zope/pagetemplate - pagetemplate.py:1.5
Jim Fulton
jim@zope.com
Thu, 3 Apr 2003 11:19:08 -0500
Update of /cvs-repository/Zope3/src/zope/pagetemplate
In directory cvs.zope.org:/tmp/cvs-serv26474/src/zope/pagetemplate
Modified Files:
pagetemplate.py
Log Message:
Changed the handling of program source translations
- The translation files for the application server (zope.app) are now
al in one place, src/zope/app/translation_files.
- Added an extraction tool, extract.py that extracts all translatable
strings from Python and zpt source files into a translation template
file, zope.pot. This template file should then be merged into
individual translation files.
To do:
- zcml extraction
- I don't think that encodings are handled correctly. The template
file certainly doesn't have the encoding set correctly.
=== Zope3/src/zope/pagetemplate/pagetemplate.py 1.4 => 1.5 ===
--- Zope3/src/zope/pagetemplate/pagetemplate.py:1.4 Wed Apr 2 13:22:39 2003
+++ Zope3/src/zope/pagetemplate/pagetemplate.py Thu Apr 3 11:18:37 2003
@@ -204,9 +204,9 @@
class TemplateUsage:
def __init__(self, value):
if not isinstance(value, unicode):
- raise TypeError(
- 'TemplateUsage should be initialized with a Unicode string: %s'
- % repr(value))
+ raise TypeError('TemplateUsage should be initialized with a '
+ 'Unicode string',
+ repr(value))
self.stringValue = value
def __str__(self):