You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Installed languages are cached in the session until the next login #503
CAppUI::loadLanguages() stores the list of installed languages in $_SESSION['LANGUAGES']. A language added to or removed from locales/ doesn't appear (or disappear) in the language pickers until the user logs out and in again, and a removed language stays selectable.
Fix: cache the list per request (a static) instead of per session. Scanning locales/*/ is cheap.
Activity
Read the installed languages once per request, not once per session
Fall back to English when the user's or host language isn't installed