Lucas Werkmeister (WMDE) has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/399818 )

Change subject: Add semantic tags to license info text
......................................................................

Add semantic tags to license info text

Instead of writing parts of the text in UPPERCASE, surround it with
emphasis or strong importance tags, and then change the style of those
tags back to UPPERCASE via CSS. 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
---
M includes/specials/SpecialVersion.php
M languages/i18n/en.json
M resources/src/mediawiki.special/mediawiki.special.version.css
3 files changed, 12 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/18/399818/1

diff --git a/includes/specials/SpecialVersion.php 
b/includes/specials/SpecialVersion.php
index f176b40..2b72403 100644
--- a/includes/specials/SpecialVersion.php
+++ b/includes/specials/SpecialVersion.php
@@ -169,7 +169,7 @@
                $ret .= '<div class="plainlinks">';
                $ret .= "__NOTOC__
                " . self::getCopyrightAndAuthorList() . "\n
-               " . wfMessage( 'version-license-info' )->text();
+               " . '<div class="mw-version-license-info">' . wfMessage( 
'version-license-info' )->text() . '</div>';
                $ret .= '</div>';
 
                return str_replace( "\t\t", '', $ret ) . "\n";
diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index 301408f..e91cd4e 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 <em>without any warranty</em>; without 
even the implied warranty of <strong>merchantability</strong> or 
<strong>fitness for a particular purpose</strong>. 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 ebb6b48..5fd87bb 100644
--- a/resources/src/mediawiki.special/mediawiki.special.version.css
+++ b/resources/src/mediawiki.special/mediawiki.special.version.css
@@ -24,3 +24,13 @@
        -moz-column-width: 18em;
        -webkit-column-width: 18em;
 }
+
+.mw-version-license-info strong {
+  text-transform: uppercase;
+  font-weight: normal;
+}
+
+.mw-version-license-info em {
+  text-transform: uppercase;
+  font-style: normal;
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/399818
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ief505e28fe971da537726afd75238b87204b85dd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Lucas Werkmeister (WMDE) <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to