diff --git a/bt5/erp5_wizard/SkinTemplateItem/portal_skins/erp5_wizard/WizardTool_getUserPreferredLanguage.xml b/bt5/erp5_wizard/SkinTemplateItem/portal_skins/erp5_wizard/WizardTool_getUserPreferredLanguage.xml index 5fe3a71e5b33cc7d92a9b3f1c1d9c99f70e881f0..53b9447e7dc13251a67bff52c673284217cca2f1 100644 --- a/bt5/erp5_wizard/SkinTemplateItem/portal_skins/erp5_wizard/WizardTool_getUserPreferredLanguage.xml +++ b/bt5/erp5_wizard/SkinTemplateItem/portal_skins/erp5_wizard/WizardTool_getUserPreferredLanguage.xml @@ -70,6 +70,8 @@ accept_language = REQUEST.get(\'HTTP_ACCEPT_LANGUAGE\', \'en\')\n accept_language_tag = accept_language.split(\';\')[0].split(\',\')[0]\n primary_language = accept_language_tag.split(\'-\')[0]\n if primary_language in configuration_language_list:\n + # Set language to REQUEST so that next page will use the correct language.\n + REQUEST.RESPONSE.set(COOKIE_NAME, primary_language)\n return primary_language\n return \'en\'\n </string> </value> diff --git a/bt5/erp5_wizard/bt/change_log b/bt5/erp5_wizard/bt/change_log index 1ff0540940ce0a4c1de0aa3da0cfef8a5fbeaa1f..5388d3637b8fc5512d670dca45032e7bfc247542 100644 --- a/bt5/erp5_wizard/bt/change_log +++ b/bt5/erp5_wizard/bt/change_log @@ -1,3 +1,6 @@ +2008-10-2 yusei +* Use cookie to store user's preferred language and set the language value to REQUEST so that next page after login can use correct language. + 2008-10-2 yusei * Update xml format. diff --git a/bt5/erp5_wizard/bt/revision b/bt5/erp5_wizard/bt/revision index 6d58c4e590bdd76fbff00cfc9505eedd3cc90f32..2702ba3d439a353c3f748180065944feb28b8b87 100644 --- a/bt5/erp5_wizard/bt/revision +++ b/bt5/erp5_wizard/bt/revision @@ -1 +1 @@ -109 \ No newline at end of file +115 \ No newline at end of file