Translate the whole project to English and fix outdated comments and help

Comments, docstrings, logs, CLI help, map UI, legends, PDF sheet, scripts,
compose files and AGENTS.md are now English. Data keys stay unchanged
(relief_oriente, densite_sol, visualisations/, API JSON keys, link params).
Wrong comments and help defaults found along the way are corrected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Antoine
2026-09-27 23:16:45 +02:00
parent cc1c22d2b8
commit fb892ea9f2
52 changed files with 4356 additions and 4323 deletions

View File

@ -1,9 +1,9 @@
"""Interface de la carte à tuiles XYZ (image lidar-maps).
"""XYZ tile map interface (served by mapserve, in both images).
Le HTML, le CSS et le JS vivent dans `web/` (vrais fichiers, relus à l'import) ;
`write_map_assets()` les bâche dans l'image au build. La page est une coquille
minimale : tout l'état vient de `/api/map/meta`, les couches sont des `L.tileLayer`
standard — le navigateur gère LOD, cache et animation.
The HTML, CSS and JS live in `web/` (real files, read at import time);
`write_map_assets()` bakes them into the image at build time. The page is a
minimal shell: all state comes from `/api/map/meta`, the layers are standard
`L.tileLayer`s — the browser handles LOD, caching and animation.
"""
import hashlib
@ -15,7 +15,7 @@ WEB_DIR = Path(__file__).resolve().parent / "web"
def _read_web(name):
"""Fichier de l'interface (HTML/CSS/JS), lu une fois à l'import."""
"""Interface file (HTML/CSS/JS), read once at import time."""
return (WEB_DIR / name).read_text(encoding="utf-8")
@ -25,12 +25,12 @@ _MAP_JS = _read_web("map.js")
def ui_version():
"""Hash court du CSS+JS : sert d'URL de version pour les assets."""
"""Short hash of CSS+JS: used as the version in asset URLs."""
return hashlib.sha1((_MAP_CSS + _MAP_JS).encode("utf-8")).hexdigest()[:10]
def write_map_assets(assets_dir):
"""Écrit app.css / app.js (+ Leaflet vendorisé) dans `assets_dir`."""
"""Writes app.css / app.js (+ vendored Leaflet) into `assets_dir`."""
import shutil
assets_dir = Path(assets_dir)
assets_dir.mkdir(parents=True, exist_ok=True)
@ -46,7 +46,7 @@ def write_map_assets(assets_dir):
def render_html():
"""Coquille HTML (données chargées par /api/map/meta)."""
"""HTML shell (data loaded from /api/map/meta)."""
return _MAP_HTML.replace("__ASSETS_V__", ui_version())