r60490 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60489‎ | r60490 | r60491 >
Date:07:08, 30 December 2009
Author:raymond
Status:ok
Tags:
Comment:
Tweak 'HMTL 5' -> 'HTML5' per suggestion on translatewiki: http://translatewiki.net/wiki/Thread:Support/HTML5
See http://en.wikipedia.org/wiki/HTML5 too.
Modified paths:
  • /trunk/extensions/Configure/settings/Settings.i18n.php (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/HTMLForm.php (modified) (history)
  • /trunk/phase3/includes/Html.php (modified) (history)
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -3682,7 +3682,7 @@
36833683 }
36843684
36853685 /**
3686 - * Provide an array of HTML 5 attributes to put on an input element
 3686+ * Provide an array of HTML5 attributes to put on an input element
36873687 * intended for the user to enter a new password. This may include
36883688 * required, title, and/or pattern, depending on $wgMinimalPasswordLength.
36893689 *
Index: trunk/phase3/includes/HTMLForm.php
@@ -66,7 +66,7 @@
6767 'edittools' => 'HTMLEditTools',
6868
6969 # HTMLTextField will output the correct type="" attribute automagically.
70 - # There are about four zillion other HTML 5 input types, like url, but
 70+ # There are about four zillion other HTML5 input types, like url, but
7171 # we don't use those at the moment, so no point in adding all of them.
7272 'email' => 'HTMLTextField',
7373 'password' => 'HTMLTextField',
Index: trunk/phase3/includes/Html.php
@@ -20,7 +20,7 @@
2121 /**
2222 * This class is a collection of static functions that serve two purposes:
2323 *
24 - * 1) Implement any algorithms specified by HTML 5, or other HTML
 24+ * 1) Implement any algorithms specified by HTML5, or other HTML
2525 * specifications, in a convenient and self-contained way.
2626 *
2727 * 2) Allow HTML elements to be conveniently and safely generated, like the
@@ -40,7 +40,7 @@
4141 * <a> elements.
4242 */
4343 class Html {
44 - # List of void elements from HTML 5, section 9.1.2 as of 2009-08-10
 44+ # List of void elements from HTML5, section 9.1.2 as of 2009-08-10
4545 private static $voidElements = array(
4646 'area',
4747 'base',
@@ -59,7 +59,7 @@
6060 );
6161
6262 # Boolean attributes, which may have the value omitted entirely. Manually
63 - # collected from the HTML 5 spec as of 2009-08-10.
 63+ # collected from the HTML5 spec as of 2009-08-10.
6464 private static $boolAttribs = array(
6565 'async',
6666 'autobuffer',
@@ -108,7 +108,7 @@
109109 public static function rawElement( $element, $attribs = array(), $contents = '' ) {
110110 global $wgHtml5, $wgWellFormedXml;
111111 $attribs = (array)$attribs;
112 - # This is not required in HTML 5, but let's do it anyway, for
 112+ # This is not required in HTML5, but let's do it anyway, for
113113 # consistency and better compression.
114114 $element = strtolower( $element );
115115
@@ -231,7 +231,7 @@
232232 'link' => array( 'media' => 'all' ),
233233 'menu' => array( 'type' => 'list' ),
234234 # Note: the use of text/javascript here instead of other JavaScript
235 - # MIME types follows the HTML 5 spec.
 235+ # MIME types follows the HTML5 spec.
236236 'script' => array( 'type' => 'text/javascript' ),
237237 'style' => array(
238238 'media' => 'all',
@@ -315,11 +315,11 @@
316316 $key = $value;
317317 }
318318
319 - # Not technically required in HTML 5, but required in XHTML 1.0,
 319+ # Not technically required in HTML5, but required in XHTML 1.0,
320320 # and we'd like consistency and better compression anyway.
321321 $key = strtolower( $key );
322322
323 - # See the "Attributes" section in the HTML syntax part of HTML 5,
 323+ # See the "Attributes" section in the HTML syntax part of HTML5,
324324 # 9.1.2.3 as of 2009-08-10. Most attributes can have quotation
325325 # marks omitted, but not all. (Although a literal " is not
326326 # permitted, we don't check for that, since it will be escaped
@@ -339,7 +339,7 @@
340340
341341 if ( in_array( $key, self::$boolAttribs ) ) {
342342 # In XHTML 1.0 Transitional, the value needs to be equal to the
343 - # key. In HTML 5, we can leave the value empty instead. If we
 343+ # key. In HTML5, we can leave the value empty instead. If we
344344 # don't need well-formed XML, we can omit the = entirely.
345345 if ( !$wgWellFormedXml ) {
346346 $ret .= " $key";
@@ -454,7 +454,7 @@
455455
456456 /**
457457 * Convenience function to produce an <input> element. This supports the
458 - * new HTML 5 input types and attributes, and will silently strip them if
 458+ * new HTML5 input types and attributes, and will silently strip them if
459459 * $wgHtml5 is false.
460460 *
461461 * @param $name string name attribute
Index: trunk/phase3/includes/DefaultSettings.php
@@ -907,7 +907,7 @@
908908 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
909909
910910 /**
911 - * Should we output an HTML 5 doctype? This mode is still experimental, but
 911+ * Should we output an HTML5 doctype? This mode is still experimental, but
912912 * all indications are that it should be usable, so it's enabled by default.
913913 * If all goes well, it will be removed and become always true before the 1.16
914914 * release.
@@ -927,7 +927,7 @@
928928 $wgAllowRdfaAttributes = true;
929929
930930 /**
931 - * Enabled HTML 5 microdata attributes for use in wikitext, if $wgHtml5 is also true.
 931+ * Enabled HTML5 microdata attributes for use in wikitext, if $wgHtml5 is also true.
932932 */
933933 $wgAllowMicrodataAttributes = true;
934934
@@ -939,7 +939,7 @@
940940 *
941941 * Setting this to false may omit quotation marks on some attributes, omit
942942 * slashes from some self-closing tags, omit some ending tags, etc., where
943 - * permitted by HTML 5. Setting it to true will not guarantee that all pages
 943+ * permitted by HTML5. Setting it to true will not guarantee that all pages
944944 * will be well-formed, although non-well-formed pages should be rare and it's
945945 * a bug if you find one. Conversely, setting it to false doesn't mean that
946946 * all XML-y constructs will be omitted, just that they might be.
Index: trunk/extensions/Configure/settings/Settings.i18n.php
@@ -485,7 +485,7 @@
486486 'configure-setting-wgXMLMimeTypes' => 'Detectable XML MIME types',
487487 'configure-setting-wgXMLMimeTypes-key' => 'MIME type',
488488 'configure-setting-wgEnableTooltipsAndAccesskeys' => 'Enable application of access keys and tooltips',
489 - 'configure-setting-wgHtml5' => 'Output an HTML 5 doctype',
 489+ 'configure-setting-wgHtml5' => 'Output an HTML5 doctype',
490490 'configure-setting-wgHtml5Version' => 'Value of the version attribute in the <code><nowiki><html></nowiki></code> tag',
491491 'configure-setting-wgWellFormedXml' => 'Try to make the HTML output well-formed XML',
492492 'configure-setting-wgDocType' => 'Document type to use in the DOCTYPE declaration',
@@ -494,7 +494,7 @@
495495 'configure-setting-wgXhtmlDefaultNamespace' => 'Default XHTML namespace',
496496 'configure-setting-wgXhtmlNamespaces' => 'Other XHTML namespaces',
497497 'configure-setting-wgXhtmlNamespaces-key' => 'Namespace',
498 - 'configure-setting-wgAllowMicrodataAttributes' => 'Enable HTML 5 microdata attributes for use in wikitext',
 498+ 'configure-setting-wgAllowMicrodataAttributes' => 'Enable HTML5 microdata attributes for use in wikitext',
499499 'configure-setting-wgAllowRdfaAttributes' => 'Enable RDFa attributes for use in wikitext',
500500 'configure-setting-wgUseZhdaemon' => 'Use ZhDaemon to perform Chinese text processing',
501501 'configure-setting-wgZhdaemonHost' => 'ZhDaemon host',
@@ -5023,7 +5023,7 @@
50245024 'configure-setting-wgXMLMimeTypes' => 'Tableau de types MIME détectables dans XML',
50255025 'configure-setting-wgXMLMimeTypes-key' => 'Type MIME',
50265026 'configure-setting-wgEnableTooltipsAndAccesskeys' => "Activer l'application des touches d'accès et des info-bulles",
5027 - 'configure-setting-wgHtml5' => 'Utiliser HTML 5',
 5027+ 'configure-setting-wgHtml5' => 'Utiliser HTML5',
50285028 'configure-setting-wgHtml5Version' => "Valeur de l'attribut « version » dans la balise <code><nowiki><html></nowiki></code>",
50295029 'configure-setting-wgWellFormedXml' => "Essayer de faire en sorte que l'HTML produit soit du XML valide",
50305030 'configure-setting-wgDocType' => 'Type de document à utiliser dans la déclaration DOCTYPE',
@@ -5032,7 +5032,7 @@
50335033 'configure-setting-wgXhtmlDefaultNamespace' => 'Espace de noms XHTML par défaut',
50345034 'configure-setting-wgXhtmlNamespaces' => 'Autres espaces de noms XHTML',
50355035 'configure-setting-wgXhtmlNamespaces-key' => 'Espace de noms',
5036 - 'configure-setting-wgAllowMicrodataAttributes' => 'Activer les attributs de microdonnées HTML 5 dans le wikitexte',
 5036+ 'configure-setting-wgAllowMicrodataAttributes' => 'Activer les attributs de microdonnées HTML5 dans le wikitexte',
50375037 'configure-setting-wgAllowRdfaAttributes' => 'Activer les attributs RDFa dans le wikitexte',
50385038 'configure-setting-wgUseZhdaemon' => 'Utiliser ZhDaemon pour le traitement de texte en chinois',
50395039 'configure-setting-wgZhdaemonHost' => 'Hôte de ZhDaemon',
@@ -6505,7 +6505,7 @@
65066506 'configure-setting-wgMathCheckFiles' => 'יש לבדוק האם התיקייה והקובץ קיימים בעת ייצור תמונות מתמטיות',
65076507 'configure-setting-wgXMLMimeTypes' => 'טיפוסי MIME XML מזוהים',
65086508 'configure-setting-wgXMLMimeTypes-key' => 'סוג MIME',
6509 - 'configure-setting-wgHtml5' => 'פלט במסמך מסוג HTML 5',
 6509+ 'configure-setting-wgHtml5' => 'פלט במסמך מסוג HTML5',
65106510 'configure-setting-wgDocType' => 'סוג המסמך לשימוש בהצהרת ה־DOCTYPE',
65116511 'configure-setting-wgMimeType' => 'טיפוס ה־MIME של דפי ויקי',
65126512 'configure-setting-wgXhtmlDefaultNamespace' => 'מרחב השם כברירת המחדל של XHTML',
@@ -10636,7 +10636,7 @@
1063710637 'configure-setting-wgXMLMimeTypes' => 'Array met te herkennen XML MIME-typen',
1063810638 'configure-setting-wgXMLMimeTypes-key' => 'MIME-type',
1063910639 'configure-setting-wgEnableTooltipsAndAccesskeys' => 'Het toevoegen van sneltoetsen en hulpteksten inschakelen',
10640 - 'configure-setting-wgHtml5' => 'HTML 5 doctype als uitvoer geven',
 10640+ 'configure-setting-wgHtml5' => 'HTML5 doctype als uitvoer geven',
1064110641 'configure-setting-wgHtml5Version' => 'Waarde voor het versieattribuut in de tag <code><nowiki><html></nowiki></code>',
1064210642 'configure-setting-wgWellFormedXml' => 'Probeer de HTML-uitvoer als correct gevormde XML te maken',
1064310643 'configure-setting-wgDocType' => 'Documenttype dat gebruikt wordt in de DOCTYPE-declaratie',
@@ -10645,7 +10645,7 @@
1064610646 'configure-setting-wgXhtmlDefaultNamespace' => 'Standaard XHTML-naamruimte',
1064710647 'configure-setting-wgXhtmlNamespaces' => 'Andere XHTML-naamruimten',
1064810648 'configure-setting-wgXhtmlNamespaces-key' => 'Naamruimte',
10649 - 'configure-setting-wgAllowMicrodataAttributes' => 'HTML 5 microdataattributen voor gebruik in wikitekst inschakelen',
 10649+ 'configure-setting-wgAllowMicrodataAttributes' => 'HTML5 microdataattributen voor gebruik in wikitekst inschakelen',
1065010650 'configure-setting-wgAllowRdfaAttributes' => 'RDFa-attributen voor gebruik in wikitekst inschakelen',
1065110651 'configure-setting-wgUseZhdaemon' => 'ZhDaemon gebruiken voor het verwerken van Chinese tekst',
1065210652 'configure-setting-wgZhdaemonHost' => 'Host voor ZhDaemon',

Status & tagging log