Hello. On a site there are 2 languages: English and Russian. English page: node/25, russian page (analogue): node/26.
I press on a badge of switching of language on page node/25. I get on page node/25. It is necessary - node/26. How i18n should learn it?
At me it is impossible to make a bilingual site. Please, help.

Comments

GN’s picture

Is your node/26 defined as Russian translation of English source node/25?
Then, the "Language switcher" block should switch you from source node to the translation node and back.

See "Internationalization (i18n): Building multilingual sites" - http://drupal.org/node/133977.

jose reyero’s picture

Status: Active » Fixed

Yes, looks like the nodes were not created as translation of each other.

And, btw, that's handled now by Drupal core, not by i18n, so feel free to reopen it as a support request for Drupal core.

digital_fox’s picture

1. I download i18n 6.x-1.0-beta3 also have included all modules in section Administer>> Modules>> Multilanguage.
2. I go to Administer>> Languages>> Configure and set " Path prefix with language fallback ".
3. I go to Administer>> Languages, Russian language>> edit and set Path prefix=ru, and English language>> edit and set Path prefix=en.
4. I go to Administer>> Blocks and has put " Language switcher " in left sidebar.
5. Then I go to Administer>> Content types>> Page (edit)>> Workflow settings and set " Multilingual support: Enabled, with translation ".
6. Create content>> Page. Language: English, title: page1_en, Menu link title:page1_en. URL path settings>> page1_en.
7. Create content>> Page. Language: Russian, title: page1_ru, Menu link title:page1_ru. URL path settings>> page1_ru.
In the menu all over again there was a reference page1_en. Then I have added page1_ru (7 item). page1_en has disappeared from the menu. page1_ru is in all languages. I do not know how to create multilingual a site.
Excuse for my bad English.

GN’s picture

If you create page1_ru and page1_en separately, how should Drupal know that these two nodes are translations of the same content into different languages?

You should first create one node, then press the "Translate" button, and create its translation into another language. Drupal 6 allows you to give these two nodes same URL aliases that would differ only with the language prefix, so you can name them en/contacts and ru/contacts, or en/contacts and ru/kontakty, or whatever you wish.

(In Drupal 5, it was possible to select another node as translation for the current node, but it looks like this option was removed from Drupal 6 (see http://drupal.org/node/287146), which sometimes may be quite inconvenient. Right now I am importing a lot of bilingual content into Drupal from another CMS, and I have to define imported nodes as translations of each other via an sql script that sets the node.tnid field values in the database).

digital_fox’s picture

I simply did not see "Translate" button earlier. Many thanks! It is the decision of my problem.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.