From: Lucas Werkmeister Date: Fri, 22 Dec 2017 14:46:30 +0000 (+0100) Subject: Add semantic tags to license info text X-Git-Tag: 1.31.0-rc.0~982^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=d73f4c167458e0afd7b17b48a0600f5e092e57a6 Add semantic tags to license info text Surround uppercased parts of the text in emphasis or strong importance tags, and then change the style of those tags to remove their special font weight or style. In normal browsers, there should be no visible difference, but other user agents might be able to utilize the additional semantic information. Change-Id: Ief505e28fe971da537726afd75238b87204b85dd --- diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index f176b40755..1088d72ed5 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -169,7 +169,9 @@ class SpecialVersion extends SpecialPage { $ret .= ''; return str_replace( "\t\t", '', $ret ) . "\n"; diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 301408fca8..ae34398969 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -3806,7 +3806,7 @@ "version-poweredby-others": "others", "version-poweredby-translators": "translatewiki.net translators", "version-credits-summary": "We would like to recognize the following persons for their contribution to [[Special:Version|MediaWiki]].", - "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.\n\nMediaWiki 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.\n\nYou 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 [//www.gnu.org/licenses/old-licenses/gpl-2.0.html read it online].", + "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.\n\nMediaWiki 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.\n\nYou 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 [//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/resources/src/mediawiki.special/mediawiki.special.version.css b/resources/src/mediawiki.special/mediawiki.special.version.css index ebb6b486c9..acc9f13295 100644 --- a/resources/src/mediawiki.special/mediawiki.special.version.css +++ b/resources/src/mediawiki.special/mediawiki.special.version.css @@ -24,3 +24,11 @@ th.mw-version-ext-col-label { -moz-column-width: 18em; -webkit-column-width: 18em; } + +.mw-version-license-info strong { + font-weight: normal; +} + +.mw-version-license-info em { + font-style: normal; +}