MediaWiki talk:Lang
Regarding the definition of the interface language
Right now the site uses {{uselang}}
and {{intlang}}
templates (this is a new version of {{uselang}}
) to define the interface language. This is not implemented in the best way: by checking certain interface messages for specific text. This is the only way to properly implement a language definition. This option is not ideal, since if the interface is not translated into some language, it will be impossible to determine it (for example aa lang). There are only two options on what to do to solve this problem:
- Create MediaWiki:Lang which will store all the language codes (MediaWiki:Lang/es = es, MediaWiki:Lang/ca = ca, MediaWiki:Lang/ru = ru, etc.), so it will be enough to enter
{{int:lang}}
to get the interface language. - Or add a mediawiki extension that adds a magic word that displays the interface language code: mw:Extension:UILangCode. --Max34 (talk) 7:32, 15 Jun 2024
(using Template:Message) Extensions are a no-go since I presently don't have access to the server containing the wiki. I can do the first option, but I'd have to do it later. --PabloS (talk) 18:38, 15 Jun 2024 (UTC)