From: Chad Horohoe Date: Fri, 20 Aug 2010 16:35:00 +0000 (+0000) Subject: Like the installer, make Special:Version header localizable. Want to reduce some... X-Git-Tag: 1.31.0-rc.0~35425 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=8ed3cdfebfbabe74dbd12ea49fe14f428d19ddbd;p=lhc%2Fweb%2Fwiklou.git Like the installer, make Special:Version header localizable. Want to reduce some duplication here --- diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index d195198ee5..46efc05103 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -75,33 +75,23 @@ class SpecialVersion extends SpecialPage { * @return string */ private static function getMediaWikiCredits() { + global $wgLang; + + $authorList = array( 'Magnus Manske', 'Brion Vibber', 'Lee Daniel Crocker', + 'Tim Starling', 'Erik Möller', 'Gabriel Wicke', 'Ævar Arnfjörð Bjarmason', + 'Niklas Laxström', 'Domas Mituzas', 'Rob Church', 'Yuri Astrakhan', + 'Aryeh Gregor', 'Aaron Schulz', 'Andrew Garrett', 'Raimond Spekking', + 'Alexandre Emsenhuber', 'Siebrand Mazeland', 'Chad Horohoe', + wfMsg( 'others' ) + ); $ret = Xml::element( 'h2', array( 'id' => 'mw-version-license' ), wfMsg( 'version-license' ) ); // This text is always left-to-right. - $ret .= '
'; + $ret .= '
'; $ret .= "__NOTOC__ - This wiki is powered by '''[http://www.mediawiki.org/ MediaWiki]''', - copyright © 2001-2010 Magnus Manske, Brion Vibber, Lee Daniel Crocker, - Tim Starling, Erik Möller, Gabriel Wicke, Ævar Arnfjörð Bjarmason, - Niklas Laxström, Domas Mituzas, Rob Church, Yuri Astrakhan, Aryeh Gregor, - Aaron Schulz, Andrew Garrett, Raimond Spekking, Alexandre Emsenhuber, - Siebrand Mazeland, Chad Horohoe and others. - - MediaWiki 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 2 of the License, or - (at your option) any later version. - - MediaWiki 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 [{{SERVER}}{{SCRIPTPATH}}/COPYING a copy of the GNU General Public License] - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - or [http://www.gnu.org/licenses/old-licenses/gpl-2.0.html read it online]. - "; + " . wfMsg( 'version-poweredby-credits', date( 'Y' ), + $wgLang->listToText( $authorList ) ) . "\n + " . wfMsg( 'version-license-info' ); $ret .= '
'; return str_replace( "\t\t", '', $ret ) . "\n"; diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index a731cdd193..aec4f2fd3a 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -4243,6 +4243,12 @@ You can also [[Special:Watchlist/edit|use the standard editor]].', 'version-version' => '(Version $1)', 'version-svn-revision' => '(r$2)', # only translate this message to other languages if you have to change it 'version-license' => 'License', +'version-poweredby-credits' => "This wiki is powered by '''[http://www.mediawiki.org/ MediaWiki]''', copyright © 2001-$1 $2.", // $1 is the current year, $2 is the list of authors +'version-license-info' => "MediaWiki 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 2 of the License, or (at your option) any later version. + +MediaWiki 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 [{{SERVER}}{{SCRIPTPATH}}/COPYING a copy of the GNU General Public License] along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA or [http://www.gnu.org/licenses/old-licenses/gpl-2.0.html read it online].", 'version-software' => 'Installed software', 'version-software-product' => 'Product', 'version-software-version' => 'Version', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 9c89aa511d..2d93cf65ad 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -3138,6 +3138,8 @@ $wgMessageStructure = array( 'version-version', 'version-svn-revision', 'version-license', + 'version-poweredby-credits', + 'version-license-info', 'version-software', 'version-software-product', 'version-software-version',