Translated templates often want to include their language in the resulting wiki code for better accessibility, proper RTL support etc. This language may be different from the language of the page they are transcluded in. {{PAGELANGUAGE}} allows to query the current page language, but that’s the language of the page the template is transcluded in. We need a magic word that’s hard coded in the translated pages to avoid hacks like creating a translation unit for the page language.
Acceptance criteria:
- Create a magic word that returns the current page’s page language.
- Make Translate substitute this magic word with its result on translated pages’ “translation page template” (i.e. anything outside of translation units). Magic words within translation units may or may not be substituted.