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

Bug translation

This commit is contained in:
Vincent LAURENT 2023-09-22 17:15:25 +02:00
parent 77a1dae453
commit 753c2ba85f
2 changed files with 4 additions and 3 deletions

View file

@ -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) {

View file

@ -1,5 +1,5 @@
<!doctype html>
<html lang="<?php echo $LANGUAGE ?>"<?php if($LANGUAGE == 'ar'): ?> dir="ltr" style="direction: ltr;"<?php endif;?>>
<html lang="<?php echo $TRANSLATION_LANGUAGE ?>"<?php if($TRANSLATION_LANGUAGE == 'ar'): ?> dir="ltr" style="direction: ltr;"<?php endif;?>>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">