Translations:Help:Extension:Translate/Page translation administration/190/en

Some magic functions and parser tags allow setting the output language, in which case you can use magic word $1 that returns either the source language for untranslated units or the target language for translated units.