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
Correct default language #8022
Correct default language #8022
Conversation
// First check forced by request param language setting, | ||
// then - session language setting, then - from browser, | ||
// and finally default configured setting. | ||
$languageCodes = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code should be compatible with PHP 5.3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tsteur I got it, done.
* @return string Two letters language code, eg. "fr" | ||
*/ | ||
public static function getLanguageCodeForCurrentUser() | ||
public static function getCurrentLanguage() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method could be private as the Translator's method should be used instead? (i.e. nobody should use this method)
We merged the other PR, thx for this though! We could have not fixed it otherwise |
Fix #7926.