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:
authorsgiehl <stefan@piwik.org>2015-02-21 15:45:38 +0300
committersgiehl <stefan@piwik.org>2015-02-21 15:45:38 +0300
commit57af9d44fce548e4157a8029beeec35017312e80 (patch)
tree5a52fa8ef3019d4843857d8698f1b3085e8a0f53 /plugins/UserLanguage
parent10ae6a47ee9a43bce587d1a60b4b5cffa85e5be9 (diff)
fixes #7226 - moved language report to location reports
Diffstat (limited to 'plugins/UserLanguage')
-rw-r--r--plugins/UserLanguage/UserLanguage.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/UserLanguage/UserLanguage.php b/plugins/UserLanguage/UserLanguage.php
index f8bad84ba2..07d4fdb300 100644
--- a/plugins/UserLanguage/UserLanguage.php
+++ b/plugins/UserLanguage/UserLanguage.php
@@ -7,10 +7,23 @@
*
*/
namespace Piwik\Plugins\UserLanguage;
+use Piwik\Piwik;
+use Piwik\FrontController;
/**
*
*/
class UserLanguage extends \Piwik\Plugin
{
+ public function postLoad()
+ {
+ Piwik::addAction('Template.footerUserCountry', array('Piwik\Plugins\UserLanguage\UserLanguage', 'footerUserCountry'));
+ }
+
+ public static function footerUserCountry(&$out)
+ {
+ $out .= '<div><h2>' . Piwik::translate('UserLanguage_BrowserLanguage') . '</h2>';
+ $out .= FrontController::getInstance()->fetchDispatch('UserLanguage', 'getLanguage');
+ $out .= '</div>';
+ }
} \ No newline at end of file