Hi all,

I'm new to Drupal, and quite disapointed.
I just need to create (for now) a multi-lingual site, with a little custom menu (I know how to create one) and in the menu, a link to a page which should be in French, in English or in Chinese, according to the currently selected language selected in i18n block.

My problem : which link to put in the menu? Is I create an entry in the menu, the link to the page should be something like fr/node/NN (where NN is the id of my French page) when the language is French, en/node/MM (where MM is the id of the translation in English of my page), and so on.

Any idea ?

Thank's a lot

Patrice

Comments

ap’s picture

You don't need to specify the language in the menu. The i18n module takes care of that. What you do need to do is create 'parallel' nodes for each of the languages.

Patrice Espie’s picture

Ok, but which link does I write in the menu to link to the right page ? I mean, I create a page #15 for my French one, #16 for English and #17 for Chinese. To which one must I link in the menu ? ...

ap’s picture

What I told you is not quite correct. If oyu can wait for an hour od so. I'll be back and give you some more input.

Have a look at my site www.andypotter.org It is multilingual. The menu choice curriculum vitae has an option for german and englich. You should be able to see what the url is within each language.

Patrice Espie’s picture

and will explain for others (well, I will try):

I have to create one page for each language, and to use the "URL path settings". For example, I create an "About" page, and tell in "URL path settings" fr/about for the French page, en/about for the English page, and so on.

And it's working... but not totally: now, when I select one of my pages, and then I try to change the selected language, the links shown by the language switcher are wrong : for French, it shows fr/about (so it's ok), but for English, it shows en/node/15 (this is wrong because the correct id in my case is 16).

What to do ??

ap’s picture

It sounds like your pages are not related in the node editor. When you edit a node in any language you also have the ability to edit the corresponding node in other languages. This is how the i18n module knows which node to display when the language is switched.

You should also have a look at the advanced settings for the 118n module "... en/admin/settings/i18n"

Patrice Espie’s picture

Yes, pages are well related.
Concerning advanced settings of i18n, it's absolutely not possible for me to understand the different choices ... and I tryed all choices, my problem stay the same !

ap’s picture

maybe you need to manually edit the menu. I found it much easier with multilingual nodes to attatch the nodes to the menu on thefly as the node is created. Manually entering the urls into the menus proved to be a lot of extra work.

The advanced settings in the i18n module have to do with the following. The language of the actual node and the language of the drupal environment (i.e title, menu blocks etc.) are two separate things. With the advanced settings you can control how the two are related. Does the node content switch languages with the environment? Is it possible to have a mixed displal where the node-content and environment are in different languages? etc.

Also keep in my that there are two language switcher blocks. One comes with the i18n module. Both switch th language but do it slightly differently with respect to the above features (content, environment). I can't emeber exactly what the differences are, they are described either in the help of in the forum.

robdinardo’s picture

I believe this post should help everyone:

http://drupal.org/node/113325

--
think positive