Wikimedia

Convert UniversalLanguageSelector extension.json to manifest_version 2

In JSON manifest version 1, descriptions of global variables is done by appending @ to the variable name and then writing the description: Example;

"config": {
    "@PopupsVirtualPageViews": "@var bool: Whether the extension should log virtual pageviews.",
    "PopupsVirtualPageViews": false
},

In manifest version 2, "description" and "value" fields are available So the above data can be more cleanly written as:

    "config": {
      "PopupsVirtualPageViews": {
        "description": "@var bool: Whether the extension should log virtual pageviews.",
        "value": false
    }
},

The UniversalLanguageSelector is Mediawiki extension that allows users to select a language and configure its support in an easy way on multilingual wiki.

This extension is still using the old manifest_version 1.

Your work in this task is to convert it to manifest version 2.

There's a mediawiki maintenance script which can help in semi-automating this conversion.

Task tags

  • json

Students who completed this task

Zoran Dori

Task type

  • code Code
close

2019