1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Fix language items

This commit is contained in:
Tim Düsterhus 2013-02-02 23:32:41 +01:00
parent 99da19966d
commit e3f6731c74
2 changed files with 6 additions and 4 deletions

View File

@ -157,23 +157,23 @@ public function save() {
$receiver = $command->getReceiver();
}
catch (\chat\system\command\NotFoundException $e) {
$this->message = WCF::getLanguage()->get('wcf.chat.error.notFound');
$this->message = WCF::getLanguage()->get('chat.error.notFound');
$type = data\message\Message::TYPE_ERROR;
$receiver = WCF::getUser()->userID;
}
catch (\chat\system\command\UserNotFoundException $e) {
$this->message = WCF::getLanguage()->getDynamicVariable('wcf.chat.error.userNotFound', array('username' => $e->getUsername()));
$this->message = WCF::getLanguage()->getDynamicVariable('chat.error.userNotFound', array('username' => $e->getUsername()));
$type = data\message\Message::TYPE_ERROR;
$receiver = WCF::getUser()->userID;
$this->enableHTML = 1;
}
catch (\wcf\system\exception\PermissionDeniedException $e) {
$this->message = WCF::getLanguage()->get('wcf.chat.error.permissionDenied');
$this->message = WCF::getLanguage()->get('chat.error.permissionDenied');
$type = data\message\Message::TYPE_ERROR;
$receiver = WCF::getUser()->userID;
}
catch (\Exception $e) {
$this->message = WCF::getLanguage()->get('wcf.chat.error.exception');
$this->message = WCF::getLanguage()->get('chat.error.exception');
$type = data\message\Message::TYPE_ERROR;
$receiver = WCF::getUser()->userID;
}

View File

@ -114,6 +114,8 @@ Hinweis: Setzen Sie diese Einstellung nur, wenn Sie wissen, was sie bewirkt. Die
<item name="chat.message.5.ban"><![CDATA[hat {@$link} bis {@$until|plainTime} gebannt.]]></item>
<item name="chat.message.5.gmute"><![CDATA[hat {@$link} bis {@$until|plainTime} global geknebelt.]]></item>
<item name="chat.message.5.gban"><![CDATA[hat {@$link} bis {@$until|plainTime} global gebannt.]]></item>
<item name="chat.message.color.success"><![CDATA[Die Farbe wurde erfolgreich geändert.]]></item>
</category>
<!-- I18N Values -->