Improved check when to show up-
This commit is contained in:
parent
d0571c58d6
commit
b264386b1c
1 changed files with 4 additions and 1 deletions
|
@ -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) )
|
||||
|
|
Loading…
Reference in a new issue