Closed (fixed)
Project:
Activity
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 May 2010 at 11:31 UTC
Updated:
4 May 2010 at 20:49 UTC
Hi!
When viewing an activity view as an anonymous user it responds to the chosen language via the language switcher, however when an authorized user watches the view and changes the site language using the language switcher it does not change language. Is there a way of making the activity module respond to the language switcher for logged in users as well?
/Dan
Comments
Comment #1
danielhol commentedThis may not be optimal since it involves changing the activity.views.inc and probably shouldn´t be recommended but what I did was to change this line
// Find the user's preferred language, if any.
$preferred_language = $user->uid ? user_preferred_language($user) : $language;
to this:
$preferred_language = $language;
If anyone else has the same problem, this solution works but it might not be a good idea to hack into the module like this (or?)