From: Tomas K. <to...@us...> - 2005-11-04 08:47:12
|
> I login with a language other than English (custom charset) selected. > Then I logout and select English (custom charset), but it won't reflect > the change and still shows the original selected language. Other > languages seem to be working fine, I'm able to switch back and forth. English (custom charset) language is not loaded in 'login_verified' hook. Open plugins/select_language/functions.php Find --- function select_language_set_function() { global $languages, $data_dir, $username; if (sqgetGlobalVar('select_language',$selected_language,SQ_FORM) && isset($languages[$selected_language])) { setPref($data_dir,$username,'language',$selected_language); } } --- and replace it with --- function select_language_set_function() { global $languages, $data_dir, $username, $plugins; if (sqgetGlobalVar('select_language',$selected_language,SQ_FORM) && (isset($languages[$selected_language]) || (in_array('custom_charset',$plugins) && $selected_language=='custom'))) { setPref($data_dir,$username,'language',$selected_language); } } --- modified functions.php and patch are attached. Issue should be fixed in select_language 1.1 version. Estimated release date 2005-11-20 or 2005-12-04. Thanks for feedback. -- Tomas |