mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
Converted noscript text into translatable strings
This commit is contained in:
parent
41e6abfc83
commit
37e08e8d5d
4 changed files with 12 additions and 12 deletions
6
common/locales/en/noscript.json
Normal file
6
common/locales/en/noscript.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"jsDisabledHeading": "Alas! Your browser doesn't have JavaScript enabled",
|
||||
"jsDisabledHeadingFull": "Alas! Your browser doesn't have JavaScript enabled and without it, Habitica can't work properly",
|
||||
"jsDisabledText": "Habitica can't properly display the site without it!",
|
||||
"jsDisabledLink": "Please enable JavaScript to continue!"
|
||||
}
|
||||
|
|
@ -30,7 +30,7 @@ html(ng-app="habitrpg", ng-controller="RootCtrl", ng-class='{"applying-action":a
|
|||
|
||||
|
||||
body(ng-cloak, ng-controller='GroupsCtrl')
|
||||
include ./shared/no-script
|
||||
include ./shared/noscript
|
||||
include ./shared/mixins
|
||||
include ./shared/avatar/index
|
||||
include ./shared/header/menu
|
||||
|
|
|
|||
|
|
@ -5,11 +5,8 @@ noscript
|
|||
display: none;
|
||||
}
|
||||
|
||||
h3
|
||||
| Alas! Your browser doesn't have JavaScript enabled
|
||||
h3= env.t('jsDisabledHeading')
|
||||
img(src='/front/images/coding_by_phoneix_faerie.png', alt='Coding placeholder image')
|
||||
p
|
||||
| Habitica can't properly display the site without it!
|
||||
p= env.t('jsDisabledText')
|
||||
br
|
||||
a(href='http://www.enable-javascript.com/', target='_blank')
|
||||
| Please enable JavaScript to continue!
|
||||
a(href='http://www.enable-javascript.com/', target='_blank')= env.t('jsDisabledLink')
|
||||
|
|
@ -41,12 +41,9 @@ html(ng-app='habitrpg', ng-controller='RootCtrl')
|
|||
include ../shared/mixins
|
||||
include ../shared/modals/members
|
||||
|
||||
noscript(class='banner')
|
||||
| Alas! Your browser doesn't have JavaScript enabled and without it,
|
||||
| Habitica can't work properly
|
||||
noscript.banner= env.t('jsDisabledHeadingFull')
|
||||
br
|
||||
a(href='http://www.enable-javascript.com/', target='_blank')
|
||||
| Please enable JavaScript to continue!
|
||||
a(href='http://www.enable-javascript.com/', target='_blank')= env.t('jsDisabledLink')
|
||||
|
||||
.mobile-container
|
||||
div(ng-init='Analytics.track({"hitType":"pageview","eventCategory":"page","eventAction":"landing page","page":"/static/front"});')
|
||||
|
|
|
|||
Loading…
Reference in a new issue