API to localize a path?
I finally found out about language_negotiation_get_switch_links($type,$path). The tricky part is the $type argument. The types are defined by implementations of hook_language_types_info() and at least for my setup $type = 'language' does the trick.