I've set up a multilanguage site in Drupal 7. In a template I need to add a link to a specific content node. This node has translations and path aliases like so:
node/42 = pathalias_de (german version) node/43 = pathalias_en (english version)
In the template I'd like to call
url() to get the link to the aliased version of the content node in the current language.
On the german page it should link to
/de/pathalias_de on the english page to
I've tried several variations, like calling the nid, calling the alias, passing the current language object to
Is this something
url() should be able to do or do I need a different function? Thanks!