From bab193fe04edd44b9c0fea4ea85beb236b3cb789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 21 Jan 2012 17:47:12 +0100 Subject: [PATCH] Add object to WCF.Language --- template/chat.tpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/template/chat.tpl b/template/chat.tpl index bf8687e..9582edf 100755 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -198,10 +198,12 @@ animations: {CHAT_ANIMATIONS}, maxTextLength: {CHAT_LENGTH} } - WCF.Language.add('wcf.chat.query', '{lang}wcf.chat.query{/lang}'); - WCF.Language.add('wcf.chat.kick', '{lang}wcf.chat.kick{/lang}'); - WCF.Language.add('wcf.chat.ban', '{lang}wcf.chat.ban{/lang}'); - WCF.Language.add('wcf.chat.profile', '{lang}wcf.chat.profile{/lang}'); + WCF.Language.addObject({ + 'wcf.chat.query': '{lang}wcf.chat.query{/lang}'), + 'wcf.chat.kick': '{lang}wcf.chat.kick{/lang}'), + 'wcf.chat.ban': '{lang}wcf.chat.ban{/lang}'), + 'wcf.chat.profile': '{lang}wcf.chat.profile{/lang}' + }); {event name='shouldInit'} // Boot the that TimWolla.WCF.Chat.init();