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
|
||||
|
||||
$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
|
||||
$locale = "de_DE";
|
||||
|
||||
$loc = "de_DE";
|
||||
|
||||
|
||||
|
||||
# $locale = "en_US";
|
||||
$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");
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<html >
|
||||
|
@ -203,7 +206,7 @@ Grund für abweichende kontoinhabende Person"></textarea>
|
|||
</div>
|
||||
<div class="is-col ">
|
||||
<?php
|
||||
$ct = @file_get_contents( "./locale/$locale/h1.php");
|
||||
$ct = @file_get_contents( "./locale/$loc1/h1.php");
|
||||
if ($ct==false)
|
||||
$ct = file_get_contents( "h1.php");
|
||||
echo $ct;
|
||||
|
@ -283,7 +286,7 @@ Grund für abweichende kontoinhabende Person"></textarea>
|
|||
</div>
|
||||
<div class="is-col">
|
||||
<?php
|
||||
$ct = @file_get_contents( "./locale/$locale/h2.php");
|
||||
$ct = @file_get_contents( "./locale/$loc1/h2.php");
|
||||
if ($ct==false)
|
||||
$ct = file_get_contents( "h2.php");
|
||||
echo $ct;
|
||||
|
|
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: apache 24\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"
|
||||
"Last-Translator: Charlie & <root@bsd>\n"
|
||||
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\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"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
Loading…
Reference in New Issue