This patch changes the $url in i18n_l() to the ones of the translated nodes or taxonomy-listings, if they exist.

E.g. when node/23 is the 'en' version of node/65, and node/45 the 'de version, the links on the flags will change into:
en/node/23
de/node/45
when viewing that node/65.

Something similar goes for taxonomy listings. only there the tid(s) will change into their translated equivalent, if existing, otherwise they remain the same. Works for complex urls with or or and/.

Bèr

CommentFileSizeAuthor
i18n_links_to_translations.patch4.38 KBBèr Kessels
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Uwe Hermann’s picture

This sound very cool. I'm very interested in this patch. One question: Does it support URL aliases, e.g. mapping of en/welcome to de/willkommen etc.?

Bèr Kessels’s picture

I do not know. Sorry. Maybe you can check this for me, Uwe? I have released my sites that use this without paths, because the concept of paths became far too complex (vor my cleints) when using i18n.

Jose Reyero’s picture

Committed to HEAD