Improved check when to show up-

This commit is contained in:
Martin Edenhofer 2015-06-28 11:15:54 +02:00
parent d0571c58d6
commit b264386b1c

View file

@ -8,11 +8,14 @@ class TranslationSupport extends App.Controller
return if !@Config.get('system_init_done')
# to not translate en
return if App.i18n.notTranslatedFeatureEnabled(App.i18n.get())
return if !App.i18n.notTranslatedFeatureEnabled(App.i18n.get())
# only show for admins
return if !@isRole('Admin')
# do not show in setup screens
return if window.location.hash.toString().match(/getting/)
# verify current state of translation
meta = App.i18n.meta()
percent = parseInt( meta.translated / (meta.total / 100) )