forked from tohe/wmdeit_kaform
fixes to run on ubuntu with utf8
This commit is contained in:
parent
891b04e0dc
commit
b8e65e9c98
27
ka.php
27
ka.php
|
@ -2,23 +2,26 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$lang=$_GET['lang'];
|
$lang=$_GET['lang'];
|
||||||
if ( !in_array ($lang, array('en_US'))){
|
if ( in_array ($lang, array('en_US'))){
|
||||||
$locale = $lang;
|
|
||||||
|
$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_MESSAGES, $loc);
|
||||||
setlocale(LC_ALL, $locale);
|
setlocale(LC_ALL, $loc);
|
||||||
|
|
||||||
$results = putenv("LC_ALL=$locale");
|
$results = putenv("LC_ALL=$loc");
|
||||||
$results = putenv("LC_MESSAGES=$locale");
|
$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"></textarea>
|
||||||
</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"></textarea>
|
||||||
</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;
|
||||||
|
|
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: apache 24\n"
|
"Project-Id-Version: apache 24\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-07-06 19:03+0200\n"
|
"POT-Creation-Date: 2021-07-06 15:07+0000\n"
|
||||||
"PO-Revision-Date: 2021-07-06 18:21+0200\n"
|
"PO-Revision-Date: 2021-07-06 18:21+0200\n"
|
||||||
"Last-Translator: Charlie & <root@bsd>\n"
|
"Last-Translator: Charlie & <root@bsd>\n"
|
||||||
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
|
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-07-06 19:03+0200\n"
|
"POT-Creation-Date: 2021-07-06 15:07+0000\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
|
Loading…
Reference in New Issue