User:SPQRobin/Page language


 * PCL = page content language

Backend basics:
 * Fundamental question 1: should PCL be defined in the database? (Most likely yes.)
 * If yes, fundamental question 2: is PCL a property of a page, or of a specific revision?
 * The value is obviously a language code

Other backend:
 * How to handle the default value? Should we include a selector option "Use default language", which would be what getPageLanguage returns normally?
 * How does it interact with other PCL definitions, especially the hook (by which extensions, like Translate, can alter the PCL. Do they need to be able to disable setting the PCL through the selector?
 * A way to define the PCL as the user language ($wgLang)? E.g. value "user" in DB, instead of a language code.

Maybe a selector with options
 * Use default page content language
 * Use user interface language
 * (languages...)