32 $lng = $DIC->language();
35 $rbacsystem = $DIC->rbac()->system();
42 $ref_id = self::_lookupLangFolderRefId();
43 return $rbacsystem->checkAccess(
"read,write", (
int) $ref_id);
61 $rbacsystem = $DIC->rbac()->system();
64 $ref_id = self::_lookupLangFolderRefId();
65 return $rbacsystem->checkAccess(
"read,write", (
int) $ref_id);
79 $ilDB = $DIC->database();
81 $q =
"SELECT ref_id FROM object_reference r, object_data d" .
82 " WHERE r.obj_id = d.obj_id AND d.type = " .
$ilDB->quote(
"lngf",
"text");
83 $set =
$ilDB->query($q);
85 return $row[
'ref_id'];
98 $ilDB = $DIC->database();
100 $q =
"SELECT obj_id FROM object_data " .
101 " WHERE type = " .
$ilDB->quote(
"lng",
"text") .
102 " AND title = " .
$ilDB->quote($a_key,
"text");
103 $set =
$ilDB->query($q);
105 return $row[
'obj_id'];
118 .
"?ref_id=" . self::_lookupLangFolderRefId()
119 .
"&baseClass=ilAdministrationGUI" 120 .
"&cmdClass=ilobjlanguageextgui" 121 .
"&view_mode=translate" 122 .
"&reset_offset=true";
137 return (strtolower(
$_GET[
'cmdClass'] ==
'ilobjlanguageextgui')
and $_GET[
'view_mode'] ==
"translate");
147 $lng = $DIC->language();
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();
static _isPageTranslation()
Check if the current request is a page translation.
static _getSavedModules()
Get the stored modules from the user session.
static _checkMaintenance()
Permission check for language maintenance (import/export)
static _lookupId($a_key)
Lookup the object ID for a language key.
static _getTranslationLink()
Get the link to translate the current page.
static _lookupLangFolderRefId()
Lookup the ref_id of the global language folder.
static _getSavedTopics()
Get the stored topics from the user session.
static _saveUsages()
Store the collected usages in the user session.
static _checkTranslate()
Permission check for translations.