Commit 4cfc5377 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

Translation.py: remove unused modifications added during the developement.

parent 63c7037a
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
# #
############################################################################## ##############################################################################
from zLOG import LOG, WARNING from zLOG import LOG
from Products.ERP5Type.PsycoWrapper import psyco from Products.ERP5Type.PsycoWrapper import psyco
from Acquisition import aq_base from Acquisition import aq_base
...@@ -82,9 +82,7 @@ class TranslatedPropertyGetter(BaseGetter): ...@@ -82,9 +82,7 @@ class TranslatedPropertyGetter(BaseGetter):
if domain == '' or (value in ('', None)): if domain == '' or (value in ('', None)):
return value return value
localizer = instance.getPortalObject().Localizer localizer = instance.getPortalObject().Localizer
if domain is not None:
message_catalog = getattr(localizer, domain, None) message_catalog = getattr(localizer, domain, None)
else: message_catalog = None
if message_catalog is not None: if message_catalog is not None:
return message_catalog.gettext(unicode(value, 'utf8'), lang=self._language).encode('utf8') return message_catalog.gettext(unicode(value, 'utf8'), lang=self._language).encode('utf8')
else: else:
......
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