Commit 4be6f805 authored by Jérome Perrin's avatar Jérome Perrin

Translation service takes unicode or ascii as input.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4455 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a44b1f22
......@@ -1539,7 +1539,8 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
def getTranslatedTitle(self):
"""Returns the translated title. """
translation_service = getToolByName(self, 'translation_service')
return translation_service.translate('content', self.getTitle()).encode('utf8')
return translation_service.translate('content',
unicode(self.getTitle(), 'utf8')).encode('utf8')
# This method allows to sort objects in list is a more reasonable way
security.declareProtected(Permissions.View, 'getIntId')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment