feat: Website und Hub zweisprachig (Deutsch/Englisch)
Website (rinkplanner.programmschmiede.de) liegt jetzt im Repo unter web/: Sprachweiche nach Accept-Language (der User-Agent enthält keine Sprache), /de/ und /en/ als eigene URLs mit hreflang, Cookie für die manuelle Wahl, Texte in web/i18n.php, Markup in web/template.php. Deployment über tools/deploy_web.sh (--sync, --check, --all); /index.html leitet weiter. Hub: optionale englische Oberfläche über den DE/EN-Umschalter, Cookie RHUB_LANG, Route /language. Alle Texte (Views, Meldungen, Validierung, API-messages) stehen in hub/app/i18n_strings.php und laufen über t(); Datum und Zahlen folgen der Sprache. Die API behält ihre code-Felder und antwortet ohne Cookie weiter deutsch. deploy_hub.sh --check prüft jetzt Schlüsselparität und fehlende t()-Schlüssel. Doku: docs/website.md neu, docs/hub.md und AGENTS.md ergänzt.
This commit is contained in:
parent
6c8dc942e8
commit
9819311403
41 changed files with 2801 additions and 326 deletions
|
|
@ -1,20 +1,27 @@
|
|||
<?php /** @var array $entries */ ?>
|
||||
<div class="page-head">
|
||||
<div>
|
||||
<h1>Verwaltung</h1>
|
||||
<p class="muted">Die letzten <?= count($entries) ?> Ereignisse.</p>
|
||||
<h1><?= e(t('admin.title')) ?></h1>
|
||||
<p class="muted"><?= e(t('admin.audit_lede', ['count' => count($entries)])) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php $active = 'audit'; require HUB_ROOT . '/views/_admin_nav.php'; ?>
|
||||
|
||||
<section class="panel">
|
||||
<?php if (!$entries): ?>
|
||||
<p class="muted">Noch keine Einträge.</p>
|
||||
<p class="muted"><?= e(t('admin.audit_empty')) ?></p>
|
||||
<?php else: ?>
|
||||
<div class="table-wrap">
|
||||
<table class="list compact">
|
||||
<thead>
|
||||
<tr><th>Zeit</th><th>Akteur</th><th>Aktion</th><th>Objekt</th><th>Detail</th><th>IP</th></tr>
|
||||
<tr>
|
||||
<th><?= e(t('table.time')) ?></th>
|
||||
<th><?= e(t('table.actor')) ?></th>
|
||||
<th><?= e(t('table.action')) ?></th>
|
||||
<th><?= e(t('table.subject')) ?></th>
|
||||
<th><?= e(t('table.detail')) ?></th>
|
||||
<th><?= e(t('table.ip')) ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($entries as $entry): ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue