Skip to content

Commit 6f1e214

Browse files
12.04.2025_translating documentation
1 parent a56bd8d commit 6f1e214

31 files changed

Lines changed: 520 additions & 158 deletions

File tree

chrono_des_vignes/admin/editions/passages/templates/chrono.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@
274274
if ( !isNaN(data) ) {
275275
send_request(data) // send the request to the server if it is a number
276276
}
277+
}else if (e.code === 'NumpadEnter') {
278+
var data = parseInt(input.value);
279+
input.value = ''
280+
if ( !isNaN(data) ) {
281+
send_request(data) // send the request to the server if it is a number
282+
}
277283
} else {
278284
input.focus() // focus le champ de text
279285
}

chrono_des_vignes/admin/editions/passages/templates/dashboard.html

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
<!--
2+
* Chrono Des Vignes
3+
* a timing system for sports events
4+
*
5+
* Copyright © 2024-2025 Romain Maurer
6+
* This file is part of Chrono Des Vignes
7+
*
8+
* Chrono Des Vignes is free software: you can redistribute it and/or modify it under
9+
* the terms of the GNU General Public License as published by the Free Software Foundation,
10+
* either version 3 of the License, or (at your option) any later version.
11+
*
12+
* Chrono Des Vignes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
* See the GNU General Public License for more details.
15+
* You should have received a copy of the GNU General Public License along with Foobar.
16+
* If not, see <https://www.gnu.org/licenses/>.
17+
*
18+
* You may contact me at chrono-des-vignes@ikmail.com
19+
-->
20+
121
{% extends 'layout.html' %}
222
{% from 'macro.html' import form_field, submit %}
323
{% block import %}
@@ -20,7 +40,7 @@
2040
</ul>
2141
</div>
2242
<div class="d-flex justify-content-between align-items-center">
23-
<span class="badge rounded-pill bg-info me-4">{{ key.key }}</span>
43+
<h2 class="badge rounded-pill bg-info me-4">{{ key.key }}</h2>
2444
<a href="{{ url_for('admin.editions.passages.delete_key', event_name=event_data.name, edition_name=edition_data.name, key_id=key.id) }}">
2545
<i class="fa-regular fa-circle-xmark" style="color: #ff0000;"></i>
2646
</a>

