Pathauto and Content Translations

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by MTecknology on June 21, 2010 at 5:54pm

I'm working on a website that will need to have multiple languages.

I'm using a few of the basic tools. When I create a node in the default language it will become /content/test002 is aliased to /node/227. This is as expected. I can also click the Translate tab and click a language I want to translate the node into. I'm also able to add the actual translation. This is also as expected.

Where it breaks... I'm not able to go to fr/content/test002. I get page not found.

I'm not sure what I'm missing to make this work.

I'm noticing this query show up: SELECT src FROM url_alias WHERE dst = 'fr/content/test002' AND language IN('en', '') ORDER BY language DESC, pid DESC
It seems that running this from cli returns 0 results. Still no answer but maybe I tracked down where it's breaking (somewhat).

Comments

Did you choose "Path prefix

Posted by iztok on June 28, 2010 at 9:40pm

Did you choose "Path prefix only" here: admin/settings/language/configure?

Translated notes get their

Posted by dave reid on July 7, 2010 at 5:20am

Translated notes get their aliases saved with their language. When browsing the site, Drupal will lookup aliases that match the current language code or language-neutral (''). So in your case, when you are browsing your site in french, it is not possible to load the english alias.

Senior Drupal Developer for Lullabot | www.davereid.net | @davereid

Hi Dave, I can not find a way

Posted by prisonbreaker82 on December 10, 2010 at 10:44pm

Hi Dave,

I can not find a way to get the path auto work with translated content...

I have configured each language with the following: [node:language]/[node:title]
English,Portuguese and Spanish...

This was created in English
http://www.apartmentinriodejaneiro.com/en/test

I translated the page to Portuguese, the link should be like this
http://www.apartmentinriodejaneiro.com/pt-br/test

But the clean URL does not work so it write this
http://www.apartmentinriodejaneiro.com/node/16

Any solution to this?

facing the same problem

Posted by freshness on January 11, 2011 at 2:31pm

Any solution to this?

Same thing

Posted by vidry on March 2, 2011 at 6:47pm

I would be interested in knowing if you found a solution.
I'm using the current last beta version (7.x-1.0-beta1).


con paciencia y calma,
sube un burro a una palma.

Internationalization

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /