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

"Download" PDF click returns PDF Reports in default language, not user language #2093

Closed
anonymous-matomo-user opened this issue Feb 14, 2011 · 7 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

According to #1632 the PDF reports should already be generated in the user's language. This worked well in previous versions, but apparently in v1.1.1 the reports only use the default language and ignore the language the user set in the GUI.
Keywords: language, report

@mattab
Copy link
Member

mattab commented Feb 15, 2011

It works for me in 1.2-rc1. please try with this version: http://forum.piwik.org/read.php?2,72265

@anonymous-matomo-user
Copy link
Author

Thanks, I tried with 1.2-rc1, but the problem still exists. PDF Reports are generated in the language set in "default_language".

@robocoder
Copy link
Contributor

probably because the dashboard is using your browser language setting; the setting is only stored in the user_language table if you manually change the language from the dashboard's language selector

the quick fix is to save the user's current language setting when the report is setup

@anonymous-matomo-user
Copy link
Author

Good point, but it seems like the setting in user_language is being ignored.

I tried this:

  • default_language is "de"
  • In the GUI I set the language to "English".
  • The table piwik_user_language shows that the language for my user is set to "en".
  • The GUI is in English, but when I generate a report it's in German.

I also tried the other way round:

default_language is "en", I selected "German" in the GUI, but the reports are still in english...

@mattab
Copy link
Member

mattab commented Mar 29, 2011

I can now replicate the issue locally, investigating

@mattab
Copy link
Member

mattab commented Mar 29, 2011

The bug is the "Download" link does not download the PDF in the right language.

BUT the scheduled PDF reports are sent in the User Language as expected, so WORKING as expected (if you have an issue with scheduled reports, please report it)

@mattab
Copy link
Member

mattab commented Mar 29, 2011

(In [4219]) Fixes #2093

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.2 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants