Skip to content
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

Conversation

PatchRanger
Copy link

Fix #7926.

// First check forced by request param language setting,
// then - session language setting, then - from browser,
// and finally default configured setting.
$languageCodes = [
Copy link
Member

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

Copy link
Author

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()
Copy link
Contributor

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)

@tsteur
Copy link
Member

tsteur commented Aug 13, 2015

We merged the other PR, thx for this though! We could have not fixed it otherwise

@tsteur tsteur closed this Aug 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants