Hi

we use D6.16, i18n and pathauto. The default language is german. If i create a new node the created path is ok, de/menupath. I've set [language]/[title-raw] for all pages. If i translate the node pathauto does nothing, the created path is node/nid.

Has anyone a idea?

Thanks, Stefan

Comments

BrianLewisDesign’s picture

il8n prefix was removed from menu links in my template.php file:

$href = $link['href'] == "<front>" ? base_path() : base_path() . drupal_get_path_alias($link['href']);

Fixed it by sticking $languge->prefix in the path:

global $language;
$prefixx = '';
if ( $language->prefix ) { $prefixx = $language->prefix."/"; }
$href = $link['href'] == "<front>" ? base_path() : base_path() . $prefixx . drupal_get_path_alias($link['href']);

I guess the best way would be to use l() or url()? This worked easily for me in my template.