Add locales to layout
This commit is contained in:
parent
1f1f44bce3
commit
a9f2b6c7a8
3 changed files with 48 additions and 26 deletions
22
locales/en.json
Normal file
22
locales/en.json
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
"layout": {
|
||||||
|
"home": "Home",
|
||||||
|
"sandwiches": "Sandwiches",
|
||||||
|
"commands": "Commands",
|
||||||
|
"administration": "Administration",
|
||||||
|
"logout": "Logout",
|
||||||
|
"login": "Login",
|
||||||
|
"register": "Register",
|
||||||
|
"about": "About",
|
||||||
|
"aboutDescription": "This software respond to the COVID-19 health crisis for the following students' offices food supply",
|
||||||
|
"bio": "Bio student office",
|
||||||
|
"chemistry": "Chemistry student office",
|
||||||
|
"GC": "Civil engineering student office",
|
||||||
|
"GCPD": "Chemical and process engineering student office",
|
||||||
|
"GEA": "Management of companies and administrations student office",
|
||||||
|
"IT": "IT student office",
|
||||||
|
"made": "Made with ❤️ by",
|
||||||
|
"contact": "Contact",
|
||||||
|
"orderIssue": "Order issue"
|
||||||
|
}
|
||||||
|
}
|
0
locales/fr.json
Normal file
0
locales/fr.json
Normal file
|
@ -7,69 +7,69 @@ html
|
||||||
block content
|
block content
|
||||||
|
|
||||||
div#user
|
div#user
|
||||||
a(href="/") Home
|
a(href="/")=__("layout.home")
|
||||||
if user
|
if user
|
||||||
if user.permissions >= 1
|
if user.permissions >= 1
|
||||||
p -
|
p -
|
||||||
a(href="/sandwiches") Sandwiches
|
a(href="/sandwiches")=__("layout.sandwiches")
|
||||||
if user.permissions >= 2
|
if user.permissions >= 2
|
||||||
p -
|
p -
|
||||||
a(href="/commands") Commands
|
a(href="/commands")=__("layout.commands")
|
||||||
if user.permissions >= 3
|
if user.permissions >= 3
|
||||||
p -
|
p -
|
||||||
a(href="/admin") Administration
|
a(href="/admin")=__("layout.administration")
|
||||||
p |
|
p |
|
||||||
if user
|
if user
|
||||||
a(href="/profile")=user.username
|
a(href="/profile")=user.username
|
||||||
a(href="/logout") Logout
|
a(href="/logout")=__("layout.logout")
|
||||||
else
|
else
|
||||||
a(href="/login") Login
|
a(href="/login")=__("layout.login")
|
||||||
a(href="/register") Register
|
a(href="/register")=__("layout.register")
|
||||||
|
|
||||||
div#more
|
div#more
|
||||||
a About
|
a=__("layout.about")
|
||||||
a Contact
|
a=__("layout.contact")
|
||||||
|
|
||||||
div#dark.hide
|
div#dark.hide
|
||||||
div#about.popup.card.hide
|
div#about.popup.card.hide
|
||||||
h1 About
|
h1=__("layout.about")
|
||||||
p This software respond to the COVID-19 health crisis for the following students' offices food supply
|
p=__("layout.aboutDescription")
|
||||||
div.images
|
div.images
|
||||||
div
|
div
|
||||||
img(src="/images/logoBio.png")
|
img(src="/images/logoBio.png")
|
||||||
p Bio student office
|
p=__("layout.bio")
|
||||||
div
|
div
|
||||||
img(src="/images/logoChimie.png")
|
img(src="/images/logoChimie.png")
|
||||||
p Chemical student office
|
p=__("layout.chemistry")
|
||||||
div
|
div
|
||||||
img(src="/images/logoGC.png")
|
img(src="/images/logoGC.png")
|
||||||
p Civil engineering student office
|
p=__("layout.GC")
|
||||||
div
|
div
|
||||||
img(src="/images/logoGCGP.png")
|
img(src="/images/logoGCGP.png")
|
||||||
p Chemical and process engineering student office
|
p=__("layout.GCPD")
|
||||||
div
|
div
|
||||||
img(src="/images/logoGEA.png")
|
img(src="/images/logoGEA.png")
|
||||||
p Management of companies and administrations student office
|
p=__("layout.GEA")
|
||||||
div
|
div
|
||||||
img(src="/images/logoInfo.png")
|
img(src="/images/logoInfo.png")
|
||||||
p IT student office
|
p=__("layout.IT")
|
||||||
p.before-link Made with ❤️ by
|
p.before-link=__("layout.made")
|
||||||
a(href="https://www.linkedin.com/in/florian-charlaix" target="_blank") Florian Charlaix
|
a(href="https://www.linkedin.com/in/florian-charlaix" target="_blank") Florian Charlaix
|
||||||
div#contact.popup.card.hide
|
div#contact.popup.card.hide
|
||||||
h1 Contact
|
h1=__("layout.contact")
|
||||||
p.before-link Order issue:
|
p.before-link=__("layout.orderIssue")+":"
|
||||||
a(href="mailto: ") test@test.fr
|
a(href="mailto: ") test@test.fr
|
||||||
p.before-link Bio student office:
|
p.before-link=__("layout.bio")+":"
|
||||||
a(href="mailto: ")
|
a(href="mailto: ")
|
||||||
p.before-link Chemical student office:
|
p.before-link=__("layout.chemistry")+":"
|
||||||
a(href="mailto: ")
|
a(href="mailto: ")
|
||||||
p.before-link Civil engineering student office:
|
p.before-link=__("layout.GC")+":"
|
||||||
a(href="mailto: ")
|
a(href="mailto: ")
|
||||||
p.before-link Chemical and process engineering student office:
|
p.before-link=__("layout.GCPD")+":"
|
||||||
a(href="mailto: bde.gcgp.lyon1@gmail.com") bde.gcgp.lyon1@gmail.com
|
a(href="mailto: bde.gcgp.lyon1@gmail.com") bde.gcgp.lyon1@gmail.com
|
||||||
p.before-link Management of companies and administrations student office:
|
p.before-link=__("layout.GEA")+":"
|
||||||
a(href="mailto: ")
|
a(href="mailto: ")
|
||||||
p.before-link IT student office:
|
p.before-link=__("layout.IT")+":"
|
||||||
a(href="mailto: contact@bde-info.org") contact@bde-info.org
|
a(href="mailto: contact@bde-info.org") contact@bde-info.org
|
||||||
|
|
||||||
script(src="/javascripts/layout.js")
|
script(src="/javascripts/layout.js")
|
||||||
|
|
Reference in a new issue