Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-10-23 12:42:51 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-10-23 12:42:51 +0400
commit2bf65e4bab517010b450f4f2ada1b9849f62114d (patch)
treeabc9c3498584e7578f35e8f7b42b3e6bf0186309 /plugins/UserCountry
parent3fbe1c37f579607f5f87a73c84cbbc6529f3195b (diff)
fixes #1031, refs #974 - html_entity_decode() country and continent translations
Diffstat (limited to 'plugins/UserCountry')
-rw-r--r--plugins/UserCountry/functions.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/UserCountry/functions.php b/plugins/UserCountry/functions.php
index 8e050fa9a2..cbb38b0f06 100644
--- a/plugins/UserCountry/functions.php
+++ b/plugins/UserCountry/functions.php
@@ -38,9 +38,9 @@ function Piwik_ContinentTranslate($label)
{
if($label == 'unk')
{
- return Piwik_Translate('General_Unknown');
+ return html_entity_decode(Piwik_Translate('General_Unknown'), ENT_COMPAT, 'UTF-8');
}
- return Piwik_Translate('UserCountry_continent_'. $label);
+ return html_entity_decode(Piwik_Translate('UserCountry_continent_'. $label), ENT_COMPAT, 'UTF-8');
}
/**
@@ -53,7 +53,7 @@ function Piwik_CountryTranslate($label)
{
if($label == 'xx')
{
- return Piwik_Translate('General_Unknown');
+ return html_entity_decode(Piwik_Translate('General_Unknown'), ENT_COMPAT, 'UTF-8');
}
- return Piwik_Translate('UserCountry_country_'. $label);
+ return html_entity_decode(Piwik_Translate('UserCountry_country_'. $label), ENT_COMPAT, 'UTF-8');
}