K
K
Kamil2019-07-30 21:42:13
Apache HTTP Server
Kamil, 2019-07-30 21:42:13

Rus/Eng version of the site. How to output the desired language to the desired IP?

Hello. Please tell me how to make the loading of the CIS site and for the CIS?
The site has two versions of the site, Russian and English, I want that if a person enters from the CIS IP, then the Russian version of the site opens for him, and if from abroad, then the English version of the site

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Lebedev, 2019-07-30
@Lakika

Isn't it embarrassing that some users in the CIS outside the Russian Federation know Russian better?
It is better to determine by browser language: How to determine the user's browser language?
And so: https://www.php.net/manual/en/book.geoip.php

Y
Yaroslav Ivanov, 2017-11-24
Maitre

slides.eq(i).hasClass('slide__current')

V
Viktor Yanyshev, 2017-11-24
@villiwalla

Try this

$(slides).each(function(idx, elem) {
  if($(elem).hasClass('slide__current')) {
    curretSlide = $(elem);
    index = idx;
  }
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question