diff --git a/locales/en.json b/locales/en.json index ec0b6b7..59a26af 100644 --- a/locales/en.json +++ b/locales/en.json @@ -1,7 +1,6 @@ { "layout": { "home": "Home", - "administration": "Administration", "logout": "Logout", "login": "Login", "register": "Register", @@ -36,6 +35,16 @@ "infos": "Infos", "save": "Save" }, + "admin": { + "title": "Administration", + "commandsManagement": "Commands management", + "ordersDate": "Orders date", + "manageCommands": "Manage commands", + "sandwichManagement": "Sandwich management", + "manageSandwiches": "Manage sandwiches", + "userManagement": "User management", + "manageUsers": "Manage users" + }, "firstName": "First name", "lastName": "Last name", "username": "Username", diff --git a/views/admin/commands.pug b/views/admin/commands.pug index a5f7f39..be1ceca 100644 --- a/views/admin/commands.pug +++ b/views/admin/commands.pug @@ -2,7 +2,7 @@ extends ../layout block content div.card#commandsManagement - h1 Commands management + h1=__("admin.commandsManagement") div each command in commands div.command diff --git a/views/admin/index.pug b/views/admin/index.pug index cd6b079..bfd5ff0 100644 --- a/views/admin/index.pug +++ b/views/admin/index.pug @@ -2,23 +2,23 @@ extends ../layout block content div.card - h1 Administration + h1=__("admin.title") div - h2 Commands management + h2=__("admin.commandsManagement") div.buttons a(href="/admin/commands/date") - button Orders date + button=__("admin.ordersDate") a(href="/admin/commands") - button Manage commands + button=__("admin.manageCommands") div - h2 Sandwich management + h2=__("admin.sandwichManagement") div.buttons a(href="/admin/sandwiches") - button Manage sandwiches + button=__("admin.manageSandwiches") div - h2 User management + h2=__("admin.userManagement") div.buttons a(href="/admin/users") - button Manage users + button=__("admin.manageUsers") diff --git a/views/layout.pug b/views/layout.pug index 2ae1bcf..9f86e2a 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -17,7 +17,7 @@ html a(href="/commands")=__("commands") if user.permissions >= 3 p - - a(href="/admin")=__("layout.administration") + a(href="/admin")=__("admin.title") p | if user a(href="/profile")=user.username