Skip to content

Commit a8abff8

Browse files
committed
Add fixes and action confirmation to French translation
1 parent 26adbea commit a8abff8

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

templates/FR/newVkey.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h2>Gestion des clés de fédération</h2>
2020
<p><label for="">Verification Key (facultatif)</label></p>
2121
<input type="text" name="vkey" value="">
2222
</p>
23-
<input type="submit" value="Submit">
23+
<input type="submit" value="Valider">
2424
</form>
2525
<p>Instructions : Il vous suffit de saisir l’URL de leur bibliothèque. uBiblio tentera de récupérer automatiquement leur clé de vérification (une clé publique). uBiblio ignorera cette étape si vous spécifiez vous-même une clé.</p>
2626

templates/FR/userManagement.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ <h2 style="margin-top:25px; margin-bottom:15px;">Liste d'Utilisateurs</h2>
4242
</section>
4343

4444

45+
4546
<script>
4647
//Default view is to show first 50 users until the admin enters something into search
4748
var pagination=0;
@@ -58,15 +59,19 @@ <h2 style="margin-top:25px; margin-bottom:15px;">Liste d'Utilisateurs</h2>
5859
$("#tablebody").empty();
5960
$("#pagination").empty();
6061
itemdata.forEach(function(item) {
61-
$("#tablebody").append('<tr><td>'+item.username+'</td><td>'+item.isAdmin+'</td><td><a href= /promote/'+item.id+'>Changer en Admin</a>&nbsp;&nbsp;<a href=/demote/'+item.id+'>Retirer Droits Admin</a>&nbsp;&nbsp;<a href=/deleteUser/'+item.id+'>Supprimer</a></td></tr>');
62+
$("#tablebody").append('<tr><td>'+item.username+'</td><td>'+item.isAdmin+'</td><td><a href= /promote/'+item.id+'>Changer en Admin</a>&nbsp;&nbsp;<a href=/demote/'+item.id+'>Retirer Droits Admin</a>&nbsp;&nbsp;<a href="/deleteUser/'+item.id+'" onclick="return confirm(&#39;Êtes-vous sûr?&#39;);">Supprimer</a></td></tr>');
6263
});
6364

6465
if (itemdata.length === 0){
65-
$("#tablebody").append('<tr><td>' + "Aucun résultat" + '</td><td></td></tr>');
66+
$("#tablebody").append('<tr><td>' + "No results found" + '</td><td></td></tr>');
6667
}
68+
if (pagination > 0){
69+
$("#pagination").append("<button onclick='previous();'>Previous</button>");
70+
}
6771

68-
69-
72+
if(itemdata.length > 49){
73+
$("#pagination").append("<button onclick='next();'>Next</button>");
74+
}
7075

7176
});}
7277

ubiblio/vars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
USE_REDIS = os.environ.get("USE_REDIS", "true").lower() == "true"
99
REDIS_URL = os.environ.get("REDIS_URI", "redis://localhost")
1010

11-
LANGUAGE = os.environ.get("LANGUAGE", "")
11+
LANGUAGE = os.environ.get("LANGUAGE", "FR")
1212

1313
TOKEN_TTL = int(os.environ.get("ACCESS_TOKEN_EXPIRE_MINUTES", "120"))
1414

0 commit comments

Comments
 (0)