mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Converted noscript text into translatable strings
This commit is contained in:
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"});')
|
||||
|
||||
Reference in New Issue
Block a user