From 753c2ba85f5032fcfc83e8ab0d59b3e441b1d78a Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Fri, 22 Sep 2023 17:15:25 +0200 Subject: [PATCH] Bug translation --- app.php | 5 +++-- templates/signature.html.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app.php b/app.php index f6998c3..9415244 100644 --- a/app.php +++ b/app.php @@ -52,10 +52,11 @@ textdomain('application'); function changeLanguage($lang, $f3) { $_SESSION['LANGUAGE'] = $lang; setcookie("LANGUAGE", $lang, strtotime('+1 year')); - getenv("LANGUAGE=$lang"); + putenv("LANGUAGE=$lang"); + $f3->set('LANGUAGE', $lang); } -$f3->set('LANGUAGE', _("en")); +$f3->set('TRANSLATION_LANGUAGE', _("en")); $f3->route('GET /', function($f3) { diff --git a/templates/signature.html.php b/templates/signature.html.php index 98a3f6c..53c6017 100644 --- a/templates/signature.html.php +++ b/templates/signature.html.php @@ -1,5 +1,5 @@ - dir="ltr" style="direction: ltr;"> + dir="ltr" style="direction: ltr;">