php - Best way to detect the language of User? -


this question has answer here:

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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -