SpecialVersion: Localize '[no name]'
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 21 Jun 2014 10:50:22 +0000 (12:50 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sat, 21 Jun 2014 11:13:50 +0000 (13:13 +0200)
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

includes/specials/SpecialVersion.php
languages/i18n/en.json
languages/i18n/qqq.json

index b0523a7..543c8fe 100644 (file)
@@ -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'] ) ) {
index 76c9b8e..a664f4d 100644 (file)
        "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",
index a2ddc7a..b8717e2 100644 (file)
        "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}}",