mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Add language variable to JS
This commit is contained in:
parent
d9842fcb8d
commit
5da28e7952
@ -420,11 +420,12 @@ Decrease `@shields` on error and disable PeriodicalExecuters once `@shields` rea
|
|||||||
@pe.getMessages.stop()
|
@pe.getMessages.stop()
|
||||||
@freeTheFish()
|
@freeTheFish()
|
||||||
console.error 'We got destroyed, but could free our friend the fish before he was killed as well. Have a nice life in freedom!'
|
console.error 'We got destroyed, but could free our friend the fish before he was killed as well. Have a nice life in freedom!'
|
||||||
if not $.wcfIsset('timsChatLoadingErrorDialog') then $('<div id="timsChatLoadingErrorDialog">' + WCF.Language.get('chat.general.error.onMessageLoad') + '</div>').appendTo('body')
|
|
||||||
$('#timsChatLoadingErrorDialog').wcfDialog({
|
$("""<div id="timsChatLoadingErrorDialog">#{WCF.Language.get('chat.general.error.onMessageLoad')}</div>""").appendTo('body') if not $.wcfIsset('timsChatLoadingErrorDialog')
|
||||||
'closable': false,
|
$('#timsChatLoadingErrorDialog').wcfDialog
|
||||||
|
closable: false,
|
||||||
title: WCF.Language.get('wcf.global.error.title')
|
title: WCF.Language.get('wcf.global.error.title')
|
||||||
})
|
|
||||||
complete: =>
|
complete: =>
|
||||||
@loading = false
|
@loading = false
|
||||||
|
|
||||||
|
@ -14,7 +14,8 @@
|
|||||||
'chat.general.kick': '{lang}chat.general.kick{/lang}',
|
'chat.general.kick': '{lang}chat.general.kick{/lang}',
|
||||||
'chat.general.ban': '{lang}chat.general.ban{/lang}',
|
'chat.general.ban': '{lang}chat.general.ban{/lang}',
|
||||||
'chat.general.profile': '{lang}chat.general.profile{/lang}',
|
'chat.general.profile': '{lang}chat.general.profile{/lang}',
|
||||||
'chat.general.notify.title': '{lang}chat.general.notify.title{/lang}'
|
'chat.general.notify.title': '{lang}chat.general.notify.title{/lang}',
|
||||||
|
'chat.general.error.onMessageLoad': '{lang}chat.general.error.onMessageLoad{/lang}'
|
||||||
});
|
});
|
||||||
|
|
||||||
{event name='beforeInit'}
|
{event name='beforeInit'}
|
||||||
|
Loading…
Reference in New Issue
Block a user