Opened 3 years ago

Closed 3 years ago

#2446 closed Bug (fixed)

PDF Email report

Reported by: equipc Owned by:
Priority: normal Milestone: 1.5 - Piwik 1.5
Component: Core Keywords:
Cc: Sensitive: no

Description

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.

Change History (9)

comment:1 Changed 3 years ago by lesjokolat

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!

comment:2 Changed 3 years ago by matt (mattab)

  • Resolution set to worksforme
  • Status changed from new to closed

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?

comment:3 Changed 3 years ago by krom

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.

comment:4 Changed 3 years ago by vipsoft (robocoder)

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() );
  }

comment:5 Changed 3 years ago by vipsoft (robocoder)

  • Resolution worksforme deleted
  • Status changed from closed to reopened

comment:6 Changed 3 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from reopened to closed

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

comment:7 Changed 3 years ago by matt (mattab)

  • Resolution fixed deleted
  • Status changed from closed to reopened

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

comment:8 Changed 3 years ago by vipsoft (robocoder)

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

comment:9 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [4826]) Fixes #2446

Note: See TracTickets for help on using tickets.