Commit 5f67677f authored by Ivan Tyagov's avatar Ivan Tyagov

When selecting language use user's own setting rather than relying on Localizer's settings.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23407 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9d09c4e1
......@@ -356,7 +356,7 @@ class WizardTool(BaseTool):
## add local ERP5 instance url
parameter_dict['erp5_url'] = self.getPortalObject().absolute_url()
# add user preffered language
parameter_dict['user_preferred_language'] = self.getPortalObject().Localizer.get_selected_language()
parameter_dict['user_preferred_language'] = getattr(self, 'user_preferred_language', 'en')
def _updateParameterDictWithFileUpload(self, parameter_dict):
"""Updates parameter_dict to replace file upload with their file content,
......
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