G
G
Gurzhii2015-02-23 16:04:28
Yii
Gurzhii, 2015-02-23 16:04:28

Yii2 how to connect geoip + multilingual?

Is there some component that will allow me to set the user's language via GEO-IP?
the site will be in English, Chinese and Russian
so that users in Russia, Ukraine, Kazakhstan will default to Russian and so on ...
or can you advise something?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
samizdam, 2015-02-23
@samizdam

I would advise giving the user a choice of language when entering the page.
Forcibly determining the user's language by his IP, IMHO, is not the best idea.

D
Dmitry Dart, 2017-11-10
@DrunkMaster

A lot of words, little code:

var x = document.getElementsByClassName('pay');
for(var i=0; i< x.length; i++){
    // замена в строке
}

K
Kovalsky, 2017-11-10
@lazalu68

It would be more logical not to hardcode anything in href , but to handle such moments with the help of forms: put the link in action , values ​​are substituted from the corresponding controls.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question