|
@ -2,23 +2,26 @@ |
|
|
<?php |
|
|
<?php |
|
|
|
|
|
|
|
|
$lang=$_GET['lang']; |
|
|
$lang=$_GET['lang']; |
|
|
if ( !in_array ($lang, array('en_US'))){ |
|
|
|
|
|
$locale = $lang; |
|
|
|
|
|
|
|
|
if ( in_array ($lang, array('en_US'))){ |
|
|
|
|
|
|
|
|
|
|
|
$loc = "$lang".".utf8"; |
|
|
|
|
|
$loc1 = $lang; |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
$locale = "de_DE"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$loc = "de_DE"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# $locale = "en_US";
|
|
|
|
|
|
$domain = "messages"; |
|
|
$domain = "messages"; |
|
|
|
|
|
|
|
|
setlocale(LC_MESSAGES, $locale); |
|
|
|
|
|
setlocale(LC_ALL, $locale); |
|
|
|
|
|
|
|
|
setlocale(LC_MESSAGES, $loc); |
|
|
|
|
|
setlocale(LC_ALL, $loc); |
|
|
|
|
|
|
|
|
$results = putenv("LC_ALL=$locale"); |
|
|
|
|
|
$results = putenv("LC_MESSAGES=$locale"); |
|
|
|
|
|
|
|
|
$results = putenv("LC_ALL=$loc"); |
|
|
|
|
|
$results = putenv("LC_MESSAGES=$loc"); |
|
|
$results = bindtextdomain($domain,"./locale"); |
|
|
$results = bindtextdomain($domain,"./locale"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
?>
|
|
|
<html > |
|
|
<html > |
|
@ -203,7 +206,7 @@ Grund für abweichende kontoinhabende Person"> |
|
|
</div> |
|
|
</div> |
|
|
<div class="is-col "> |
|
|
<div class="is-col "> |
|
|
<?php |
|
|
<?php |
|
|
$ct = @file_get_contents( "./locale/$locale/h1.php"); |
|
|
|
|
|
|
|
|
$ct = @file_get_contents( "./locale/$loc1/h1.php"); |
|
|
if ($ct==false) |
|
|
if ($ct==false) |
|
|
$ct = file_get_contents( "h1.php"); |
|
|
$ct = file_get_contents( "h1.php"); |
|
|
echo $ct; |
|
|
echo $ct; |
|
@ -283,7 +286,7 @@ Grund für abweichende kontoinhabende Person"> |
|
|
</div> |
|
|
</div> |
|
|
<div class="is-col"> |
|
|
<div class="is-col"> |
|
|
<?php |
|
|
<?php |
|
|
$ct = @file_get_contents( "./locale/$locale/h2.php"); |
|
|
|
|
|
|
|
|
$ct = @file_get_contents( "./locale/$loc1/h2.php"); |
|
|
if ($ct==false) |
|
|
if ($ct==false) |
|
|
$ct = file_get_contents( "h2.php"); |
|
|
$ct = file_get_contents( "h2.php"); |
|
|
echo $ct; |
|
|
echo $ct; |
|
|