chrono_des_vignes/babel.cfg

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,32 @@
5050
[jinja2: chrono_des_vignes/templates/sidebar.html]
5151
[jinja2: chrono_des_vignes/templates/doc/site/404.html]
5252
[jinja2: chrono_des_vignes/templates/doc/site/index.html]
53+
[jinja2: chrono_des_vignes/templates/doc/site/about/index.html]
54+
[jinja2: chrono_des_vignes/templates/doc/site/contact/index.html]
5355
[jinja2: chrono_des_vignes/templates/doc/site/de/index.html]
56+
[jinja2: chrono_des_vignes/templates/doc/site/de/about/index.html]
57+
[jinja2: chrono_des_vignes/templates/doc/site/de/contact/index.html]
5458
[jinja2: chrono_des_vignes/templates/doc/site/de/example/index.html]
5559
[jinja2: chrono_des_vignes/templates/doc/site/de/organisateurs/index.html]
5660
[jinja2: chrono_des_vignes/templates/doc/site/de/organisateurs/coureurs/index.html]
5761
[jinja2: chrono_des_vignes/templates/doc/site/de/organisateurs/edition/index.html]
5862
[jinja2: chrono_des_vignes/templates/doc/site/de/organisateurs/edition/chronometrage/index.html]
5963
[jinja2: chrono_des_vignes/templates/doc/site/de/organisateurs/edition/dossard/index.html]
64+
[jinja2: chrono_des_vignes/templates/doc/site/de/organisateurs/edition/parcours/index.html]
65+
[jinja2: chrono_des_vignes/templates/doc/site/de/organisateurs/edition/resultats/index.html]
6066
[jinja2: chrono_des_vignes/templates/doc/site/de/organisateurs/parcours/index.html]
6167
[jinja2: chrono_des_vignes/templates/doc/site/de/users/index.html]
6268
[jinja2: chrono_des_vignes/templates/doc/site/en/index.html]
69+
[jinja2: chrono_des_vignes/templates/doc/site/en/about/index.html]
70+
[jinja2: chrono_des_vignes/templates/doc/site/en/contact/index.html]
6371
[jinja2: chrono_des_vignes/templates/doc/site/en/example/index.html]
6472
[jinja2: chrono_des_vignes/templates/doc/site/en/organisateurs/index.html]
6573
[jinja2: chrono_des_vignes/templates/doc/site/en/organisateurs/coureurs/index.html]
6674
[jinja2: chrono_des_vignes/templates/doc/site/en/organisateurs/edition/index.html]
6775
[jinja2: chrono_des_vignes/templates/doc/site/en/organisateurs/edition/chronometrage/index.html]
6876
[jinja2: chrono_des_vignes/templates/doc/site/en/organisateurs/edition/dossard/index.html]
77+
[jinja2: chrono_des_vignes/templates/doc/site/en/organisateurs/edition/parcours/index.html]
78+
[jinja2: chrono_des_vignes/templates/doc/site/en/organisateurs/edition/resultats/index.html]
6979
[jinja2: chrono_des_vignes/templates/doc/site/en/organisateurs/parcours/index.html]
7080
[jinja2: chrono_des_vignes/templates/doc/site/en/users/index.html]
7181
[jinja2: chrono_des_vignes/templates/doc/site/example/index.html]
@@ -74,6 +84,8 @@
7484
[jinja2: chrono_des_vignes/templates/doc/site/organisateurs/edition/index.html]
7585
[jinja2: chrono_des_vignes/templates/doc/site/organisateurs/edition/chronometrage/index.html]
7686
[jinja2: chrono_des_vignes/templates/doc/site/organisateurs/edition/dossard/index.html]
87+
[jinja2: chrono_des_vignes/templates/doc/site/organisateurs/edition/parcours/index.html]
88+
[jinja2: chrono_des_vignes/templates/doc/site/organisateurs/edition/resultats/index.html]
7789
[jinja2: chrono_des_vignes/templates/doc/site/organisateurs/parcours/index.html]
7890
[jinja2: chrono_des_vignes/templates/doc/site/users/index.html]
7991
[jinja2: chrono_des_vignes/templates/error/simple_error.html]

chrono_des_vignes/routes.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@ def change_lang(lang):
6464
return redirect(next)
6565

6666
@app.route('/doc/<path:path>')
67+
@app.route('/doc/<lang>/<path:path>')
6768
@app.route('/doc/')
68-
def doc(path=''):
69+
def doc(path='', lang=''):
6970
if not os.path.exists(os.path.join(app.root_path,app.template_folder, 'doc/site/index.html' if path == '' else f'doc/site/{path}index.html')):
70-
return abort(404)
71-
return render_template('doc/site/index.html' if path == '' else f'doc/site/{path}index.html')
71+
return render_template('doc/site/404.html')
72+
lang=lang+"/" if lang else ""
73+
return render_template(f'doc/site/{lang}index.html' if path == '' else f'doc/site/{lang}{path}index.html')
7274

7375
@app.route('/doc/assets/<path:path>')
7476
def assets_doc_files(path):

chrono_des_vignes/templates/doc/docs/about.de.md

Whitespace-only changes.

chrono_des_vignes/templates/doc/docs/about.fr.md

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Um mich zu kontaktieren, schreiben Sie mir eine E-Mail an die Adresse [chrono-des-vignes@ikmail.com](mailto:chrono-des-vignes@ikmail.com)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pour me contacter écriver moi un email à l'adresse [chrono-des-vignes@ikmail.com](mailto:chrono-des-vignes@ikmail.com)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Willkommen in der Dokumentation von Chrono des Vignes
2+
3+
Um die Seite zu testen:
4+
[Chrono des Vignes](https://chronodesvignes.eu.pythonanywhere.com/)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Bienvenue sur la documentation du Chrono des Vignes
22

3-
[Chrono des Vignes](http://localhost:5000/)
3+
[Chrono des Vignes](https://chronodesvignes.eu.pythonanywhere.com/)
44

55
Pour tester le site:

0 commit comments

Comments
 (0)