From bc3e1e52b692f0e4f8193fdc003bf81b25b0f202 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 28 Jun 2015 03:39:16 +0200 Subject: [PATCH] Small improvement, use api now. --- .../app/controllers/widget/translation_support.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/widget/translation_support.js.coffee b/app/assets/javascripts/app/controllers/widget/translation_support.js.coffee index 68ccca530..4a0cb84fe 100644 --- a/app/assets/javascripts/app/controllers/widget/translation_support.js.coffee +++ b/app/assets/javascripts/app/controllers/widget/translation_support.js.coffee @@ -5,7 +5,7 @@ class TranslationSupport extends App.Controller check = => # to not translate en - return if App.i18n.get().substr(0,2) is 'en' + return if App.i18n.notTranslatedFeatureEnabled(App.i18n.get()) # only show for admins return if !@isRole('Admin')