Hello guys, everyone!

The thing is. Now there is a site in Russian. It is necessary to make the Ukrainian version by default, and the Russian version is optional, since the site is designed for the Ukrainian space.

How do you do it? Which way to "dig"? Perhaps there is some kind of universal remedy for these matters?

  • one
    Google "multilingual php site". - artuska 7:26 pm
  • one
    What technology? Php - kandi pm
  • 2
    thanks at least not in Russian - DreamChild
  • sorry for the "Russian". I am Ukrainian, I learned Russian through self-education, as you can see, not without blunders. Yes, a PHP site. - mrDimitry

2 answers 2

Initially, the Ukrainian version opens. When you click on the Russian flag in the cookie set lang=ru . On the server: if the cookie is installed, then give the Russian site.

  • one
    Why so ugly?)) You can also look at the ip? if we immediately give out Russian from Russia) and the main mod revrayit is set up) so that the link is of the kind sitename.ua/ru - Vladimir Klykov
  • one
    @ ToRcH565> the Ukrainian version by default, and> because the site is designed for the Ukrainian space - kandi
  • Yes, if I could like this "bakhbah and in Kings". I don’t know anything about it. Therefore, I asked to give a kick in the right direction. To read, to grasp the very essence of what, where. - mrDimitry
  • one
    1. Google cookie request. Learn how to use 2. Find in the internet how to count cookies using php 3. Here they show how to return the necessary translation ru.wikipedia.org/wiki/… 4. And yet: google.ru/… - kandi
  • Thank you!))) I'm going to gnaw. - mrDimitry

In php there are a lot of mechanisms working both with text and with addresses, site localization option: Creating a separate section or subdomain in the desired language. Support for language phrases: you take out all the "words, phrases, texts" in separate template files and connect the necessary languages. With a database: you create separate content or even separate tables for languages.