User:Egor/How to add a language


 * If the language does not exist in MediaWiki's Names.php, you have to add it manually. (This is the case for alternative translations)
 * In  add a line like.
 * Generate new UniversalLanguageSelector search data, to make the new language searchable by its title in addition to its language code:


 * Add patch &rarr; language code mapping to the thcrap_tl_patches hook located at Patch:Supported languages.
 * Ensure that this actually worked by running.
 * If it didn't work,  and run.
 * Create Patch:lang_ xx with the following as content, modifying the dependencies as needed.
 * Create Portal: Xx with   as content.
 * Add a portal link to the main page.
 * Add a flag at File:Flag xx .svg.
 * If the language is built into MediaWiki, someone could've added some pages prematurely. Make sure to kick them (the pages).