From 01a01ca11e77a5a80d46bf179304767c800137d2 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Mon, 25 Sep 2023 16:33:26 +0200 Subject: [PATCH] Plus besoin de nocache --- .editorconfig | 2 ++ app.php | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index 523c00d..24171d4 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,3 +13,5 @@ trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false +[Makefile] +indent_style = tab diff --git a/app.php b/app.php index 354f687..145cd18 100644 --- a/app.php +++ b/app.php @@ -46,9 +46,10 @@ if ($f3->get('GET.lang')) { changeLanguage($_COOKIE['LANGUAGE'], $f3); } -bindtextdomain('application', $f3->get('ROOT')."/locale/nocache"); -bindtextdomain('application', $f3->get('ROOT')."/locale"); -textdomain('application'); +$domain = basename(glob($f3->get('ROOT')."/locale/application_*.pot")[0], '.pot'); + +bindtextdomain($domain, $f3->get('ROOT')."/locale"); +textdomain($domain); function changeLanguage($lang, $f3) { $_SESSION['LANGUAGE'] = $lang;