Fixed use of i18n in popover

This commit is contained in:
Imperadeiro98 2015-10-23 16:54:42 +01:00
parent 09422910f7
commit 8a8d8c9d23

View file

@ -72,16 +72,16 @@ module.exports = class ClansView extends RootView
@supermodel.addRequestResource('user_names', options, 0).load()
setupPrivateInfoPopover: ->
popoverTitle = "<h3>" + data-i18n="teachers.sub_includes_7" + "</h3>"
popoverTitle = "<h3>" + $.i18n.t('teachers.sub_includes_7') + "</h3>"
popoverContent = "<ul>"
popoverContent += "<li><span style='font-weight:bold;'>" + data-i18n="clans.track_concepts1" + "</span> " + data-i18n="clans.track_concepts2b"
popoverContent += "<li>" + data-i18n="clans.track_concepts3b"
popoverContent += "<li>" + data-i18n="clans.track_concepts4b" + " <span style='font-weight:bold;'>" + data-i18n="clans.track_concepts5" + "</span>"
popoverContent += "<li>" + data-i18n="clans.track_concepts6b"
popoverContent += "<li><span style='font-weight:bold;'>" + data-i18n="clans.track_concepts7" + "</span> " + data-i18n="clans.track_concepts8"
popoverContent += "<li><span style='font-weight:bold;'>" + $.i18n.t('clans.track_concepts1') + "</span> " + $.i18n.t('clans.track_concepts2b')
popoverContent += "<li>" + $.i18n.t('clans.track_concepts3b')
popoverContent += "<li>" + $.i18n.t('clans.track_concepts4b') + " <span style='font-weight:bold;'>" + $.i18n.t('clans.track_concepts5') + "</span>"
popoverContent += "<li>" + $.i18n.t('clans.track_concepts6b')
popoverContent += "<li><span style='font-weight:bold;'>" + $.i18n.t('clans.track_concepts7') + "</span> " + $.i18n.t('clans.track_concepts8')
popoverContent += "</ul>"
popoverContent += "<p><img src='/images/pages/clans/dashboard_preview.png' height='400'></p>"
popoverContent += "<p>" + data-i18n="clans.private_require_sub" + "</p>"
popoverContent += "<p>" + $.i18n.t('clans.private_require_sub') + "</p>"
@$el.find('.private-more-info').popover(
animation: true
html: true