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
If a forced language is set, then the getUserLangs method should include it in its return value and the forced language should be tried first. However, if the forced language does not exist, then the next choice will be tried. Maybe this is a bit unintuitive. Does the language file for the forced language exist?
The documentation says :
$i18n->setForcedLang('en'); // force english, even if another user language is available
But in
i18n.class.php
the variable$forcedLang
is never used.Maybe in the init() function you should test if this variable is not null ? And use it if the user set it ?
Something like
The text was updated successfully, but these errors were encountered: