From 94145c8c3eab0ec14eb3ce7d8d31367f0d596d47 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Mon, 25 Sep 2023 12:44:14 +0200 Subject: [PATCH] Try to bypass gettext cache --- app.php | 3 ++- locale/nocache | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 120000 locale/nocache diff --git a/app.php b/app.php index a87195f..650b6b9 100644 --- a/app.php +++ b/app.php @@ -46,7 +46,8 @@ if ($f3->get('GET.lang')) { changeLanguage($_COOKIE['LANGUAGE'], $f3); } -bindtextdomain('application', $f3->get('ROOT')."/locale/"); +bindtextdomain('application', $f3->get('ROOT')."/locale/nocache"); +bindtextdomain('application', $f3->get('ROOT')."/locale"); textdomain('application'); function changeLanguage($lang, $f3) { diff --git a/locale/nocache b/locale/nocache new file mode 120000 index 0000000..945c9b4 --- /dev/null +++ b/locale/nocache @@ -0,0 +1 @@ +. \ No newline at end of file