diff --git a/CONTRIBUTING.fr.md b/CONTRIBUTING.fr.md index a09ad72..11a7158 100644 --- a/CONTRIBUTING.fr.md +++ b/CONTRIBUTING.fr.md @@ -32,6 +32,7 @@ Si vous touchez à Docker ou à nginx, lancez `docker compose up -d --build` pui ## Conventions - L'interface est en français, en anglais et en allemand. Tout texte visible passe par `t()` de `frontend/src/i18n/index.js` : le texte français sert de clé, sa traduction anglaise va dans `frontend/src/i18n/en/`. Un test échoue si une traduction anglaise manque. Les autres langues retombent sur l'anglais : un nouveau texte n'a besoin que du français et de l'anglais. +- Chaque langue s'adresse à l'utilisateur comme le font d'habitude les applis dans cette langue : « vous » en français, « du » en allemand. Une nouvelle traduction suit l'usage de sa langue, pas celui du français. - Pas de nouvelle dépendance lourde (framework, bibliothèque d'interface, service externe) sans en avoir discuté dans une issue. - La promesse du README tient : pas de publicité, et aucune mesure d'audience activée par défaut sur une instance auto-hébergée. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 65e9e78..e12b038 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -32,6 +32,7 @@ If you touch Docker or nginx, run `docker compose up -d --build` then `bash tool ## Conventions - The interface is in French, English and German. Every visible text goes through `t()` from `frontend/src/i18n/index.js`, with the French text as the key and its English entry in `frontend/src/i18n/en/`. A test fails if an English entry is missing. Other languages fall back to English, so a new text only needs French and English. +- Each language addresses the user the way apps usually do in that language: "vous" in French, "du" in German. A new translation follows the habit of its language, not the French one. - No new heavy dependency (framework, UI library, external service) without discussing it in an issue. - The README promise holds: no ads, and no analytics turned on by default on a self-hosted instance. diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 364673a..d76eec7 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -28,6 +28,7 @@ import ContextualNavbar from './components/navbar/ContextualNavbar' import ZoomControl from './components/ZoomControl' import ExpandableSearch from './components/search/ExpandableSearch' import { t, dateLocale } from './i18n/index.js' +import { withShortcut } from './utils/shortcuts.js' import { createParentChildLink, updateParentChildLink, @@ -3510,7 +3511,7 @@ function App() { {undoable.message && (
{undoable.message} - +
)} {draftNotice && !undoable.message && !contribSuccess && !showContribModal && ( diff --git a/frontend/src/components/AdminPanel.jsx b/frontend/src/components/AdminPanel.jsx index 287d0aa..df59fdd 100644 --- a/frontend/src/components/AdminPanel.jsx +++ b/frontend/src/components/AdminPanel.jsx @@ -652,7 +652,7 @@ const AdminPanel = ({
{t('Sauvegarde complète')} -

{t('Toutes les données et les médias. Bientôt disponible.')}

+

{t('Toutes les données et les médias.')} {t('Bientôt disponible.')}