diff options
Diffstat (limited to 'plugins/LanguagesManager/TranslationWriter/Filter/EncodedEntities.php')
-rw-r--r-- | plugins/LanguagesManager/TranslationWriter/Filter/EncodedEntities.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/LanguagesManager/TranslationWriter/Filter/EncodedEntities.php b/plugins/LanguagesManager/TranslationWriter/Filter/EncodedEntities.php index dd1146f581..3e2c9dbb5b 100644 --- a/plugins/LanguagesManager/TranslationWriter/Filter/EncodedEntities.php +++ b/plugins/LanguagesManager/TranslationWriter/Filter/EncodedEntities.php @@ -9,7 +9,7 @@ namespace Piwik\Plugins\LanguagesManager\TranslationWriter\Filter; -use Piwik\Translate; +use Piwik\Container\StaticContainer; class EncodedEntities extends FilterAbstract { @@ -38,12 +38,12 @@ class EncodedEntities extends FilterAbstract foreach ($pluginTranslations as $key => $translation) { if (isset($this->baseTranslations[$pluginName][$key]) && - $this->baseTranslations[$pluginName][$key] != Translate::clean($this->baseTranslations[$pluginName][$key])) { + $this->baseTranslations[$pluginName][$key] != StaticContainer::get('Piwik\Translation\Translator')->clean($this->baseTranslations[$pluginName][$key])) { continue; // skip if base translation already contains encoded entities } // remove encoded entities - $decoded = Translate::clean($translation); + $decoded = StaticContainer::get('Piwik\Translation\Translator')->clean($translation); if ($translation != $decoded) { $this->filteredData[$pluginName][$key] = $translation; $translations[$pluginName][$key] = $decoded; |