Home>

Tell me, please, how to implement the transition between language versions (for example. I am in the section News in Russian, automatic transition to the same section, when you click on the English language version of the site)

More details Please, how is the translated text generated on the page, on the server side or the client gets a key-value bandl?

Alexey Poloukhin2021-08-25 01:43:30

It is stored on the hosting, you can say 2 sites, the Russian version and when I choose the English. Talk to go to the same site, only English. versions. In the address bar is substituted /en /...

Amkodor Holding2021-08-25 01:57:54
  • Answer # 1

    This question has already risen, look at the answer carefully before writing a question. Here are the links: ,.

    UPD. There are several ways to solve your problem:

    Method 1. "Painting Pineapple, I'm on the cuckoo." Automatic translation When the translation is a lot of translation, I do not want to do it, there are no special requirements, the automatic Google translator is good. Formally everything is good. The quality is average, the labor intensity is extremely low, new languages ​​do not need to add -Google knows everything.

    Method 2. "Naive programmer". Fields and folders. Naive programmer who first faced the task of creating a language version, believes that only texts and pictures will differ. Code, structure, design, interface It does not plan to translate. Therefore, fields for texts in other languages ​​appear in the database. Theoretically, everything is fine. On practice:

    If there is no English content, you have to show Russian. To do this, check the existence of files and so on. You need to edit the code.

    1. will need to make a package of visibility flags in each language versions. And write code for checking. Everywhere.
    2. "bread crumbs" are often taken from the properties of sections, tables, catalogs do not earn themselves. Write code.
    3. Adding the French version requires the repetition of the entire procedure and Another complication of the code. Apparently, the work of the sites of Rusal and the Government of the Russian Federation was founded in this scheme. Method 3. Special plugins:

    I did not understand how to work with it! More.

    Amkodor Holding2021-08-25 01:57:54

    We look for Google on PHP there is an implementation of this feature that switches or over the client's geolocation button, it is in the open access. Only there, as far as I remember, implementing in a separate file, but if the head is in place, then you can organize through the database.

    Юрий2021-08-24 18:21:21
  • Answer # 2

    This question has already risen, look at the answer carefully before writing a question. Here are the links: ,.

    UPD. There are several ways to solve your problem:

    Method 1. "Painting Pineapple, I'm on the cuckoo." Automatic translation When the translation is a lot of translation, I do not want to do it, there are no special requirements, the automatic Google translator is good. Formally everything is good. The quality is average, the labor intensity is extremely low, new languages ​​do not need to add -Google knows everything.

    Method 2. "Naive programmer". Fields and folders. Naive programmer who first faced the task of creating a language version, believes that only texts and pictures will differ. Code, structure, design, interface It does not plan to translate. Therefore, fields for texts in other languages ​​appear in the database. Theoretically, everything is fine. On practice:

    If there is no English content, you have to show Russian. To do this, check the existence of files and so on. You need to edit the code.

    1. will need to make a package of visibility flags in each language versions. And write code for checking. Everywhere.
    2. "bread crumbs" are often taken from the properties of sections, tables, catalogs do not earn themselves. Write code.
    3. Adding the French version requires the repetition of the entire procedure and Another complication of the code. Apparently, the work of the sites of Rusal and the Government of the Russian Federation was founded in this scheme. Method 3. Special plugins:

    I did not understand how to work with it! More.

    Amkodor Holding2021-08-25 01:57:54

    We look for Google on PHP there is an implementation of this feature that switches or over the client's geolocation button, it is in the open access. Only there, as far as I remember, implementing in a separate file, but if the head is in place, then you can organize through the database.

    Юрий2021-08-24 18:21:21