From ea208a89b6414775f8ef38c071de577173cfd7db Mon Sep 17 00:00:00 2001 From: bergware Date: Tue, 12 May 2020 07:50:52 +0200 Subject: [PATCH] Multi-language support --- {plugins/dynamix/help => languages/en_US}/helptext.txt | 0 plugins/dynamix/include/Translations.php | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename {plugins/dynamix/help => languages/en_US}/helptext.txt (100%) diff --git a/plugins/dynamix/help/helptext.txt b/languages/en_US/helptext.txt similarity index 100% rename from plugins/dynamix/help/helptext.txt rename to languages/en_US/helptext.txt diff --git a/plugins/dynamix/include/Translations.php b/plugins/dynamix/include/Translations.php index 317adf66a..4afceb00e 100644 --- a/plugins/dynamix/include/Translations.php +++ b/plugins/dynamix/include/Translations.php @@ -69,8 +69,8 @@ $language = []; $locale = $_SESSION['locale']; $return = "function _(t){return t;}"; $jscript = "$docroot/webGui/javascript/translate.en_US.js"; -$root = "$docroot/webGui/help/helptext.txt"; -$help = "$docroot/webGui/help/helptext.dot"; +$root = "$docroot/languages/en_US/helptext.txt"; +$help = "$docroot/languages/en_US/helptext.dot"; if ($locale) { $text = "$docroot/languages/$locale/translations.txt";