From 602f6c8e9ce07ea1f3685ea4e8db94969c3b4217 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jun 2015 15:33:05 +0200 Subject: [PATCH] Fixes after correcting wordpress language configuration (it_IT instead of it) --- functions.php | 3 ++- languages/{it.mo => it_IT.mo} | Bin languages/{it.po => it_IT.po} | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename languages/{it.mo => it_IT.mo} (100%) rename languages/{it.po => it_IT.po} (100%) diff --git a/functions.php b/functions.php index 9e29279..1b520f9 100644 --- a/functions.php +++ b/functions.php @@ -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"; diff --git a/languages/it.mo b/languages/it_IT.mo similarity index 100% rename from languages/it.mo rename to languages/it_IT.mo diff --git a/languages/it.po b/languages/it_IT.po similarity index 100% rename from languages/it.po rename to languages/it_IT.po