diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-02-02 06:38:35 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-02-02 06:38:35 +0300 |
commit | e9197cbd6e150822d0943ac096a1a6c6e2565938 (patch) | |
tree | 7021e163d59e47ec836227dcedfcb393c4217ece /plugins/LanguagesManager | |
parent | 03ea8fb3ec54285bdd63cdada015aa67aec1c6ee (diff) |
Removed calls to deprecated Piwik\Common::getCountriesList
Diffstat (limited to 'plugins/LanguagesManager')
-rw-r--r-- | plugins/LanguagesManager/TranslationWriter/Validate/CoreTranslations.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/LanguagesManager/TranslationWriter/Validate/CoreTranslations.php b/plugins/LanguagesManager/TranslationWriter/Validate/CoreTranslations.php index eb888bf434..8499f57850 100644 --- a/plugins/LanguagesManager/TranslationWriter/Validate/CoreTranslations.php +++ b/plugins/LanguagesManager/TranslationWriter/Validate/CoreTranslations.php @@ -10,6 +10,8 @@ namespace Piwik\Plugins\LanguagesManager\TranslationWriter\Validate; use Piwik\Common; +use Piwik\Container\StaticContainer; +use Piwik\Intl\Data\Provider\RegionDataProvider; class CoreTranslations extends ValidateAbstract { @@ -73,8 +75,11 @@ class CoreTranslations extends ValidateAbstract return false; } + /** @var RegionDataProvider $regionDataProvider */ + $regionDataProvider = StaticContainer::get('Piwik\Intl\Data\Provider\RegionDataProvider'); + $allLanguages = Common::getLanguagesList(); - $allCountries = Common::getCountriesList(); + $allCountries = $regionDataProvider->getCountryList(); if (!preg_match('/^([a-z]{2})_([A-Z]{2})\.UTF-8$/', $translations['General']['Locale'], $matches)) { $this->message = self::ERRORSTATE_LOCALEINVALID; |