From: Bartosz DziewoƄski Date: Sat, 21 Jun 2014 10:50:22 +0000 (+0200) Subject: SpecialVersion: Localize '[no name]' X-Git-Tag: 1.31.0-rc.0~15294^2~1 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=25581b781c3ba0a63422ffbaf5abbb40b23a67f3;p=lhc%2Fweb%2Fwiklou.git SpecialVersion: Localize '[no name]' No one noticed this isn't localized because it's basically never shown in practice, but let's do it properly anyway. Change-Id: I43a03c54e064e62b1d459773f05536d2d2cd9468 --- diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index b0523a7fcd..543c8fee3f 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -594,7 +594,7 @@ class SpecialVersion extends SpecialPage { // Non localized version $extensionName = $extension['name']; } else { - $extensionName = '[no name]'; + $extensionName = $this->msg( 'version-no-ext-name' )->text(); } if ( isset( $extension['url'] ) ) { diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 76c9b8e96b..a664f4dbdb 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -3231,6 +3231,7 @@ "version-hook-name": "Hook name", "version-hook-subscribedby": "Subscribed by", "version-version": "($1)", + "version-no-ext-name": "[no name]", "version-svn-revision": "r$1", "version-license": "MediaWiki License", "version-ext-license": "License", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index a2ddc7abce..b8717e28ff 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -3393,6 +3393,7 @@ "version-hook-name": "Shown in [[Special:Version]].\n\nFor meaning of hook see [[mw:Special:MyLanguage/Manual:Hooks|mw:Manual:Hooks]] and [[w:Hooking]].", "version-hook-subscribedby": "Shown in [[Special:Version]]", "version-version": "{{Optional}}\nUsed in [[Special:Version]]. Preceded by the MediaWiki extension name.\n\nParameters:\n* $1 - version number of the extension", + "version-no-ext-name": "Used in [[Special:Version]], in the rows of the main table when a name for an extension is not provided.", "version-svn-revision": "{{Identical|Revision}}{{optional}}\nUsed in [[Special:Version]], preceeding the Subversion revision numbers of the extensions loaded inside brackets, like this: \"({{int:version-revision}} r012345\"). Parameters:\n* $1 - (Unused) directory revision number or empty string\n* $2 - checkout revision number", "version-license": "Used specifically for the MediaWiki software.\n\nUsed as heading in [[Special:Version]].", "version-ext-license": "Used in [[Special:Version]].\n\nUsed as label for the link pointing to the extension's license page. e.g. [[Special:Version/License/Maps]]\n{{Identical|License}}",