6.0.0-RC7
6/29/26

[#4343] Callbacks when language is switched during a session
Summary Callbacks when language is switched during a session
Queue Horde Base
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners
Requester slusarz (at) horde (dot) org
Created 8/27/06 (7246 days ago)
Due
Updated 11/24/06 (7157 days ago)
Assigned 8/28/06 (7245 days ago)
Resolved 11/24/06 (7157 days ago)
Github Issue Link
Github Pull Request
Milestone 4
Patch No

History
295 Chuck Hagenbuch Comment #7
State ⇒ Resolved
Reply to this comment
The infrastructure for this is now in HEAD:

http://lists.horde.org/archives/cvs/Week-of-Mon-20061120/063260.html



Michael, please feel free to add an example for resetting folder labels.
122 Jan Schneider Comment #6 Reply to this comment
Your last sentence already makes it clear. This could only be an 
addition to the current hooks but never be required as a replacement 
for the prefs callbacks.
501 Chuck Hagenbuch Comment #5 Reply to this comment
What about general preference change hooks? We trigger some changes 
when the theme is changed, for example; why not moving all of the code 
that runs when a pref is changed into a configurable hook. Yes, people 
would have to enable the default hooks, but that gives them 
flexibility also.
468 Jan Schneider Comment #4 Reply to this comment
I still don't see this as a huge problem since the correct labels will 
be used after the next login. But if this of great importance for you, 
I suggest that you use an API method instead because we don't have to 
load each and every application's lib/prefs.php then.
185 Michael Slusarz Comment #3 Reply to this comment
I guess we could live with that, or is there any functionality broken
when that happens?
No functionality broken - this is a UI thing only.  But it is kind of 
annoying and looks unprofessional.  I guess the other option would be 
to force a logout/login instead.
411 Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
I guess we could live with that, or is there any functionality broken 
when that happens?
357 Michael Slusarz Comment #1
Priority ⇒ 1. Low
State ⇒
Queue ⇒ Horde Base
Summary ⇒ Callbacks when language is switched during a session
Type ⇒ Bug
Reply to this comment
If the language is switched during a session, the prefs code should 
check for a callback function (i.e. prefs_language_switch) in all app 
prefs.php files.



Example - user default is language A.  User logs in to IMP.  Virtual 
folder labels  are in language A.  User switches to language B.   
Virtual folder labels are not updated.

Saved Queries