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 96ad230a982f97a9f538188656d993f1c6882a2d
parent 1f5e301f4feeabae6d63b6051360029db62c5dbe
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Fri, 25 Oct 2024 12:36:24 +0200

feat: multilanguage labels

Diffstat:
Aconfig/i18n.php | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/config/i18n.php b/config/i18n.php @@ -0,0 +1,17 @@ +<?php + +/* Get accepted languages by client, fallback to english */ +$lang = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2); +$acceptLang = ["en"]; +$lang = in_array($lang, $acceptLang) ? $lang : "en"; + +if ($lang == "en") { + $GLOBALS["i18n_note"] = "Note"; + $GLOBALS["i18n_category"] = "Category"; + $GLOBALS["i18n_filename"] = "File name"; + $GLOBALS["i18n_save"] = "Save"; + $GLOBALS["i18n_ctime"] = "Last edited"; + $GLOBALS["i18n_edit"] = "Edit"; +} + +?>