From 9fddb08aebfca32deb9287a43fcc49fe32b5538b Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Tue, 10 Feb 2015 20:47:40 -0600 Subject: [PATCH] fix(event): Localize poems --- views/shared/modals/limited.jade | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/views/shared/modals/limited.jade b/views/shared/modals/limited.jade index bdf7049fa9..802ca609cf 100644 --- a/views/shared/modals/limited.jade +++ b/views/shared/modals/limited.jade @@ -8,22 +8,13 @@ script(id='modals/valentine.html', type='text/ng-template') .bg-info(style='padding:10px') p To: {{user.profile.name}}, From: {{user.items.special.valentineReceived[0]}} hr - div(ng-switch='Math.floor(Math.random()*3)') - ul.list-unstyled(ng-switch-when='0') - li "Roses are red - li My Dailies are blue - li I'm happy that I'm - li In a Party with you!" - ul.list-unstyled(ng-switch-when='1') - li "Roses are red - li Violets are nice - li Let's get together - li And fight against Vice!" - ul.list-unstyled(ng-switch-default) - li "Roses are red - li This poem style is old - li I hope that you like this - li Cuz it cost ten gold." + ul.list-unstyled(ng-switch='::Math.floor(Math.random()*3)') + li(ng-switch-when='0') + =env.t('valentine0') + li(ng-switch-when='1') + =env.t('valentine1') + li(ng-switch-default) + =env.t('valentine2') p small For enduring such a saccharine poem, you both receive the "Adoring Friends" badge! .modal-footer