Fixes after correcting wordpress language configuration (it_IT instead of it)

This commit is contained in:
Silvan Calarco 2015-06-06 15:33:05 +02:00
parent 5636c7ac09
commit 602f6c8e9c
3 changed files with 2 additions and 1 deletions

View File

@ -110,6 +110,7 @@ function openmamba_download_func( $atts ) {
$mediaprefix = '/var/ftp/pub/openmamba/media';
$mediafallbackprefix = '/var/ftp/pub/openmamba/media/milestone2';
$outputlang = get_bloginfo("language");
$outputlang = substr($outputlang,0,2);
if ("$outputlang" != "it") {
$outputlang = "en";
$mlword = "multilanguage";
@ -205,7 +206,7 @@ function openmamba_distroquery_func() {
}
$outputlang = get_bloginfo("language");
if ($outputlang == "it")
if (substr($outputlang, 0, 2) == "it")
$outputlang = "it_IT.UTF-8";
else
$outputlang = "en_US.UTF-8";