1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-05-02 06:02:46 +02:00

Plus besoin de nocache

This commit is contained in:
Vincent LAURENT 2023-09-25 16:33:26 +02:00
parent dfc26100e4
commit 01a01ca11e
2 changed files with 6 additions and 3 deletions

View file

@ -13,3 +13,5 @@ trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab

View file

@ -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;