From be11c47e17d6c08d6d5f0a87a2fe81afa428ae08 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Tue, 30 Aug 2016 10:49:45 -0700 Subject: [PATCH] Have campaign-view translate campaign name normally --- app/templates/play/campaign-view.jade | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/templates/play/campaign-view.jade b/app/templates/play/campaign-view.jade index 816b767f3..a0d3cb7d2 100644 --- a/app/templates/play/campaign-view.jade +++ b/app/templates/play/campaign-view.jade @@ -200,10 +200,7 @@ if view.showAds() h1#campaign-status.picoctf-hide .campaign-status-background .campaign-name - - var fullName = i18n(campaign.attributes, 'fullName') - if (me.get('preferredLanguage', true) || 'en-US').split('-')[0] == 'en' || fullName != campaign.get('fullName') - // We have a translation. - span= fullName + span= i18n(campaign.attributes, 'fullName') .levels-completed span= levelsCompleted | /