Added a fallback mechanism for Appy translations. Bugfix while reindexing multivalued Strings.

This commit is contained in:
Gaetan Delannay 2011-01-17 14:49:56 +01:00
parent ead9f7c2de
commit e5cef2b8a4
5 changed files with 36 additions and 11 deletions

View file

@ -393,8 +393,7 @@ class ToolMixin(BaseMixin):
if not self.translationMapping['portal_path']:
self.translationMapping['portal_path'] = \
self.portal_url.getPortalPath()
appName = self.getProductConfig().PROJECTNAME
return self.utranslate(label, self.translationMapping, domain=appName)
return self.translate(label, mapping=self.translationMapping)
def getPublishedObject(self):
'''Gets the currently published object, if its meta_class is among