mirror of
https://github.com/24eme/signaturepdf
synced 2024-06-03 14:32:13 +02:00
Bug translation
This commit is contained in:
parent
77a1dae453
commit
753c2ba85f
5
app.php
5
app.php
|
@ -52,10 +52,11 @@ textdomain('application');
|
||||||
function changeLanguage($lang, $f3) {
|
function changeLanguage($lang, $f3) {
|
||||||
$_SESSION['LANGUAGE'] = $lang;
|
$_SESSION['LANGUAGE'] = $lang;
|
||||||
setcookie("LANGUAGE", $lang, strtotime('+1 year'));
|
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 /',
|
$f3->route('GET /',
|
||||||
function($f3) {
|
function($f3) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!doctype html>
|
<!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>
|
<head>
|
||||||
<!-- Required meta tags -->
|
<!-- Required meta tags -->
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
|
Loading…
Reference in a new issue