[Zope3-checkins] CVS: Zope3/src/zope/tal/tests - test_talgettext.py:1.2

Jim Fulton jim@zope.com
Thu, 3 Apr 2003 11:18:39 -0500


Update of /cvs-repository/Zope3/src/zope/tal/tests
In directory cvs.zope.org:/tmp/cvs-serv26474/src/zope/tal/tests

Modified Files:
	test_talgettext.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/tal/tests/test_talgettext.py 1.1 => 1.2 ===
--- Zope3/src/zope/tal/tests/test_talgettext.py:1.1	Tue Mar 25 18:46:06 2003
+++ Zope3/src/zope/tal/tests/test_talgettext.py	Thu Apr  3 11:18:38 2003
@@ -29,8 +29,9 @@
         test_keys = ['foo', 'bar', 'blarf', 'washington']
         
         engine = POEngine()
+        engine.file = 'foo.pt'
         for key in test_keys:
-            engine.translate(None, key, None)
+            engine.translate(None, key, None, 1)
 
         for key in test_keys:
             self.failIf( (key not in engine.catalog),