Hi, on my site in Drupal 5.x , I've activated i18n and pathauto. I have tow languages: English & French.
For one page (for exemple: www.example.com/*en/*about ) I have a translated page in French with a new title (in French). Let's say www.example.com/fr*/*apropos is the French equivalent to English www.example.com/*en/*about
When I use the language switcher block, Drupal tries www.example.com/fr*/*about and not www.example.com/fr*/*apropos
Any clue? Reading all the issues on D5 and i18n+pathauto did not gave me clear ideas...
Thanks
Denis
On Mon, 27 Apr 2009 16:15:12 +0200 Denis Lafont-Trevisan denis.lafont@gmail.com wrote:
Hi, on my site in Drupal 5.x , I've activated i18n and pathauto. I have tow languages: English & French.
For one page (for exemple: www.example.com/*en/*about ) I have a translated page in French with a new title (in French). Let's say www.example.com/fr*/*apropos is the French equivalent to English www.example.com/*en/*about
When I use the language switcher block, Drupal tries www.example.com/fr*/*about and not www.example.com/fr*/*apropos
Any clue? Reading all the issues on D5 and i18n+pathauto did not gave me clear ideas...
I wouldn't say the problem is in pathauto. pathauto is doing the right job.
You should enable Internationalization and Translation to obtain the effect you're looking for.
Then for each content type you'd enabel "Multilingual options".
I think this should be enough.
Once you're logged in you'd see a "Translation" tab on each node that let you link nodes and their translations.
Hi,
On Mon, Apr 27, 2009 at 4:38 PM, Ivan Sergio Borgonovo <mail@webthatworks.it
wrote:
On Mon, 27 Apr 2009 16:15:12 +0200 Denis Lafont-Trevisan denis.lafont@gmail.com wrote:
Hi, on my site in Drupal 5.x , I've activated i18n and pathauto. I have tow languages: English & French.
For one page (for exemple: www.example.com/*en/*about ) I have a translated page in French with a new title (in French). Let's say www.example.com/fr*/*apropos is the French equivalent to English www.example.com/*en/*about
When I use the language switcher block, Drupal tries www.example.com/fr*/*about and not www.example.com/fr*/*apropos
Any clue? Reading all the issues on D5 and i18n+pathauto did not gave me clear ideas...
I wouldn't say the problem is in pathauto. pathauto is doing the right job.
You should enable Internationalization and Translation to obtain the effect you're looking for. Then for each content type you'd enabel "Multilingual options". Once you're logged in you'd see a "Translation" tab on each node that let you link nodes and their translations.
Already activated. But when I change the title of a content, the language swither is still stuck to the old url. Example:
www.example.com/fr/about http://www.example.com/fr*/*about instead of www.example.com/fr/apropos http://www.example.com/fr*/*apropos for the French translation of www.example.com/en/abouthttp://www.example.com/fr*/*about
Denis
On Mon, 27 Apr 2009 23:50:15 +0200 Denis Lafont-Trevisan denis.lafont@gmail.com wrote:
Already activated. But when I change the title of a content, the language swither is still stuck to the old url. Example:
www.example.com/fr/about http://www.example.com/fr*/*about instead of www.example.com/fr/apropos http://www.example.com/fr*/*apropos for the French translation of www.example.com/en/abouthttp://www.example.com/fr*/*about
Cache?
Go to the modules page and resubmit. This should clean the cache.
I've this system working as expected. Tomorrow I'll try to see if you've to set something more.
On Mon, 27 Apr 2009 23:50:15 +0200 Denis Lafont-Trevisan denis.lafont@gmail.com wrote:
Already activated. But when I change the title of a content, the language swither is still stuck to the old url. Example:
Did you create a relationship between the 2 nodes using the Translation tab on each node? If there is no such relation I guess drupal just switch the language prefix.
I haven't been able to reproduce your problem even with cache on.
BTW there are 2 language switcher. I'm using "Translations for Content" and not "Language switcher (Interface only)".
Many Thanks Ivan, That was the problem: the bloc: one should use "Translations" and not ""Language switcher"
Again, many thanks,
Denis
On Tue, Apr 28, 2009 at 11:55 AM, Ivan Sergio Borgonovo < mail@webthatworks.it> wrote:
On Mon, 27 Apr 2009 23:50:15 +0200 Denis Lafont-Trevisan denis.lafont@gmail.com wrote:
Already activated. But when I change the title of a content, the language swither is still stuck to the old url. Example:
Did you create a relationship between the 2 nodes using the Translation tab on each node? If there is no such relation I guess drupal just switch the language prefix.
I haven't been able to reproduce your problem even with cache on.
BTW there are 2 language switcher. I'm using "Translations for Content" and not "Language switcher (Interface only)".
-- Ivan Sergio Borgonovo http://www.webthatworks.it
-- [ Drupal support list | http://lists.drupal.org/ ]