Topic on Project:Support desk

Is there a {{USERLANG}} function similar to {{CONTENTLANG}}?

2
Technical 13 (talkcontribs)
Bawolff (talkcontribs)

Not easily.

There is a way though, doing {{int:lang}} will translcude mediawiki:lang/<User_lang_code_here>. So if you create mediawiki:lang/en, mediawiki:lang/fr, etc with the relavent codes, {{int:lang}} would work like userlanguage (Yes this is a horrible ugly hack. Its what is done on Wikimedia commons).

Reply to "Is there a {{USERLANG}} function similar to {{CONTENTLANG}}?"