JoelKP has uploaded a new change for review. https://gerrit.wikimedia.org/r/196519
Change subject: Register extension type for Special:Version used for PhpTags extensions ...................................................................... Register extension type for Special:Version used for PhpTags extensions PhpTags extensions register themselves in $wgExtensionCredits['phptags'], but no such group actually existed - so the extensions were listed under "Other". With this change, they are listed under "PhpTags extensions". Two other changes to appearance were also made: - Add the license name on Special:Version ("GPL-2.0+"). - A few language corrections in the i18n en.json and qqq.json files. Change-Id: I0c62da0ccf7aecce0aeea9ca8bd225b0237284d0 --- M PhpTags.php M i18n/en.json M i18n/qqq.json 3 files changed, 17 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PhpTags refs/changes/19/196519/1 diff --git a/PhpTags.php b/PhpTags.php index 916b474..747371f 100644 --- a/PhpTags.php +++ b/PhpTags.php @@ -31,7 +31,8 @@ 'version' => PHPTAGS_VERSION, 'url' => 'https://www.mediawiki.org/wiki/Extension:PhpTags', 'author' => '[https://www.mediawiki.org/wiki/User:Pastakhov Pavel Astakhov]', - 'descriptionmsg' => 'phptags-desc' + 'descriptionmsg' => 'phptags-desc', + 'license-name' => 'GPL-2.0+' ); // Allow translations for this extension @@ -107,6 +108,14 @@ $wgTrackingCategories[] = 'phptags-compiler-error-category'; $wgTrackingCategories[] = 'phptags-runtime-error-category'; +// Register extension type for Special:Version used for PhpTags extensions +/** + * @codeCoverageIgnore + */ +$wgHooks['ExtensionTypes'][] = function( &$extTypes ) { + $extTypes['phptags'] = wfMessage( 'phptags-extension-type' )->text(); +}; + /** * Add files to phpunit test * @codeCoverageIgnore diff --git a/i18n/en.json b/i18n/en.json index d2b9658..107412d 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -4,10 +4,11 @@ "pastakhov" ] }, - "phptags-compiler-error-category": "Pages with wrong PhpTags code", + "phptags-compiler-error-category": "Pages with invalid PhpTags code", "phptags-compiler-error-category-desc": "The PhpTags code has an error in it.", "phptags-runtime-error-category": "Pages with PhpTags errors", "phptags-runtime-error-category-desc": "There was an error when processing PhpTags code on the page.", "phptags-desc": "Allows users to use the Magic expressions with PHP language syntax", - "phptags-disabled-for-namespace": "Extension PhpTags is disabled for the namespace \"$1\"." + "phptags-disabled-for-namespace": "Extension PhpTags is disabled for the namespace \"$1\".", + "phptags-extension-type": "PhpTags extensions" } diff --git a/i18n/qqq.json b/i18n/qqq.json index 85d2b75..0ee306e 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -4,10 +4,11 @@ "pastakhov" ] }, - "phptags-compiler-error-category": "Name of [[mw:Help:Tracking categories|tracking category]] where pages saved with wrong phptags code", + "phptags-compiler-error-category": "Name of the [[mw:Help:Tracking categories|tracking category]] for pages saved with invalid PhpTags code", "phptags-compiler-error-category-desc": "Description on [[Special:TrackingCategories]] for the {{msg-mw|phptags-compiler-error-category}} tracking category.", - "phptags-runtime-error-category": "Tracking category for pages with errors from phptags runtime", + "phptags-runtime-error-category": "Tracking category for pages with PhpTags runtime errors", "phptags-runtime-error-category-desc": "Description on [[Special:TrackingCategories]] for the {{msg-mw|phptags-runtime-error-category}} tracking category.", "phptags-desc": "{{desc|name=PhpTags|url=http://www.mediawiki.org/wiki/Extension:PhpTags}}", - "phptags-disabled-for-namespace": "Error message when is trying to use this extension in not allowed namespaces, parameters:\n* $1 - the namespace text" + "phptags-disabled-for-namespace": "Error message when is trying to use this extension in not allowed namespaces, parameters:\n* $1 - the namespace text", + "phptags-extension-type": "The heading used on [[Special:Version]] to group extensions for PhpTags together." } -- To view, visit https://gerrit.wikimedia.org/r/196519 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0c62da0ccf7aecce0aeea9ca8bd225b0237284d0 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PhpTags Gerrit-Branch: master Gerrit-Owner: JoelKP <joelkpetters...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits