# mediawiki-extensions-PerPageLanguage **Repository Path**: mirrors_wikimedia/mediawiki-extensions-PerPageLanguage ## Basic Information - **Project Name**: mediawiki-extensions-PerPageLanguage - **Description**: Github mirror of "mediawiki/extensions/PerPageLanguage" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-23 - **Last Updated**: 2026-07-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PerPageLanguage The extension automatically switches the interface language when it detects that the page being visited has a language code set in the database (via Special:PageLanguage). It also adds a helper link (in the page tools) to set this page's content language via the Special page. The extension requires the `$wgPageLanguageUseDB` global to be set to `true`. # Requirements * MediaWiki 1.42+ * The extension requires the `$wgPageLanguageUseDB` global to be set to `true` # Setup * Clone to the `extensions` folder * Add `wfLoadExtension('PerPageLanguage')` to the settings file # Usage * Change some page language to the desired one via `Special:PageLanguage` * Visit the page and ensure your interface language is switched to the configured page language # Settings * `$wgPerPageLanguageIgnoreUserSetting` (default is `false`) - if to ignore the user's language set in their preferences. By default, the extension will only switch the interface language to the page language if it detects that the user language set matches the `$wgLanguageCode` setting. Setting this to `true` will make the extension ignore the user setting and *always* switch the interface language to the page language