Fixes after correcting wordpress language configuration (it_IT instead of it)
This commit is contained in:
parent
5636c7ac09
commit
602f6c8e9c
@ -110,6 +110,7 @@ function openmamba_download_func( $atts ) {
|
|||||||
$mediaprefix = '/var/ftp/pub/openmamba/media';
|
$mediaprefix = '/var/ftp/pub/openmamba/media';
|
||||||
$mediafallbackprefix = '/var/ftp/pub/openmamba/media/milestone2';
|
$mediafallbackprefix = '/var/ftp/pub/openmamba/media/milestone2';
|
||||||
$outputlang = get_bloginfo("language");
|
$outputlang = get_bloginfo("language");
|
||||||
|
$outputlang = substr($outputlang,0,2);
|
||||||
if ("$outputlang" != "it") {
|
if ("$outputlang" != "it") {
|
||||||
$outputlang = "en";
|
$outputlang = "en";
|
||||||
$mlword = "multilanguage";
|
$mlword = "multilanguage";
|
||||||
@ -205,7 +206,7 @@ function openmamba_distroquery_func() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$outputlang = get_bloginfo("language");
|
$outputlang = get_bloginfo("language");
|
||||||
if ($outputlang == "it")
|
if (substr($outputlang, 0, 2) == "it")
|
||||||
$outputlang = "it_IT.UTF-8";
|
$outputlang = "it_IT.UTF-8";
|
||||||
else
|
else
|
||||||
$outputlang = "en_US.UTF-8";
|
$outputlang = "en_US.UTF-8";
|
||||||
|
Loading…
Reference in New Issue
Block a user