Hi Roberto, first thanks for a great module. It is really useful in my present project. When it is complete I will write an article on how I used Localizer for it, hopefully that will help the documentation.

The site I am working on is English and Chinese. I have come across this problem: I create a new node and give it the path of 'example'. I then add a Chinese translation and try to use the same path, but Drupal says path is already used.

My Localizer settings are:

[ ] Do not add language prefix on the site default language
[✔] Automatically append language prefix to all content (node) pages
[✔] Append language prefix on new content (node) translations

Can you tell me how to use the same URL path for both languages? Thanks

Comments

Roberto Gerola’s picture

>but Drupal says path is already used
Yes, it is so. You cannot ahve the same alias pointing to two different pages.

You have two options :

1. disable this option :
[✔] Automatically append language prefix to all content (node) pages
and manually add the language prefix in the alias field
The second setting :
[✔] Append language prefix on new content (node) translations
will add automatically add the correct perfix for you for the new translations.

2. use a different alias for every translation, I mean 'example' for English and '例如' for Chinese

Roberto

blogjunkie’s picture

ok, thanks