34 if (!$ilSetting->get(
"lang_ext_maintenance")
35 or !$ilSetting->get(
"lang_translate_".$lng->getLangKey()))
43 return $rbacsystem->checkAccess(
"read,write", (
int)
$ref_id);
61 if (!$ilSetting->get(
"lang_ext_maintenance"))
69 return $rbacsystem->checkAccess(
"read,write", (
int)
$ref_id);
84 $q =
"SELECT ref_id FROM object_reference r, object_data d".
85 " WHERE r.obj_id = d.obj_id AND d.type = ".$ilDB->quote(
"lngf",
"text");
86 $set = $ilDB->query($q);
87 $row = $ilDB->fetchAssoc($set);
88 return $row[
'ref_id'];
102 $q =
"SELECT obj_id FROM object_data ".
103 " WHERE type = ".$ilDB->quote(
"lng",
"text").
104 " AND title = ".$ilDB->quote($a_key,
"text");
105 $set = $ilDB->query($q);
106 $row = $ilDB->fetchAssoc($set);
107 return $row[
'obj_id'];
121 .
"&baseClass=ilAdministrationGUI"
122 .
"&cmdClass=ilobjlanguageextgui"
123 .
"&view_mode=translate"
124 .
"&reset_offset=true";
139 return (strtolower(
$_GET[
'cmdClass'] ==
'ilobjlanguageextgui') and
$_GET[
'view_mode'] ==
"translate");
149 $_SESSION[
'lang_ext_maintenance'][
'used_modules'] = array_keys($lng->getUsedModules());
150 $_SESSION[
'lang_ext_maintenance'][
'used_topics'] = array_keys($lng->getUsedTopics());
160 $saved =
$_SESSION[
'lang_ext_maintenance'][
'used_modules'];
161 return is_array($saved) ? $saved : array();
171 $saved =
$_SESSION[
'lang_ext_maintenance'][
'used_topics'];
172 return is_array($saved) ? $saved : array();