From 03845a2d7927c3380ea115bab5b2533feac89ee0 Mon Sep 17 00:00:00 2001 From: Banana Date: Fri, 19 Apr 2024 19:45:11 +0200 Subject: [PATCH] i18n fix in menu and added correct syntax in example config file Signed-off-by: Banana --- documentation/i18n.md | 5 +++++ webclient/config/config.php.default | 2 +- webclient/view/default/system/menu.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/documentation/i18n.md b/documentation/i18n.md index 6f8ba37..9dc3e43 100644 --- a/documentation/i18n.md +++ b/documentation/i18n.md @@ -11,6 +11,11 @@ the format of the constant in the `config.php` is an array. `iso3 => value, iso2 Additional to the usual ini format, there is the possibility to use an existing key as a value. +# Available languages + ++ English `iso3 = eng` `iso2 = en` ++ German `iso3 = deu` `iso2 = de` + ## How to create a new language file Lookup the correct [ISO 639-3](https://iso639-3.sil.org/code_tables/639/data) code and create a file with this code diff --git a/webclient/config/config.php.default b/webclient/config/config.php.default index f039dfe..6aa3a8d 100644 --- a/webclient/config/config.php.default +++ b/webclient/config/config.php.default @@ -28,7 +28,7 @@ const TIMEZONE = '~timezone~'; # language setting # see i18n.md file for syntax -const FRONTEND_LANGUAGE = 'eng'; +const FRONTEND_LANGUAGE = array('iso3' => 'eng', 'iso2' => 'en'); # path settings const PATH_ABSOLUTE = '~pathabsolute~'; diff --git a/webclient/view/default/system/menu.php b/webclient/view/default/system/menu.php index 88c9a69..cf2ecd2 100644 --- a/webclient/view/default/system/menu.php +++ b/webclient/view/default/system/menu.php @@ -33,7 +33,7 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);