Translated to french and bugfixes

This commit is contained in:
simon
2018-05-16 17:01:04 -04:00
parent 3b2d2bdd8d
commit f76c935c49
15 changed files with 296 additions and 234 deletions

View File

@@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% set active_page = "directory" %}
{% block title %}An excellent title{% endblock title %}
{% block title %}{{ directory.name }}{% endblock title %}
{% block body %}
@@ -63,40 +63,40 @@
<div class="card">
<div class="card-header">Summary</div>
<div class="card-header">Sommaire</div>
<div class="card-body">
<table class="info-table">
<tr onclick="modifyDisplayName()">
<th style="width: 20%">Display name</th>
<th style="width: 20%">Nom</th>
<td>
<pre id="display-name" title="Click to update">{{ directory.name }}</pre>
<pre id="display-name" title="Cliquer pour mettre à jour">{{ directory.name }}</pre>
</td>
</tr>
<tr onclick="modifyPath()">
<th style="width: 20%">Path</th>Task
<th style="width: 20%">Chemin</th>
<td>
<pre id="path" title="Click to update">{{ directory.path }}</pre>
<pre id="path" title="Cliquer pour mettre à jour">{{ directory.path }}</pre>
</td>
</tr>
<tr>
<th style="width: 20%">Enabled</th>
<th style="width: 20%">Activé</th>
<td>
<form action="/directory/{{ directory.id }}/update" style="display: inline;margin-left: 6px;">
<input type="hidden" name="enabled" value="{{ "0" if directory.enabled else "1" }}">
<button class="btn btn-sm {{ "btn-danger" if directory.enabled else "btn-success" }}">
<i class="far {{ "fa-check-square" if directory.enabled else "fa-square" }}"></i>
{{ "Disable" if directory.enabled else "Enable" }}
{{ "Désactiver" if directory.enabled else "Activer" }}
</button>
</form>
</td>
</tr>
<tr>
<th>Thumbnail cache size</th>
<td><pre>{{ tn_size_formatted }} ({{ tn_size }} bytes)</pre></td>
<th>Taille des miniatures</th>
<td><pre>{{ tn_size_formatted }} ({{ tn_size }} octets)</pre></td>
</tr>
</table>
</div>
@@ -112,16 +112,16 @@
<form action="/task/add" class="p-2">
<input type="hidden" value="1" name="type">
<input type="hidden" value="{{ directory.id }}" name="directory">
<button class="btn btn-primary" href="/task/" value="Generate thumbnails">
<i class="fas fa-book"></i> Generate index
<button class="btn btn-primary" href="/task/">
<i class="fas fa-book"></i> Générer l'index
</button>
</form>
<form action="/task/add" class="p-2">
<input type="hidden" value="2" name="type">
<input type="hidden" value="{{ directory.id }}" name="directory">
<button class="btn btn-primary" href="/task/" value="Generate thumbnails">
<i class="far fa-images"></i> Generate thumbnails
<button class="btn btn-primary" href="/task/">
<i class="far fa-images"></i> Générer les miniatures
</button>
</form>
@@ -129,8 +129,8 @@
<button class="btn dropdown-toggle btn-danger" data-toggle="dropdown">Action</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="/directory/{{ directory.id }}/del">Delete directory</a>
<a class="dropdown-item" href="/directory/{{ directory.id }}/reset">Reset to default settings</a>
<a class="dropdown-item" href="/directory/{{ directory.id }}/del">Supprimer le dossier</a>
<a class="dropdown-item" href="/directory/{{ directory.id }}/reset">Réinitialiser aux paramètres par défaut</a>
</div>
</div>
</div>
@@ -140,13 +140,13 @@
</div>
<div class="card">
<div class="card-header">Options <a href="#" style="float:right">Learn more <i class="fas fa-external-link-alt"></i></a></div>
<div class="card-header">Options <a href="#" style="float:right">En savoir plus <i class="fas fa-external-link-alt"></i></a></div>
<div class="card-body">
<table class="info-table table-striped table-hover">
<thead>
<tr>
<th>Option</th>
<th>Value</th>
<th>Valeur</th>
</tr>
</thead>
<tbody>
@@ -154,7 +154,7 @@
<tr>
<td style="width: 30%"><span>{{ option.key }}</span></td>
<td onclick="modifyVal({{ option.id }}, '{{ option.key }}')" title="Click to update"><pre id="val-{{ option.id }}">{{ option.value }}</pre></td>
<td onclick="modifyVal({{ option.id }}, '{{ option.key }}')" title="Cliquer pour modifier"><pre id="val-{{ option.id }}">{{ option.value }}</pre></td>
</tr>
{% endfor %}