From 52d2693d94f883fce4766c9f43bb75f976f04d08 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Wed, 9 Apr 2014 17:30:37 +0200 Subject: [PATCH] fix(i18n): use translated attributes and classes --- views/options/profile.jade | 2 +- views/shared/profiles/stats.jade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/options/profile.jade b/views/options/profile.jade index a5b41878be..b0f0d0bdcb 100644 --- a/views/options/profile.jade +++ b/views/options/profile.jade @@ -141,7 +141,7 @@ script(id='partials/options.profile.stats.html', type='text/ng-template') h3=env.t('characterBuild') h4 =env.t('class') + ': ' - span {{ {warrior:'Warrior',wizard:'Mage',healer:'Healer',rogue:'Rogue'}[user.stats.class] }}  + span {{ {warrior:env.t("warrior"), wizard:env.t("mage"), rogue:env.t("rogue"), healer:env.t("healer")}[user.stats.class] }}  a.btn.btn-danger.btn-xs(ng-click='changeClass(null)')=env.t('changeClass') small.cost 3 table.table.table-striped diff --git a/views/shared/profiles/stats.jade b/views/shared/profiles/stats.jade index 5b568e8002..2ae6ad7f85 100644 --- a/views/shared/profiles/stats.jade +++ b/views/shared/profiles/stats.jade @@ -27,7 +27,7 @@ table.table.table-striped(ng-show='user.flags.itemsEnabled') h4=env.t('attributes') table.table.table-striped - tr(ng-repeat='(k,v) in {str:"Strength (STR)",int:"Intelligence (INT)",con:"Constitution (CON)",per:"Perception (PER)"}') + tr(ng-repeat='(k,v) in {str: env.t("strength") + " (STR)",int: env.t("intelligence") + " (INT)",con: env.t("constitution") + " (CON)",per:env.t("perception") + " (PER)"}') td span.hint(ng-if='k=="str"', popover-title=env.t('strength'), popover-placement='right', popover=env.t('strengthText'), popover-trigger='mouseenter', style='margin-right:3px') strong {{v}}