Bug 672453 - Whine to console about various character encoding declaration-related authoring errors. r=smaug.
authorTim Maks van den Broek <thunderbird-nl@planet.nl>
Mon, 09 Apr 2012 07:12:48 +0200
changeset 1989 c3e0814eade21c7b3ecde940d008de3f184ddd8c
parent 1988 b3cc9228340f49ec3cfeb7b0aaec1708c7b13fcb
child 1990 10c0f9f36230f48b4cac8667be39d2c580930585
push id149
push userthunderbird-nl@planet.nl
push dateSat, 28 Apr 2012 09:31:09 +0000
reviewerssmaug
bugs672453
Bug 672453 - Whine to console about various character encoding declaration-related authoring errors. r=smaug.
dom/chrome/layout/htmlparser.properties
--- a/dom/chrome/layout/htmlparser.properties
+++ b/dom/chrome/layout/htmlparser.properties
@@ -30,17 +30,30 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-# The bulk of the messages in this file are derived from 
+# Encoding warnings and errors
+EncNoDeclarationFrame=The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it.
+EncNoDeclarationPlain=The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature.
+EncNoDeclaration=The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must to be declared in the document or in the transfer protocol.
+EncLateMetaFrame=The character encoding declaration of the framed HTML document was not found when prescanning the first 1024 bytes of the file. When viewed without the document framing it, the page will reload automatically. The encoding declaration needs to be moved to be within the first 1024 bytes of the file.
+EncLateMeta=The character encoding declaration of the HTML document was not found when prescanning the first 1024 bytes of the file. When viewed in a differently-configured browser, this page will reload automatically. The encoding declaration needs to be moved to be within the first 1024 bytes of the file.
+EncLateMetaReload=The page was reloaded, because the character encoding declaration of the HTML document was not found when prescanning the first 1024 bytes of the file. The encoding declaration needs to be moved to be within the first 1024 bytes of the file.
+EncLateMetaTooLate=The character encoding declaration of document was found too late for it to take effect. The encoding declaration needs to be moved to be within the first 1024 bytes of the file.
+EncMetaUnsupported=An unsupported character encoding was declared for the HTML document using a meta tag. The declaration was ignored.
+EncBomlessUtf16=Detected UTF-16-encoded Basic Latin-only text without a byte order mark and without a transfer protocol-level declaration. Encoding this content in UTF-16 is inefficient and the character encoding should have been declared in any case.
+EncMetaUtf16=A meta tag was used to declare the character encoding as UTF-16. This was interpreted as an UTF-8 declaration instead.
+EncMetaNonRoughSuperset=A meta tag was used to declare a character encoding the does not encode the Basic Latin range roughly like US-ASCII. The declaration was ignored.
+
+# The bulk of the messages below are derived from 
 # http://hg.mozilla.org/projects/htmlparser/file/1f633cef7de7/src/nu/validator/htmlparser/impl/ErrorReportingTokenizer.java
 # which is available under the MIT license.
 
 # Tokenizer errors
 errGarbageAfterLtSlash=Rommel na “</”.
 errLtSlashGt=“</>” gezien. Waarschijnlijke oorzaken: “<” zonder escape (escape als “&lt;”) of onjuist getypte eindtag.
 errCharRefLacksSemicolon=Tekenreferentie niet afgesloten door puntkomma.
 errNoDigitsInNCR=Geen cijfers in numerieke tekenreferentie.