Add multilingual support (DE default, EN under /en/)

This commit is contained in:
chriz committed 2026-10-23 13:06:56 +02:00
1 parent 01ea3bd07a
commit 1e33c525f1
21 files changed
+855 -443

No files matched your search

+7 -4
View File
@@ -1,10 +1,13 @@
<?php $isEn = ($lang ?? 'de') === 'en'; ?>
<div style="text-align: center; padding: 3rem 1rem;">
<div aria-hidden="true" style="width: 72px; height: 72px; background: var(--danger-bg); color: var(--danger); border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;">
<svg aria-hidden="true" focusable="false" style="width: 36px; height: 36px; fill: currentColor;" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>
</div>
<h1 style="margin-bottom: 1rem;">Seite nicht gefunden (404)</h1>
<h1 style="margin-bottom: 1rem;"><?= $isEn ? 'Page Not Found (404)' : 'Seite nicht gefunden (404)' ?></h1>
<p style="font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto 2rem;">
Die von Ihnen aufgerufene URL ist leider nicht verfügbar oder wurde verschoben.
<?= $isEn
? 'The URL you requested is unfortunately unavailable or has been moved.'
: 'Die von Ihnen aufgerufene URL ist leider nicht verfügbar oder wurde verschoben.' ?>
</p>
<a href="/" class="btn btn-primary">Zur Startseite zurückkehren</a>
</div>
<a href="<?= Helper::url('/', $lang ?? 'de') ?>" class="btn btn-primary"><?= $isEn ? 'Return to Home Page' : 'Zur Startseite zurückkehren' ?></a>
</div>