From 3c5daea67e44037592c8faf9401eac701de93232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 13 Sep 2013 22:19:08 +0200 Subject: [PATCH] Add missing language items and improve some others see #55 --- acptemplate/chatSuspensionList.tpl | 2 +- .../command/AbstractSuspensionCommand.class.php | 2 +- .../command/AbstractUnsuspensionCommand.class.php | 2 +- .../command/commands/TemproomCommand.class.php | 2 +- language/de.xml | 12 +++++++++--- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/acptemplate/chatSuspensionList.tpl b/acptemplate/chatSuspensionList.tpl index b736365..c632484 100644 --- a/acptemplate/chatSuspensionList.tpl +++ b/acptemplate/chatSuspensionList.tpl @@ -135,7 +135,7 @@ {foreach from=$objects item=$suspension} - + {event name='rowButtons'} {#$suspension->suspensionID} diff --git a/file/lib/system/command/AbstractSuspensionCommand.class.php b/file/lib/system/command/AbstractSuspensionCommand.class.php index 8d15e7c..1c2551f 100644 --- a/file/lib/system/command/AbstractSuspensionCommand.class.php +++ b/file/lib/system/command/AbstractSuspensionCommand.class.php @@ -60,7 +60,7 @@ public function executeAction() { if ($suspension = suspension\Suspension::getSuspensionByUserRoomAndType($this->user, $room, static::SUSPENSION_TYPE)) { if ($suspension->expires >= $this->expires) { - throw new \wcf\system\exception\UserInputException('text', WCF::getLanguage()->get('wcf.chat.suspension.exists')); + throw new \wcf\system\exception\UserInputException('text', WCF::getLanguage()->get('chat.suspension.exists')); } $action = new suspension\SuspensionAction(array($suspension), 'revoke', array( diff --git a/file/lib/system/command/AbstractUnsuspensionCommand.class.php b/file/lib/system/command/AbstractUnsuspensionCommand.class.php index 7fa1082..3f18bb3 100644 --- a/file/lib/system/command/AbstractUnsuspensionCommand.class.php +++ b/file/lib/system/command/AbstractUnsuspensionCommand.class.php @@ -48,7 +48,7 @@ public function executeAction() { $action->executeAction(); } else { - throw new \wcf\system\exception\UserInputException('text', WCF::getLanguage()->get('wcf.chat.suspension.notExists')); + throw new \wcf\system\exception\UserInputException('text', WCF::getLanguage()->get('chat.suspension.notExists')); } } diff --git a/file/lib/system/command/commands/TemproomCommand.class.php b/file/lib/system/command/commands/TemproomCommand.class.php index 121e69e..1c1fd27 100644 --- a/file/lib/system/command/commands/TemproomCommand.class.php +++ b/file/lib/system/command/commands/TemproomCommand.class.php @@ -75,7 +75,7 @@ public function getType() { * @see \chat\system\command\ICommand::getMessage() */ public function getMessage() { - return $this->roomName; + return WCF::getLanguage()->getDynamicVariable('chat.message.temproom.success', array('roomName' => $this->roomName)); } /** diff --git a/language/de.xml b/language/de.xml index 6ab1255..8512df0 100644 --- a/language/de.xml +++ b/language/de.xml @@ -17,8 +17,10 @@ - - revokerUsername}]]> + + username}“ wirklich zurückziehen?]]> + + revokerUsername}“]]> @@ -86,7 +88,7 @@ - + @@ -107,6 +109,7 @@ getCommand()}“ wurde nicht gefunden.]]> getUsername()}“ wurde nicht gefunden.]]> + @@ -188,11 +191,14 @@ Probieren Sie den Chat neu zu laden