mirror of
https://github.com/24eme/signaturepdf
synced 2024-05-21 07:06:41 +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) {
|
||||
$_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) {
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue