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();
57 $this->tpl->setVariable(
"LANG_KEY", $lang_key);
58 $this->tpl->setVariable(
"TXT_LANG", $this->lng->txt(
"lang_".$lang_key));
60 if (in_array($lang_key,$this->installed_langs))
62 $this->tpl->setVariable(
"CHECKED", (
"checked=\"checked\""));
65 if (!in_array($lang_key,$this->local_langs))
67 $this->tpl->setVariable(
"LOCAL", (
"disabled=\"disabled\""));
69 else if (in_array($lang_key,$this->installed_local_langs))
71 $this->tpl->setVariable(
"LOCAL", (
"checked=\"checked\""));
74 if ($lang_key == $this->default_lang)
76 $this->tpl->setVariable(
"DEFAULT", (
"checked=\"checked\""));