1: <?php
 2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 
13: 
14: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
15: 
16: session_unset();
17: 
18: 19: 20: 21: 22: 23: 
24: class cSetupLanguageChooser extends cSetupMask
25: {
26: 
27:     28: 29: 
30:     public function __construct() {
31:         cSetupMask::__construct("templates/languagechooser.tpl");
32:         $this->setHeader('Version ' . CON_SETUP_VERSION);
33:         $this->_stepTemplateClass->set("s", "DE_HINT", "Diese Anwendung hilft Ihnen bei der Installation von CONTENIDO.");
34:         $this->_stepTemplateClass->set("s", "EN_HINT", "This application will guide you trough the setup process.");
35:         $this->_stepTemplateClass->set("s", "DE_HINT_LANG", "Wählen Sie bitte die gewünschte Sprache für das Setup aus.");
36:         $this->_stepTemplateClass->set("s", "EN_HINT_LANG", "Please choose your language to continue.");
37: 
38:         $langs = array("de_DE" => "Deutsch", "C" => "English");
39: 
40:         $m = "";
41: 
42:         foreach ($langs as $entity => $lang) {
43:             $test = new cHTMLLanguageLink($entity, $lang, "setuptype");
44:             $m .= $test->render();
45:         }
46: 
47:         $this->_stepTemplateClass->set("s", "LANGUAGECHOOSER", $m);
48:     }
49: 
50:     51: 52: 53: 
54:     public function cSetupLanguageChooser() {
55:         cDeprecated('This method is deprecated and is not needed any longer. Please use __construct() as constructor function.');
56:         $this->__construct();
57:     }
58: }
59: 
60: $cSetupStep1 = new cSetupLanguageChooser();
61: $cSetupStep1->render();
62: