feat: sélecteur de langue dans settings.php — persisté par compte en BDD
Deploy to Pacha Family / deploy (push) Failing after 3s

- Sélecteur FR/EN/CA déplacé du header vers settings.php
- Colonne lang ajoutée à users (meta DB) — langue sauvegardée par compte
- Login charge automatiquement la langue préférée de l'utilisateur
- Header nettoyé du sélecteur de langue

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
perco
2026-05-11 14:51:35 +02:00
co-authored by Claude Sonnet 4.6
parent 94d85dc8da
commit 6acda4ab25
4 changed files with 32 additions and 8 deletions
-7
View File
@@ -54,13 +54,6 @@ $currentLang = $_SESSION['app_lang'] ?? 'fr';
<div class="pf-header-right">
<div style="display: flex; align-items: center; gap: 8px;">
<a href="<?= getLangUrl('fr') ?>" style="text-decoration:none; font-weight:bold; font-size:1rem; color: <?= $currentLang === 'fr' ? '#2563eb' : '#94a3b8' ?>;" title="Français">FR</a>
<span style="color: #cbd5e1;">|</span>
<a href="<?= getLangUrl('ca') ?>" style="text-decoration:none; font-weight:bold; font-size:1rem; color: <?= $currentLang === 'ca' ? '#f59e0b' : '#94a3b8' ?>;" title="Català">CA</a>
<span style="color: #cbd5e1;">|</span>
<a href="<?= getLangUrl('en') ?>" style="text-decoration:none; font-weight:bold; font-size:1rem; color: <?= $currentLang === 'en' ? '#16a34a' : '#94a3b8' ?>;" title="English">EN</a>
</div>
<?php if (isset($_SESSION['user'])): ?>
<div class="pf-desktop-actions" style="display: flex; align-items: center; gap: 10px; border-left: 1px solid #cbd5e1; padding-left: 15px;">