Foxtrott has submitted this change and it was merged. Change subject: Add i18n file ......................................................................
Add i18n file Change-Id: I0d5e0a5c0bda8a605a1a77cb5102986a47fe1113 --- A PageTools.i18n.php M PageTools.php 2 files changed, 45 insertions(+), 2 deletions(-) Approvals: Foxtrott: Verified; Looks good to me, approved diff --git a/PageTools.i18n.php b/PageTools.i18n.php new file mode 100644 index 0000000..0510680 --- /dev/null +++ b/PageTools.i18n.php @@ -0,0 +1,42 @@ +<?php +/** + * The i18n file of the PageTools extension + * + * @copyright (C) 2013, Jean-Lou Dupont, Stephan Gambke + * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3 (or later) + * + * This file is part of the MediaWiki extension PageTools. + * The PageTools extension is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * The PageTools extension is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * @file + * @ingroup PageTools + */ + +$messages = array(); + +/** + * English + * @author Jean-Lou Dupont + * @author Stephan Gambke + */ +$messages['en'] = array( + 'pagetools-desc' => 'Parser functions for handling of category information, page title and page subtitle', +); + +/** Message documentation (Message documentation) + * @author Raimond Spekking + */ +$messages['qqq'] = array( + 'pagetools-desc' => '{{desc|name=Page Tools|url=https://www.mediawiki.org/wiki/Extension:PageTools}}', +); diff --git a/PageTools.php b/PageTools.php index 6c501eb..29b825c 100644 --- a/PageTools.php +++ b/PageTools.php @@ -69,10 +69,11 @@ 'author' => array( '[http://www.mediawiki.org/wiki/User:Jldupont Jean-Lou Dupont]', '[http://www.mediawiki.org/wiki/User:F.trott Stephan Gambke]' ), 'version' => PT_VERSION, 'url' => 'https://www.mediawiki.org/wiki/Extension:PageTools', - 'description' => 'Parser functions for handling of category information, page title and page subtitle', + 'descriptionmsg' => 'pagetools-desc', ); -$wgAutoloadClasses[ 'PageTools' ] = dirname( __FILE__ ) . '/PageTools.class.php'; +$wgExtensionMessagesFiles['PageTools'] = __DIR__ . '/PageTools.i18n.php'; +$wgAutoloadClasses[ 'PageTools' ] = __DIR__ . '/PageTools.class.php'; // Specify the function that will initialize the parser functions $wgHooks[ 'ParserFirstCallInit' ][ ] = 'PageToolsSetupParserFunction'; -- To view, visit https://gerrit.wikimedia.org/r/101183 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0d5e0a5c0bda8a605a1a77cb5102986a47fe1113 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PageTools Gerrit-Branch: master Gerrit-Owner: Raimond Spekking <raimond.spekk...@gmail.com> Gerrit-Reviewer: Foxtrott <s7ep...@gmail.com> Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits