Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

PDF Email report #2446

Closed
anonymous-piwik-user opened this Issue · 8 comments

3 participants

@anonymous-piwik-user

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-piwik-user

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
Owner

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-piwik-user

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
Collaborator

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
Collaborator

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

@mattab
Owner

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
Collaborator

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

@mattab
Owner

(In [4826]) Fixes #2446

@anonymous-piwik-user anonymous-piwik-user added this to the 1.5 - Piwik 1.5 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.