-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force specific language? #115
Comments
Maybe the best would be to configure a list of authorized languages. Then this would require a new parameter which will be an array. If it is empty, all available languages will be authorized, else this parameter will be used to limit which languages could be used. |
What would be the expected behaviour when several languages are authorized but the detected one is not part of the list? Une the first authorized one? Use initial |
if the lang is not one authorized, then fall back to default lang |
I'm closing this issue because the PR was merged. |
No problem, I'm the one who needed it :) |
I'm trying to force the use of english for my installation of self-service-password. It seems that this piece of code from
index.php
is causing my trouble:The way I understand it is: the language is defined in
config.inc.php
, and afterwards this information is discarded to read it from browser settings indetectLanguage
.Am I missing something?
If I'm not, would you be interested in a PR to change this behaviour? I would change the default language value to "auto" in
config.inc.php
and only try to detect the browser language if the value is different:The text was updated successfully, but these errors were encountered: