diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-02-20 03:52:53 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-02-20 03:52:53 +0300 |
commit | 8841b5b160190bca1c86ad8ecd610454afa4280a (patch) | |
tree | f900a282e4dc081a29376708f7bc595a667f154d /plugins/LanguagesManager | |
parent | 41544b46892074d77ad4a9bd806ffa18db4c59a3 (diff) |
fixes #7187 Browser language is used even when English is configured.
Problem was it did load the language while the user was not authenticated
yet. We need to detect the language again after the user was authenticated.
Diffstat (limited to 'plugins/LanguagesManager')
-rw-r--r-- | plugins/LanguagesManager/LanguagesManager.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/LanguagesManager/LanguagesManager.php b/plugins/LanguagesManager/LanguagesManager.php index 9d81a7655f..9c977d2bab 100644 --- a/plugins/LanguagesManager/LanguagesManager.php +++ b/plugins/LanguagesManager/LanguagesManager.php @@ -35,6 +35,7 @@ class LanguagesManager extends \Piwik\Plugin 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', 'AssetManager.getJavaScriptFiles' => 'getJsFiles', 'Request.dispatchCoreAndPluginUpdatesScreen' => 'initLanguage', + 'Platform.initialized' => 'initLanguage', 'UsersManager.deleteUser' => 'deleteUserLanguage', 'Template.topBar' => 'addLanguagesManagerToOtherTopBar', 'Template.jsGlobalVariables' => 'jsGlobalVariables' |