Page MenuHomePhabricator

Convert ContentTranslation extension.json to manifest_version 2
Closed, ResolvedPublic

Description

ContentTranslation extension should be converted to use manifest version 2 in its extension.json file.

In extension manifest version 1, documentation was made like this:

	"config": {
		"@ContentTranslationTargetNamespace": "Target namespace to publish articles. Values can be valid namespace ids. Example: 0 for Main, 2 for User namespace",
		"ContentTranslationTargetNamespace": 0,
         }

This documentation can now be done with "description" and "value" fields available in manifest_version: 2 like this:

	"config": {
             "ContentTranslationTargetNamespace": {
		  "description": "Target namespace to publish articles. Values can be valid namespace ids. Example: 0 for Main, 2 for User namespace",
		   "value": 0,
              }
	},

The maintenance script maintenance/updateExtensionJsonSchema.php semi-automates this conversion and is recommended to be used

Event Timeline

Change 561742 had a related patch set uploaded (by Minhducsun2002; owner: Minhducsun2002):
[mediawiki/extensions/ContentTranslation@master] Update extension.json to version 2

https://gerrit.wikimedia.org/r/561742

Change 561742 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Update extension.json to version 2

https://gerrit.wikimedia.org/r/561742

Ammarpad assigned this task to minhducsun2002.