[Erp5-report] r31011 yusei - /erp5/trunk/products/ERP5/tests/testContentTranslation.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 3 03:26:56 CET 2009
Author: yusei
Date: Thu Dec 3 03:26:51 2009
New Revision: 31011
URL: http://svn.erp5.org?rev=31011&view=rev
Log:
Use content translation translation domain on Person type information
in the test.
Modified:
erp5/trunk/products/ERP5/tests/testContentTranslation.py
Modified: erp5/trunk/products/ERP5/tests/testContentTranslation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testContentTranslation.py?rev=31011&r1=31010&r2=31011&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testContentTranslation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testContentTranslation.py [utf8] Thu Dec 3 03:26:51 2009
@@ -45,7 +45,11 @@
)
def afterSetUp(self):
- return
+ # set up translation domain on Person type information.
+ from Products.ERP5Type.Accessor.Translation import TRANSLATION_DOMAIN_CONTENT_TRANSLATION
+ self.portal.portal_types.Person.changeTranslations(
+ dict(first_name=TRANSLATION_DOMAIN_CONTENT_TRANSLATION,
+ last_name=TRANSLATION_DOMAIN_CONTENT_TRANSLATION))
def testContentTranslation(self):
"""
More information about the Erp5-report
mailing list