Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am helping to build a bilingual website using MLP on TextPattern. It's trivial to put a link to the top level page of another language, but how to put a link to the current page in another language?

Eg. /en/contact should link to /de/kontakt (the same article in another language).

I'm sure there are some variables somewhere that I could put into the template that would be filled with the correct links.

share|improve this question

You can use the <txp:l10n_lang_list /> tag.

According to the plugin help documentation:

On an article list page, this outputs all of the site’s available languages. On individual articles it lists only those languages the article has renditions for.

Remember that section names for URLs aren't translatable by the MLP. So /en/contact will link to /de/contact. On the other hand, URLs for articles are translatable.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.