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

PDF Email report #2446

Closed
anonymous-matomo-user opened this issue May 23, 2011 · 8 comments
Closed

PDF Email report #2446

anonymous-matomo-user opened this issue May 23, 2011 · 8 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

The PDF sent with the email report is in English but if we download it in Piwik, we have it in the user language. Could this be corrected so the user receive the report in his own language ? I suppose adding the language tag will resolve this.

@anonymous-matomo-user
Copy link
Author

Hi I am not some super advanced programmer but the team may be able to solve alot of character encoding issues both in and out with a middle-ware you might find useful

iviking.org/FX.php/

Solved alot of headaches i have with scandinavian and non roman character sets i had in a project thought it could do the same for you..

Keep up teh amazing work and products!

@mattab
Copy link
Member

mattab commented May 25, 2011

PDF reports should be sent in the language you last selected in the user interface. They are sent in the language of the user who created the report. Works for me in 1.4?

@anonymous-matomo-user
Copy link
Author

Confirming this bug. When i download the PDF report, it's in german. If i send it by mail, it's in english. 1.4 that is.

@robocoder
Copy link
Contributor

This is a bit of usability issue. By default, the dashboard guesses the language to use from the browser header. So, some users never explicitly set the language.

Maybe in PDFReports_Controller, we could force save the report creator's current language?

  $lang = Piwik_LanguagesManager_API::getInstance()->getLanguageForUser( $currentUser );
  if(empty($lang))
  {
    Piwik_LanguagesManager_API::getInstance()->setLanguageForUser( $currentUser, Piwik_LanguagesManager::getLanguageCodeForCurrentUser() );
  }

@robocoder
Copy link
Contributor

(In [4824]) fixes #2446 - force save language of report creator

@mattab
Copy link
Member

mattab commented May 29, 2011

I think the language should be set also when $emailMe wasn't ticked? Otherwise, messages sent to other email adresses will be in English?

@robocoder
Copy link
Contributor

Ideally, the language could be specified for each recipient. In lieu, I think additional recipients should use $config->General->default_language.

@mattab
Copy link
Member

mattab commented May 29, 2011

(In [4826]) Fixes #2446

@anonymous-matomo-user anonymous-matomo-user added this to the 1.5 - Piwik 1.5 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