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:
authorThomas Steur <thomas.steur@googlemail.com>2014-06-27 05:19:21 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-06-27 05:19:21 +0400
commitb8af5d8c78846d9ff94e4dc52f01910adff5c519 (patch)
treeb5cd1957ee13a4e872d4763633be680c70096dc4 /plugins/Feedback/API.php
parent6a1321cd8182fd2ad297854761f3c75335098fb3 (diff)
here is our first report generator
Diffstat (limited to 'plugins/Feedback/API.php')
-rw-r--r--plugins/Feedback/API.php16
1 files changed, 1 insertions, 15 deletions
diff --git a/plugins/Feedback/API.php b/plugins/Feedback/API.php
index bcaeb77650..ce6acdce20 100644
--- a/plugins/Feedback/API.php
+++ b/plugins/Feedback/API.php
@@ -78,20 +78,6 @@ class API extends \Piwik\Plugin\API
@$mail->send();
}
- private function findTranslationKeyForFeatureName($featureName)
- {
- if (empty($GLOBALS['Piwik_translations'])) {
- return;
- }
-
- foreach ($GLOBALS['Piwik_translations'] as $key => $translations) {
- $possibleKey = array_search($featureName, $translations);
- if (!empty($possibleKey)) {
- return $key . '_' . $possibleKey;
- }
- }
- }
-
private function getEnglishTranslationForFeatureName($featureName)
{
$loadedLanguage = Translate::getLanguageLoaded();
@@ -100,7 +86,7 @@ class API extends \Piwik\Plugin\API
return $featureName;
}
- $translationKeyForFeature = $this->findTranslationKeyForFeatureName($featureName);
+ $translationKeyForFeature = Translate::findTranslationKeyForTranslation($featureName);
if (!empty($translationKeyForFeature)) {
Translate::reloadLanguage('en');