4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
25 $this->
setData($lng->getInstallableLanguages());
29 $this->
addColumn($this->lng->txt(
"language"));
30 $this->
addColumn($this->lng->txt(
"installed"));
31 $this->
addColumn($this->lng->txt(
"include_local"));
32 $this->
addColumn($this->lng->txt(
"default"));
41 $this->client = $a_client;
42 $this->installed_langs = $lng->getInstalledLanguages();
43 $this->installed_local_langs = $lng->getInstalledLocalLanguages();
44 $this->local_langs = $lng->getLocalLanguages();
45 $this->default_lang = $this->client->getDefaultLanguage();
58 $this->tpl->setVariable(
"LANG_KEY", $lang_key);
59 $this->tpl->setVariable(
"TXT_LANG", $this->lng->txt(
"lang_".$lang_key));
61 if (in_array($lang_key,$this->installed_langs))
63 $this->tpl->setVariable(
"CHECKED", (
"checked=\"checked\""));
66 if (!in_array($lang_key,$this->local_langs))
68 $this->tpl->setVariable(
"LOCAL", (
"disabled=\"disabled\""));
70 else if (in_array($lang_key,$this->installed_local_langs))
72 $this->tpl->setVariable(
"LOCAL", (
"checked=\"checked\""));
75 if ($lang_key == $this->default_lang)
77 $this->tpl->setVariable(
"DEFAULT", (
"checked=\"checked\""));