Language selection not possible (dropdown does not display anything)
-
Hi there,
I installed Matomo for WordPress about 1,5 years ago in the latest version at the time and let the plugin update automatically.
Since the beginning, I have not been able to change the language, or more precisely, I cannot select a language at all.
Administration -> Personal -> Setting -> Personal settings
Language
➝ If I click on the dropdown menu, nothing happens, meaning that no selection is displayed there.How can I solve this issue?
Thanks in advance.
-
Hi @xoyozo, Matomo for WordPress uses the WordPress language settings, so you would need to change the language for your user or site in the WordPress admin. The Matomo language dropdown will be removed for Matomo for WordPress when we have time.
> The Matomo language dropdown will be removed for Matomo for WordPress
Okay, good to know. I spent several hours searching for the error to try and solve the issue myself. 🙁
> so you would need to change the language for your user or site in the WordPress admin.
The website language is set to German and the language for the admin is also configured German. The “Matomo Summary” page is also displayed in German (as are all other WordPress Matomo internal pages). However, when I switch to the external “Matomo Reporting” page (View full reporting), everything is in English. And it has been that way since the beginning.Any suggestions for a solution?
And is there any documentation on the language settings for Matomo for WordPress that you could refer me to?
Okay, good to know. I spent several hours searching for the error to try and solve the issue myself.
I’m sorry you spent so much time trying to resolve this. As I said before, we would like to make this clearer in the future.
The website language is set to German and the language for the admin is also configured German.
Is your user the
adminuser? Or a different user? Can you check the language inWordPress Admin > Users > Profile? If that is also set to German and the language inWordPress Admin > Settings > Generalis also set to German, can you post your system report (or email to dizzy (at) innocraft (dot) com)? (https://matomo.org/faq/wordpress/how-do-i-find-and-copy-the-system-report-in-matomo-for-wordpress/)And is there any documentation on the language settings for Matomo for WordPress that you could refer me to?
There is currently no extra information for language settings for Matomo for WordPress, as it’s expected to just work. Of course, that may not be the case here, so if we find there is something getting in the way, we will certainly create some documentation around possible issues there.
thank you very much for your additional comments.
Is your user the
adminuser?Yes, it is.
Or a different user?
No other users are currently in use. I am hereby preparing for the use of Matomo by additional users (some of whom do not speak English well).
Can you check the language in
WordPress Admin > Users > Profile?It is set to German.
WordPress Admin > Settings > GeneralIt is also set to German.
can you post your system report (or email)
I’ll send it to you right away by email.
Thanks.
@xoyozo can you go to
Matomo Analytics > Diagnostics > Troubleshootingand manually run a site sync and user sync, then see if that fixes the problem?Hi @dizzyatinnocraft ,
okay first, I’ve run site sync manually, and then immediately checked whether the language had changed when I clicked on “View full reporting”. -> However, this was not the case (it was still in English)!
Then I’ve run user sync and again checked whether the language had changed when I clicked on “View full reporting”. -> This was still not the case (still English).
Do you have any other ideas?
@xoyozo Can you update the
/path/to/wordpress/wp-content/plugins/matomo/classes/WpMatomo/Admin/SystemReport.phpfile with https://raw.githubusercontent.com/matomo-org/matomo-for-wordpress/a4177292350cbc65a094d6912580fe97c57c1fe4/classes/WpMatomo/Admin/SystemReport.php? Then check the system report for a rows with name “Current User Locale” and “Current Matomo User Language”, and tell me what the values are?-
This reply was modified 5 months, 1 week ago by
dizzyatinnocraft.
I’ve uploaded your SystemReport.php via FTP and then refreshed the Diagnostics page. Here are the results:
Current User Locale: de_DE
Current Matomo User Language: deI always use the same browser on the same machine. Now I tried a different one and the correct language worked right away in the external Matomo (“View full reporting”).
I then deleted all cookies for the relevant WordPress domain in my main browser and “View full reporting” was then also displayed in German. As I said, Matomo had always been in English in this browser since it was first installed.
So there seems to have been a problem with the language configuration here, which obviously won’t resolve itself. At least now it works as designed.
Thank you very much for your support!
@xoyozo Ah, I see, thank you for the extra details, this tells me exactly where the issue is. And I’m glad you’ve got the language change working for you now. Let us know if you need help with anything else.
-
This reply was modified 5 months, 1 week ago by
You must be logged in to reply to this topic.