andre 2 жил өмнө
parent
commit
ce7bc76960

+ 1 - 1
app/UI/Client/EmailAccount/Pages/Accounts.php

@@ -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'

+ 10 - 0
app/UI/Client/Ressource/Pages/Ressources.php

@@ -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
      */

+ 1 - 1
langs/german.php

@@ -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';