pub / rememori

Simple file-based bookmarking and notes application
git clone https://src.jayvii.de/pub/rememori.git
Home | Log | Files | Exports | Refs | README | RSS

commit b34c77b0ff4f84f66711b4c7e513d1aa8614c119
parent adb97dc3c63f5dce0688e4eb2e842ed97b66f41b
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 26 Oct 2024 13:00:54 +0200

feat: Add German translation

Diffstat:
Mconfig/i18n.php | 21++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/config/i18n.php b/config/i18n.php @@ -2,7 +2,7 @@ /* Get accepted languages by client, fallback to english */ $lang = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2); -$acceptLang = ["en"]; +$acceptLang = ["en", "de"]; $lang = in_array($lang, $acceptLang) ? $lang : "en"; if ($lang == "en") { @@ -23,5 +23,24 @@ if ($lang == "en") { $GLOBALS["i18n_cookie_session"] = "No, only temporarily"; $GLOBALS["i18n_cookie_long"] = "Yes, keep me logged in for 30 days"; } +if ($lang == "de") { + $GLOBALS["i18n_note"] = "Notiz"; + $GLOBALS["i18n_category"] = "Kategorie"; + $GLOBALS["i18n_categories"] = "Kategorien"; + $GLOBALS["i18n_filename"] = "Dateiname"; + $GLOBALS["i18n_save"] = "Speichern"; + $GLOBALS["i18n_edit"] = "Ändern"; + $GLOBALS["i18n_delete"] = "Löschen"; + $GLOBALS["i18n_new"] = "Neue Notiz"; + $GLOBALS["i18n_list"] = "Alle"; + $GLOBALS["i18n_login"] = "Login"; + $GLOBALS["i18n_logout"] = "Logout"; + $GLOBALS["i18n_user"] = "Name der:die Nutzer:in"; + $GLOBALS["i18n_pass"] = "Passwort"; + $GLOBALS["i18n_cookie"] = "Eingelogged bleiben (das setzt einen Cookie)"; + $GLOBALS["i18n_cookie_session"] = "Nein, nur temporär"; + $GLOBALS["i18n_cookie_long"] = "Ja, lass mich für 30 Tage eingelogged"; +} + ?>