示例#1
0
 /**
  * This method initialize the current language and the current step
  *
  */
 private function init()
 {
     //get the current post-request and check if the language was given by POST
     $s_post = \Globals::get('_POST');
     if (!is_null($s_post['game_language'])) {
         \Session::get_session()->set_value('language', $s_post['game_language']);
     }
     //Initialize the I18N-Class for templates-usage
     \I18N::init();
     //if we have no language-value in the session, set the default install-language to ENGLISH
     if (is_null(\Session::get_session()->get_value('language'))) {
         \I18N::set_language('en_EN');
     } else {
         \I18N::set_language(\Session::get_session()->get_value('language'));
     }
     \Replacer::set_language(\I18N::get_language());
     //set the current step by POST
     $this->i_step = $s_post['install_step'];
 }