Thread:Help talk:Extension:Translate/Translation language/reply (8)

Substing is not an alternative since the message should be dynamically updated depending on the current language of the translation.

meta:Template:Pagelang won't do the trick since this also relies on #titleparts which will not give the relevant result on Special:Translation.

"Page content language" on the info page is what is needed for a) but for b) we would instead want "data-language" or "data-targetlangcode". I'll add a note about this on 57603. Upon closer inspection of translatewiki.net I see that their template also breaks on Special:Translation (returning the interface language instead of the target language)* so I'll consider this to not have a solution for now. To avoid confusion the Commons template now only returns the transcluded message in a) (leaving a link to the english page for b).

Anyway thanks for helping me get to the bottom of this.


 * To see:
 * 1) go to  filter by "No such special page".
 * 2) Click on the message and see the link + transcluded text in the definition.
 * 3) Use the language drop-down menu to switch to another language
 * 4) Click on the message and see the link+transcluded text in the definition, in the same language as in step 2.