clean: english

The changes in this commit were made to translate the website's text content from French to English, as part of efforts to ensure the platform is more accessible to a wider audience. This includes translation of user-facing instructions, button labels, form fields, and messages across multiple templates including home.html, setup1.html, setup2.html, and login.html among others.
This commit is contained in:
Florian Sylvain
2023-10-16 09:47:04 +02:00
parent 7d071ebc2e
commit 55d9e3bfc1
6 changed files with 29 additions and 29 deletions
@@ -13,7 +13,7 @@
<div class="collapse navbar-collapse" id="navbarNav"> <div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav me-auto"> <ul class="navbar-nav me-auto">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="/home">Accueil</a> <a class="nav-link" href="/home">Home</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="/post">Posts</a> <a class="nav-link" href="/post">Posts</a>
@@ -21,7 +21,7 @@
</ul> </ul>
<ul class="navbar-nav"> <ul class="navbar-nav">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link disconnect-link" href="/logout">Se déconnecter</a> <a class="nav-link disconnect-link" href="/logout">Log out</a>
</li> </li>
</ul> </ul>
</div> </div>
@@ -1,14 +1,14 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>GohCMS | Accueil</title> <title>GohCMS | Home</title>
{{.Head}} {{.Head}}
</head> </head>
<body class="text-dark"> <body class="text-dark">
{{.Navbar}} {{.Navbar}}
<div class="container mt-3 text-black-50"> <div class="container mt-3 text-black-50">
<h1>Accueil</h1> <h1>Accueil</h1>
<p>Bienvenue sur GohCMS !</p> <p>Welcome on GohCMS !</p>
<a href="/post"> <a href="/post">
<button class="btn btn-outline-primary">Posts &raquo;</button> <button class="btn btn-outline-primary">Posts &raquo;</button>
</a> </a>
@@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>GohCMS | Connexion</title> <title>GohCMS | Login</title>
{{.Head}} {{.Head}}
<style> <style>
@@ -15,7 +15,7 @@
<div class="d-flex flex-column gap-5 m-auto form-container"> <div class="d-flex flex-column gap-5 m-auto form-container">
<div> <div>
<h1>GohCMS</h1> <h1>GohCMS</h1>
<h2>Connexion</h2> <h2>Login</h2>
</div> </div>
<form action="login" class="" method="POST"> <form action="login" class="" method="POST">
<div class="d-flex flex-column gap-4"> <div class="d-flex flex-column gap-4">
@@ -23,26 +23,26 @@
<input class="form-control {{ if .PageError.IsError }} is-invalid {{ end }}" <input class="form-control {{ if .PageError.IsError }} is-invalid {{ end }}"
id="username" id="username"
name="username" name="username"
placeholder="Nom d'utilisateur" placeholder="Username"
required required
type="text" type="text"
value="{{.Username}}"> value="{{.Username}}">
<label for="username">Nom d'utilisateur</label> <label for="username">Username</label>
</div> </div>
<div class="form-floating"> <div class="form-floating">
<input class="form-control {{ if .PageError.IsError }} is-invalid {{ end }}" <input class="form-control {{ if .PageError.IsError }} is-invalid {{ end }}"
id="password" id="password"
name="password" name="password"
placeholder="Mot de passe" placeholder="Password"
required required
type="password"> type="password">
<label for="password">Mot de passe</label> <label for="password">Password</label>
<div class="invalid-feedback">{{.PageError.Message}}</div> <div class="invalid-feedback">{{.PageError.Message}}</div>
</div> </div>
<button id="loginFormButton" class="btn btn-primary" disabled type="submit"> <button id="loginFormButton" class="btn btn-primary" disabled type="submit">
<span class="loginFormButtonLoading visually-hidden spinner-border spinner-border-sm" <span class="loginFormButtonLoading visually-hidden spinner-border spinner-border-sm"
role="status"></span> role="status"></span>
<span class="loginFormButtonDefault">Se connecter</span> <span class="loginFormButtonDefault">Log in</span>
</button> </button>
</div> </div>
</form> </form>
@@ -7,7 +7,7 @@
<body class="text-dark"> <body class="text-dark">
{{.Navbar}} {{.Navbar}}
<div class="container mt-3 text-black-50"> <div class="container mt-3 text-black-50">
<h1>Post - édition</h1> <h1>Post - edition</h1>
<form action="posts" method="POST"> <form action="posts" method="POST">
<label for="postContent">Edition</label> <label for="postContent">Edition</label>
<textarea id="postContent" name="postContent"></textarea> <textarea id="postContent" name="postContent"></textarea>
@@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>GohCMS | Installation</title> <title>GohCMS | Setup</title>
{{.Head}} {{.Head}}
<style> <style>
@@ -15,7 +15,7 @@
<div class="d-flex flex-column gap-5 m-auto form-container"> <div class="d-flex flex-column gap-5 m-auto form-container">
<div> <div>
<h1>GohCMS</h1> <h1>GohCMS</h1>
<h2>Création du compte administrateur</h2> <h2>Admin account creation</h2>
</div> </div>
<form action="register" class="" method="POST"> <form action="register" class="" method="POST">
<div class="d-flex flex-column gap-4"> <div class="d-flex flex-column gap-4">
@@ -29,45 +29,45 @@
value="{{.Email}}" value="{{.Email}}"
onblur="validateEmail()"> onblur="validateEmail()">
<label for="email">E-mail</label> <label for="email">E-mail</label>
<div class="invalid-feedback">L'e-mail doit être un e-mail valide.</div> <div class="invalid-feedback">The e-mail must be a valid e-mail.</div>
</div> </div>
<div class="form-floating"> <div class="form-floating">
<input class="form-control {{ if .PageError.IsError }} is-invalid {{ end }}" <input class="form-control {{ if .PageError.IsError }} is-invalid {{ end }}"
id="username" id="username"
name="username" name="username"
placeholder="Nom d'utilisateur" placeholder="Username"
required required
type="text" type="text"
value="{{.Username}}"> value="{{.Username}}">
<label for="username">Nom d'utilisateur</label> <label for="username">Username</label>
<div class="invalid-feedback">Le nom d'utilisateur doit être compris entre 3 et 20 caractères.</div> <div class="invalid-feedback">The username must be between 3 and 20 characters long.</div>
</div> </div>
<div class="form-floating"> <div class="form-floating">
<input class="form-control {{ if .PageError.IsError }} is-invalid {{ end }}" <input class="form-control {{ if .PageError.IsError }} is-invalid {{ end }}"
id="password" id="password"
name="password" name="password"
placeholder="Mot de passe" placeholder="Password"
required required
type="password"> type="password">
<label for="password">Mot de passe</label> <label for="password">Password</label>
<div class="invalid-feedback">Le mot de passe doit contenir au moins 8 caractères.</div> <div class="invalid-feedback">The password must contain at least 8 characters.</div>
</div> </div>
<div class="form-floating"> <div class="form-floating">
<input class="form-control {{ if .PageError.IsError }} is-invalid {{ end }}" <input class="form-control {{ if .PageError.IsError }} is-invalid {{ end }}"
id="confirmPassword" id="confirmPassword"
name="confirmPassword" name="confirmPassword"
placeholder="Confirmation du mot de passe" placeholder="Password confirmation"
required required
type="password" type="password"
onblur="validatePasswordMatch()" onblur="validatePasswordMatch()"
oninput="validatePasswordMatch()"> oninput="validatePasswordMatch()">
<label for="confirmPassword">Confirmation du mot de passe</label> <label for="confirmPassword">Password confirmation</label>
<div class="invalid-feedback">Les mots de passe ne correspondent pas.</div> <div class="invalid-feedback">The passwords do not match.</div>
</div> </div>
<button id="registerFormButton" class="btn btn-primary" disabled type="submit"> <button id="registerFormButton" class="btn btn-primary" disabled type="submit">
<span class="registerFormButtonLoading visually-hidden spinner-border spinner-border-sm" <span class="registerFormButtonLoading visually-hidden spinner-border spinner-border-sm"
role="status"></span> role="status"></span>
<span class="registerFormButtonDefault">Suivant</span> <span class="registerFormButtonDefault">Next</span>
</button> </button>
</div> </div>
</form> </form>
@@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>GohCMS | Installation</title> <title>GohCMS | Setup</title>
{{.Head}} {{.Head}}
<style> <style>
@@ -15,13 +15,13 @@
<div class="d-flex flex-column gap-5 m-auto form-container"> <div class="d-flex flex-column gap-5 m-auto form-container">
<div> <div>
<h1>GohCMS</h1> <h1>GohCMS</h1>
<h2>Installation terminée !</h2> <h2>Setup done!</h2>
</div> </div>
<p>GohCMS est maintenant prêt à être utilisé.</p> <p>GohCMS is now ready.</p>
<button id="finalSetupFormButton" class="btn btn-primary" type="button"> <button id="finalSetupFormButton" class="btn btn-primary" type="button">
<span class="finalSetupFormButtonLoading visually-hidden spinner-border spinner-border-sm" <span class="finalSetupFormButtonLoading visually-hidden spinner-border spinner-border-sm"
role="status"></span> role="status"></span>
<span class="finalSetupFormButtonDefault">Terminer</span> <span class="finalSetupFormButtonDefault">Finish</span>
</button> </button>
</div> </div>
</div> </div>