Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Languages of the Visitors #638

Closed
anonymous-matomo-user opened this issue Mar 30, 2009 · 9 comments
Closed

Languages of the Visitors #638

anonymous-matomo-user opened this issue Mar 30, 2009 · 9 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@anonymous-matomo-user
Copy link

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.

Downloads: http://jan.bogutzki.de/piwik-plugin
Keywords: language, plugin, third-party-plugin

@anonymous-matomo-user
Copy link
Author

The newest Version could be found on my blog under:
http://jan.bogutzki.de/piwik-plugin

@mattab
Copy link
Member

mattab commented Mar 30, 2009

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.

@anonymous-matomo-user
Copy link
Author

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.

@anonymous-matomo-user
Copy link
Author

Attachment: Screenshot of Plugin UserLanguage
[UserLanguage.jpg](http://issues.piwik.org/attachments/638/UserLanguage.jpg)

@anonymous-matomo-user
Copy link
Author

Attachment: UserLanguage french translation
fr.php

@anonymous-matomo-user
Copy link
Author

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).

@sgiehl
Copy link
Member

sgiehl commented Feb 3, 2013

The feature of this plugin will be implemented in core. see #3726

@anonymous-matomo-user
Copy link
Author

Hi.

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 Piwik_LanguageTranslate. 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 ;)

@sgiehl
Copy link
Member

sgiehl commented Aug 26, 2013

That feature has been included in core. This Plugin shouldn't be used anymore.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants