I've stumbled across a bug in PathAuto, whilst pathauto works accurately with translated term names, it ignores completely translated vocabulary names. For examples I use

Vocabulary: Tags
Term: About Us

Which gives the path: tags/about-us

i18n Vocabulary: Tagiau
i18n Term: Amdanom Ni

Which gives the path: tags/amdanom-ni

Now to me this seems like a design fault, if pathauto can recognise a translated term, why can it not use a translated vocabulary?

the string I'm using is [term:i18n-vocabulary]/[term:i18n-term]

Comments

Dave Reid’s picture

What module are you using that provides those tokens?

Homotechsual’s picture

i18n/Internationalization provides the translations and therefore I presume the tokens, this may be an internationalization issue, I'm not certain.

Homotechsual’s picture

Issue tags: +i18n compatibility

Any thoughts on this? If it is indeed an i18n issue I will move it onto their issue queuei

Dave Reid’s picture

Priority: Major » Normal

You should probably check with i18n if they're providing the tokens - the problem relies there. If the problem is i18n's tokens don't have enough or the right data in order to work properly, then it can be moved back to Pathauto.

Dave Reid’s picture

Dave Reid’s picture

Category: bug » support
Homotechsual’s picture

Title: Pathauto ignores translated vocabulary names. » Translated vocabulary names not working with Pathauto
Project: Pathauto » Internationalization
Version: 7.x-1.0-beta1 » 7.x-1.0-beta7
Component: I18n stuff » Taxonomy
Category: support » bug
Priority: Normal » Major

I understand that this problem could stem from Token, Pathauto or i18n, the pathauto folks have suggested that is is more likely an issue with i18n

Jose Reyero’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

First check you are using i18n-taxonomy tokens, see i18n_taxonomy.tokens.inc.

Anyway for this to work the proper language should be passed in the $options parameter. So you should check whether this is happening. If not maybe pathauto should pass the node language.

Jose Reyero’s picture

webflo’s picture

Version: 7.x-1.0-beta7 » 7.x-1.x-dev
Jose Reyero’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No follow up, so closing.

marcoka’s picture

marcoka’s picture

Status: Closed (cannot reproduce) » Active
Dave Reid’s picture

There hasn't been any new information to point that this isn't a Pathauto problem, so closing again.

marcoka’s picture

Status: Active » Closed (cannot reproduce)

i have tested it, and if you pass the $options array with the correct language, it works. so i guess a pathauto problem.
My notes and where i will post a patch. (i currently have something working).
#1587446: i18n tokens - multilanguage