|
From: FlorinCB <ory...@us...> - 2008-07-09 16:56:45
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21780 Modified Files: mx_functions_style.php Log Message: $mx_user->get_phpbb_lang() Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** mx_functions_style.php 9 Jul 2008 14:53:55 -0000 1.76 --- mx_functions_style.php 9 Jul 2008 16:56:41 -0000 1.77 *************** *** 581,585 **** if ( !file_exists(@phpBB2::phpbb_realpath($mx_root_path . 'language/lang_' . $this->get_phpbb_lang($this->lang['default_lang']) . '/lang_main.'.$phpEx)) ) { ! mx_message_die(CRITICAL_ERROR, 'Could not locate valid language pack: ' . $mx_root_path . 'language/lang_' . $this->get_phpbb_lang($this->lang['default_lang']) . '/lang_main.'.$phpEx); } } --- 581,585 ---- if ( !file_exists(@phpBB2::phpbb_realpath($mx_root_path . 'language/lang_' . $this->get_phpbb_lang($this->lang['default_lang']) . '/lang_main.'.$phpEx)) ) { ! mx_message_die(CRITICAL_ERROR, 'Could not locate valid language pack: ' . $mx_root_path . 'language/lang_' . $this->get_phpbb_lang($this->lang['default_lang'], 'phpbb2') . '/lang_main.'.$phpEx); } [...1324 lines suppressed...] ! case 'zh': ! $lang_name = 'chinese'; break; ! case 'zh_cmn_hans': ! $lang_name = 'chinese_simplified'; break; ! case 'zh_cmn_hant': ! $lang_name = 'chinese_traditional'; break; ! case 'zu': ! $lang_name = 'zulu'; break; ! default: ! $lang_name = $lang; ! break; ! } ! } ! return $lang_name; } |