I would like to find out what would be the best way to define custom textual (not tokens) path for multi-language site and taxonomy terms.

As I can find in UI, per language paths can be defined only for content types (Content Paths section), but not for taxonomy terms, where default and per vocabulary options are available only.

I am using Taxonomy vocabulary set to "Translate. Different terms will be allowed for each language and they can be translated." This is using i18n module and sub modules. And would like to set textual base path for each term depending on it's selected language. For example:

  • products_en/[term:i18n-name] - for English version, and;
  • products_other/[term:i18n-name] - for particular other language.

With current UI I can not find solution to do it this simple way, only use Tokens (Token module enabled obviously).

One way would be use localized vocabulary name in path generation, but I still do not feel quite comfortable with it, as I use more descriptive names for vocabulary, than needed in URLs. And more for this, I am not aware of any consequences, as I am planning to override display of nodes with views, but still not want to use taxonomy/term/% way (Search API type view is intended).

I would like to achieve this, as I am planning to use Taxonomy Menu module, to let assigned users manage taxonomy categories, still automating correct multi-language path generation per term tied to particular views page. And provide particular vocabulary as a menu in a block. (Currently flat taxonomy terms are considered - without hierarchy.)

Is there a way to achieve this? May be I do not get all the options of Tokens?

Comments

Status:Active» Needs review
StatusFileSize
new1.75 KB
PASSED: [[SimpleTest]]: [MySQL] 316 pass(es).
[ View ]

Hello, I need also the same functionality; attached patch should add this feature.

Hi,,, Are u sure its working... I tried the patch but its not work..!
any help to fix it...

Thanks

anyone can help ... just to test this patch and make sure its working or not...

Patch is working for me.

+1 vote to add this functionality!

Orbmantell ,, Can u please tell me how its work with u,, I did this on screenshot and the Links still like
site.com/taxonomy/term/28

StatusFileSize
new35.59 KB

Screenshot here

Any help ... :(

What is the language settings that I need to set for my vocabulary ..

@wooody: Can you explain better what is your problem? Alias are not generated or they are wrong? Could you write the steps to repeat the problem?

@peximo Thank you for your reply

I have site with 2 languages ,, And I have vocabulary called ... please see the attached image.
Etikett: for Swedish
Tag: and translated to English
and I have terms for swedish and english too

I did the patch and I can see new input fields in the pattern in path alias.. please see attached image.

and then I delete all alias and bulk update taxonomy .. but its not generate the alias for taxonomy
( No new URL aliases to generate.) and the links like this localhost/taxonomy/term/28

Thank you,

Any help to fix this problem :(

#1 works for me as well! Thx

edit: the configuration screen works, I can set paths for every language, but when creating new terms in that vocabulary, having a language, their alias is not generated correctly, it is generating the language neutral alias all the time.

I tested the patch on my site (English/Danish), and it worked. But I also have https://drupal.org/project/pathauto_i18n_taxonomy installed and therefore I had to do the same corrections in the file: pathauto_i18n_taxonomy.module as the patch did in pathauto.pathauto.inc
Then it worked like a charm