Index: trunk/extensions/ApiExplorer/SpecialApiExplorer.php |
— | — | @@ -25,7 +25,9 @@ |
26 | 26 | |
27 | 27 | $dir = dirname( __FILE__ ) . '/'; |
28 | 28 | $wgExtensionMessagesFiles['ApiExplorer'] = $dir . 'ApiExplorer.i18n.php'; |
| 29 | +// @todo FIXME: Special pages need an aliases file for i18n of special page names. |
29 | 30 | |
| 31 | +// @todo FIXME: Should be in a class and be added from $wgSpecialPages. |
30 | 32 | function wfSpecialApiExplorer () { |
31 | 33 | global $IP; |
32 | 34 | require_once "$IP/includes/SpecialPage.php"; |
— | — | @@ -48,8 +50,6 @@ |
49 | 51 | global $wgOut, $wgExtensionsPath, $wgCityId, $wgStyleVersion; |
50 | 52 | wfProfileIn( __METHOD__ ); |
51 | 53 | |
52 | | - wfLoadExtensionMessages( "AutoCreateWiki" ); // TODO: This isn't needed anymore, even in Wikia code (which is 2 versions back at the moment), is it? |
53 | | - |
54 | 54 | // TODO: Make this work for ResourceLoader (Wikia isn't using RL yet at the time of this writing). |
55 | 55 | // Wikia has the cachebuster in the wgExtensionPath (we rewrite that in varnish because many proxies won't cache things that have "?" in the URL), but other MediaWikis need the style-version in the querystring. |
56 | 56 | $cbSuffix = ( isset( $wgCityId ) ? "?{$wgStyleVersion}" : "" ); |
— | — | @@ -77,7 +77,7 @@ |
78 | 78 | } |
79 | 79 | </style> |
80 | 80 | <div id='apEx_intro'> |
81 | | - <?= wfMsg('apiexplorer-intro', "<a href='http://www.mediawiki.org/wiki/API:Main_page'>http://www.mediawiki.org/wiki/API:Main_page</a>") ?> |
| 81 | + <?= wfMsg('apiexplorer-intro') ?> |
82 | 82 | </div> |
83 | 83 | <div id='apEx_loading'><?= wfMsg('apiexplorer-loading') ?></div> |
84 | 84 | <div id='apEx'> |
Index: trunk/extensions/ApiExplorer/ApiExplorer.i18n.php |
— | — | @@ -12,8 +12,8 @@ |
13 | 13 | */ |
14 | 14 | $messages['en'] = array( |
15 | 15 | 'apiexplorer' => 'API Explorer', |
16 | | - 'apiexplorer-desc' => 'Page for interactively exploring the documentation of the live version of the MediaWiki API running on this installation.', |
17 | | - 'apiexplorer-intro' => "This page shows documentation for the current wiki's API. Please click on a function below to see more info about what parameters can be used in each call. For the general MediaWiki API documentation, see $1", |
| 16 | + 'apiexplorer-desc' => 'Page for interactively exploring the documentation of the MediaWiki API', |
| 17 | + 'apiexplorer-intro' => "This page shows documentation for the current wiki's API. Please click on a function below to see more info about what parameters can be used in each call. Also see [http://www.mediawiki.org/wiki/API:Main_page the general MediaWiki API documentation].", |
18 | 18 | |
19 | 19 | 'apiexplorer-loading' => 'Loading functions...', |
20 | 20 | ); |