Linked community page to new i18n

This commit is contained in:
Imperadeiro98 2014-12-20 09:28:56 +00:00
parent bd5184c23b
commit 6ebf25ad15

View file

@ -11,12 +11,7 @@ module.exports = class CommunityView extends RootView
characterClass = $(@).attr('href').split('#')[1]
title = $.i18n.t("classes.#{characterClass}_title")
titleDescription = $.i18n.t("classes.#{characterClass}_title_description")
if characterClass is 'artisan'
summary = $.i18n.t("contribute.#{characterClass}_summary_pref") + ' Mondo Bizarro' + $.i18n.t("contribute.#{characterClass}_summary_suf")
else if characterClass is 'scribe'
summary = $.i18n.t("contribute.#{characterClass}_summary_pref") + 'Mozilla Developer Network' + $.i18n.t("contribute.#{characterClass}_summary_suf")
else
summary = $.i18n.t("contribute.#{characterClass}_summary")
summary = $.i18n.t("classes.#{characterClass}_summary")
explanation = "<h4>#{title} #{titleDescription}</h4>#{summary}"
$(@).find('img').popover(placement: 'bottom', trigger: 'hover', container: 'body', content: explanation, html: true)