There is a site in Russian and English. The language is defined through the HTTP_ACCEPT_LANGUAGE header. I understand correctly that for the CIS countries you need to put Russian? Or do they have Russian browsers?

  • The browser will send the most preferred languages. If the locale is Russian, then it does not matter that it is from Ukraine. - user207618
  • @Other I just take the language: substr ($ _ SERVER ['HTTP_ACCEPT_LANGUAGE'], 0, 2); Those. I do not take into account all these priorities q. - user208916
  • 2
    Poorly. Priorities are not for a tick there. Plus - maybe you got no language? It is better to parse the header normally, rank it and act. - user207618
  • @Other Do you think they (Ukrainians, Belarusians, Kazakhs) second in priority is Russian? All right, it is necessary to be confused. - user208916
  • Languages ​​are chosen from preferences, not on a national basis. - user207618

0