diff options
author | sgiehl <stefan@piwik.org> | 2015-06-07 23:54:41 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-06-08 22:48:27 +0300 |
commit | cd1bb24e32121376910f38c594655701dfea9bf1 (patch) | |
tree | 48955853bd783ea9570832c162c31da8cf65d650 /plugins/CorePluginsAdmin | |
parent | 6dbaf9823f234dedda3d7cbbb98f6a0953e99d60 (diff) |
do not translate the plugin description when loading the information
it might get translated using the default language otherwise or cached incorrect as the metadata is cached without the language
Diffstat (limited to 'plugins/CorePluginsAdmin')
-rw-r--r-- | plugins/CorePluginsAdmin/Controller.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CorePluginsAdmin/Controller.php b/plugins/CorePluginsAdmin/Controller.php index 74489fdaad..4967cba123 100644 --- a/plugins/CorePluginsAdmin/Controller.php +++ b/plugins/CorePluginsAdmin/Controller.php @@ -312,6 +312,10 @@ class Controller extends Plugin\ControllerAdmin $plugin['isCorePlugin'] = $pluginManager->isPluginBundledWithCore($pluginName); + if (!empty($plugin['info']['description'])) { + $plugin['info']['description'] = $this->translator->translate($plugin['info']['description']); + } + if (!isset($plugin['info'])) { $suffix = $this->translator->translate('CorePluginsAdmin_PluginNotWorkingAlternative'); |