Download & Extend

switcch to translated nodes and taxonomy-listings

Project:Internationalization
Version:master
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

AttachmentSizeStatusTest resultOperations
i18n_links_to_translations.patch4.38 KBIgnored: Check issue status.NoneNone

Comments

#1

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.?

#2

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.

#3

Committed to HEAD