I have a multilanguage website, where users from all over the world are active. To see what language is not implemented yet or what language is used very often, i needed a plugin that shows me the primary language of the visitor.
Keywords: language, plugin, third-party-plugin
Attachment: Screenshot of Plugin UserLanguage
Attachment: UserLanguage french translation
The newest Version could be found on my blog under:
can you please describe exactly what your plugin does, and post a screenshot in the track ticket?
also I quickly looked at the code and saw that you are loading the translations, but you shouldn't have to do that as Piwik can handle plugin-specific translations, if you add your translations in plugin/X/lang/ and set 'translationAvailable' = true in your plugin->getInformation() method.
Thanks for the info. I have changed the code and removed my method for the translation handling.
What the plugin does:
It count the primary language the user has set up in the browser. So you can now see, what language your users prefer. A screenshot will be added soon.
Thank you for this plugin !
As a belgian developer you probably know how important it is for us here in Belgium to spot the visitor's language ;-)
Here above is the french translation file you might add to your distro... I'll post a dutch translation whenever I get some time to do it (I alerady had an iso_639 french file available).
The feature of this plugin will be implemented in core. see #3726
Looks like the current version is not working properly in Piwik 1.12. There is a naming conflict with the UserSettings/functions.php and the UserLanguage/functions.php in method PiwikLanguageTranslate. My quickfix was to disable the method in UserLanguage by adding the prefix "disabled". I'm not sure if there is any impact on doing it and in the current Piwik version in the Git master the name prefix "Piwik" is not used anymore. So, take this just as a hint for users looking to get the plugin running and let us review the problem after Piwik 2.x is out there ;)
That feature has been included in core. This Plugin shouldn't be used anymore.