Commit a60688f0 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Get Localizer from the portal object instead of context.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1755 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c1f93c5
......@@ -11,7 +11,8 @@
from Products.ERP5Type.Cache import clearCache
# XXX Localizer-dependent
context.Localizer.changeLanguage(language_select)
portal = context.getPortalObject()
portal.Localizer.changeLanguage(language_select)
# XXX should invalidate cached data specific to current user
clearCache()
\ No newline at end of file
clearCache()
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