@@ -47,7 +47,7 @@ class Accounts extends DataTable implements ClientArea
'active' => 'success',
'locked' => 'default',
'maintenance' => 'warning',
- 'closed' =>'default',
+ 'closed' => 'default',
'lockout' => 'info',
'pending' => 'warning',
'default' => 'default'
@@ -107,6 +107,16 @@ class Ressources extends DataTable implements ClientArea
return $row[$key] ? $row[$key] : '-';
}
+ /**
+ * @param $key
+ * @param $row
+ * @return mixed
+ */
+ public function replaceFieldType($key, $row)
+ {
+ return $row[$key] == 'location' ? di('lang')->absoluteT('zimbra','ressource','type','location') : di('lang')->absoluteT('zimbra','ressource','type','equipment');
+ }
+
/**
* load buttons
*/
@@ -365,7 +365,7 @@ $_LANG['zimbra']['account']['status']['closed'] = 'Geschlossen';
$_LANG['zimbra']['account']['status']['lockout'] = 'Gesperrt';
$_LANG['zimbra']['account']['status']['pending'] = 'Pending';
-$_LANG['zimbra']['ressource']['type']['location'] = 'Raum';
+$_LANG['zimbra']['ressource']['type']['location'] = 'Ort';
$_LANG['zimbra']['ressource']['type']['equipment'] = 'Inventar';
$_LANG['FormValidators']['passwordsIsNotTheSame'] = 'Die Passwörter stimmen nicht überein';