Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#1071 closed Bug (fixed)

Get/Save language preference

Reported by: vipsoft Owned by: vipsoft
Priority: low Milestone: Piwik 0.5.5
Component: Core Keywords:
Cc: Sensitive: no

Description (last modified by vipsoft)

The original bug report was that the user had to reselect their language after login.

Instead of getting/saving the language preference to a cookie (#282), Piwik gets/saved the preference in the piwik_user_language table.

The language preference is loaded in this order:

  • session
  • db
  • browser lang

If an anonymous user selects a language, this is updated in the session, but not the db (i.e., no current user).

When the user logs out, the session data is destroyed.

Change History (4)

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

  • Description modified (diff)
  • Summary changed from Save language preference to cookie to Get/Save language preference

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

  • Owner set to vipsoft

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

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

(In [1846]) fixes #1071 -- get/save language regression introduced by #939

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

(In [1847]) refs #1071 - avoid unnecessary redirect

Note: See TracTickets for help on using tickets.