I'm using this module on a Multilanguage website in Dutch and English.

The module works great! In Dutch, the main language of website, everything works fine. On the English website the English terms are displayed and that's links are working fine. Still I have two problems.

1. I can't translate the title of a vocabulary.

On line 320 I added the t() function
drupal_set_title(t(check_plain($vi->name)) . ' » ' . drupal_strtoupper($output['letter']));

This solves my problem and now I can translate the vocabulary title with translate string.
So in Dutch the title will be "Trefwoorden » letter" and in English it is "Keywords » letter"

2. What would be nice in is that you can set different url paths for the different languages. So in Dutch the path will be "onderwerpen/trefwoorden". But on the English website you don't want the Dutch path in the url. So if you can set another path for example "subjects/keywords" that would be much nicer.

Or maybe there is another way to change the url for multilanguage website including the letter behind it?

Thanks

Comments

domosapiens’s picture

Component: Translations » Code
domosapiens’s picture

Is there somebody who knows a solution for the second point?
I really got stuck on this one!

Thanks...

xano’s picture

Project: Vocabulary Index » Index
Version: 6.x-2.2 » 6.x-1.x-dev

Moving to Index since new features will no longer be added to Vocabulary Index.

This is an interesting feature. I'll have to think about how to implement this. I'm open to suggestions :)

BarisW’s picture

Xano,

we build a work-around to implement i18n paths for taxonomies. Are you interested in the code? It is built for Vocabindex though.

xano’s picture

Index doesn't do Taxonomy-specific paths any longer. It just has a general path and title. Users need to be able to configure different titles and paths for different languages.

See also #650520: Translations for every entity.

xano’s picture

Title: Multilanguage Title and Urlpath » Translatable title and page path
klonos’s picture

@Xano: I know you've been busy on implementing the #668440: Add filters to layers and #687034: Provide predefined indexes as examples and that you do this on your spare time, but did you make any progress on this one?

xano’s picture

Nope. I'll post new info as soon as it becomes available. You're free to help coding though.

xano’s picture

Status: Active » Closed (won't fix)

Marking this won't fix, because this can also be done by cloning an index and changing the title, description and page path of the clone. Adding this funcitonality to the index will cause too much clutter.