From ab425849655fcb8fc87d30173dd25739e085e1e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 15 Apr 2012 15:37:41 +0200 Subject: [PATCH] Adding language-items for away-message. --- file/lib/data/chat/message/ChatMessage.class.php | 6 ++++++ language/de.xml | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/file/lib/data/chat/message/ChatMessage.class.php b/file/lib/data/chat/message/ChatMessage.class.php index 97b9b47..3dc464c 100755 --- a/file/lib/data/chat/message/ChatMessage.class.php +++ b/file/lib/data/chat/message/ChatMessage.class.php @@ -56,6 +56,12 @@ class ChatMessage extends \wcf\data\DatabaseObject { case self::TYPE_BACK: $message = WCF::getLanguage()->get('wcf.chat.message.'.$this->type); break; + case self::TYPE_AWAY: + WCF::getTPL()->assign(array( + 'message' => $message + )); + $message = WCF::getLanguage()->getDynamicVariable('wcf.chat.message.'.$this->type); + break; case self::TYPE_NORMAL: case self::TYPE_ME: case self::TYPE_WHISPER: diff --git a/language/de.xml b/language/de.xml index 256a50e..adc4060 100644 --- a/language/de.xml +++ b/language/de.xml @@ -71,6 +71,8 @@ + + @@ -84,4 +86,4 @@ - \ No newline at end of file +