php - Best way to detect the language of User? -
this question has answer here:
- detect browser language in php 10 answers
what best way detect language of user? have in application dropdownlist user can select application language (english or portuguese), internationalization works well, after logging in.
i login screen, system presented in correct user language (for example based on browser language).
is correct so? how done?
edit
i got following article: https://github.com/samdark/yii2-cookbook/blob/master/book/i18n-selecting-application-language.md
is correct so? can check use ip , check country come. worst case when not able switch language.
Comments
Post a Comment