diff --git a/core/audits/dobetterweb/doctype.js b/core/audits/dobetterweb/doctype.js index 159bb8ff681e..d7ca250f68bd 100644 --- a/core/audits/dobetterweb/doctype.js +++ b/core/audits/dobetterweb/doctype.js @@ -18,10 +18,10 @@ const UIStrings = { '[Learn more about the doctype declaration](https://developer.chrome.com/docs/lighthouse/best-practices/doctype/).', /** Explanatory message stating that the document has no doctype. */ explanationNoDoctype: 'Document must contain a doctype', - /** Explanatory message stating that the document has wrong doctype */ - explanationWrongDoctype: 'Document contains a doctype that triggers quirks-mode', - /** Explanatory message stating that the document has wrong doctype */ - explanationLimitedQuirks: 'Document contains a doctype that triggers limited-quirks-mode', + /** Explanatory message stating that the document has wrong doctype that triggers `quirks-mode` */ + explanationWrongDoctype: 'Document contains a `doctype` that triggers `quirks-mode`', + /** Explanatory message stating that the document has wrong doctype that triggers `limited-quirks-mode` */ + explanationLimitedQuirks: 'Document contains a `doctype` that triggers `limited-quirks-mode`', /** Explanatory message stating that the publicId field is not empty. */ explanationPublicId: 'Expected publicId to be an empty string', /** Explanatory message stating that the systemId field is not empty. */ diff --git a/core/lib/bf-cache-strings.js b/core/lib/bf-cache-strings.js index c35d3b3e53b5..89dd98226632 100644 --- a/core/lib/bf-cache-strings.js +++ b/core/lib/bf-cache-strings.js @@ -367,7 +367,7 @@ const UIStrings = { * @description Description text for not restored reason InjectedJavascript. */ injectedJavascript: - 'IPages that JavaScript is injected into by extensions are not currently eligible for back/forward cache.', + 'Pages that JavaScript is injected into by extensions are not currently eligible for back/forward cache.', /** * @description Description text for not restored reason InjectedStyleSheet. */ diff --git a/core/scripts/i18n/collect-strings.js b/core/scripts/i18n/collect-strings.js index 4e65f1eb5d94..6387a1c85201 100644 --- a/core/scripts/i18n/collect-strings.js +++ b/core/scripts/i18n/collect-strings.js @@ -714,6 +714,8 @@ function checkKnownFixedCollisions(strings) { 'Consider uploading your GIF to a service which will make it available to embed as an HTML5 video.', 'Consider uploading your GIF to a service which will make it available to embed as an HTML5 video.', 'Consider uploading your GIF to a service which will make it available to embed as an HTML5 video.', + 'Document contains a $MARKDOWN_SNIPPET_0$ that triggers $MARKDOWN_SNIPPET_1$', + 'Document contains a $MARKDOWN_SNIPPET_0$ that triggers $MARKDOWN_SNIPPET_1$', 'Document has a valid $MARKDOWN_SNIPPET_0$', 'Document has a valid $MARKDOWN_SNIPPET_0$', 'Failing Elements', diff --git a/core/test/audits/dobetterweb/doctype-test.js b/core/test/audits/dobetterweb/doctype-test.js index 7c052bb6ae71..8566e242e3f7 100644 --- a/core/test/audits/dobetterweb/doctype-test.js +++ b/core/test/audits/dobetterweb/doctype-test.js @@ -29,7 +29,7 @@ describe('DOBETTERWEB: doctype audit', () => { }); assert.equal(auditResult.score, 0); expect(auditResult.explanation) - .toBeDisplayString('Document contains a doctype that triggers quirks-mode'); + .toBeDisplayString('Document contains a `doctype` that triggers `quirks-mode`'); }); it('fails when document is in limited-quirks-mode', () => { @@ -47,7 +47,7 @@ describe('DOBETTERWEB: doctype audit', () => { }); assert.equal(auditResult.score, 0); expect(auditResult.explanation) - .toBeDisplayString('Document contains a doctype that triggers limited-quirks-mode'); + .toBeDisplayString('Document contains a `doctype` that triggers `limited-quirks-mode`'); }); it('fails when the value of the name attribute is a value other than "html"', () => { diff --git a/shared/localization/locales/en-US.json b/shared/localization/locales/en-US.json index 5fbbbab0321a..20f115e8df6d 100644 --- a/shared/localization/locales/en-US.json +++ b/shared/localization/locales/en-US.json @@ -663,7 +663,7 @@ "message": "Doctype name must be the string `html`" }, "core/audits/dobetterweb/doctype.js | explanationLimitedQuirks": { - "message": "Document contains a doctype that triggers limited-quirks-mode" + "message": "Document contains a `doctype` that triggers `limited-quirks-mode`" }, "core/audits/dobetterweb/doctype.js | explanationNoDoctype": { "message": "Document must contain a doctype" @@ -675,7 +675,7 @@ "message": "Expected systemId to be an empty string" }, "core/audits/dobetterweb/doctype.js | explanationWrongDoctype": { - "message": "Document contains a doctype that triggers quirks-mode" + "message": "Document contains a `doctype` that triggers `quirks-mode`" }, "core/audits/dobetterweb/doctype.js | failureTitle": { "message": "Page lacks the HTML doctype, thus triggering quirks-mode" @@ -1869,7 +1869,7 @@ "message": "Ineligible APIs were used." }, "core/lib/bf-cache-strings.js | injectedJavascript": { - "message": "IPages that JavaScript is injected into by extensions are not currently eligible for back/forward cache." + "message": "Pages that JavaScript is injected into by extensions are not currently eligible for back/forward cache." }, "core/lib/bf-cache-strings.js | injectedStyleSheet": { "message": "Pages that StyleSheet is injected into by extensions are not currently eligible for back/forward cache." diff --git a/shared/localization/locales/en-XL.json b/shared/localization/locales/en-XL.json index 432424ef5941..1d02910a6343 100644 --- a/shared/localization/locales/en-XL.json +++ b/shared/localization/locales/en-XL.json @@ -663,7 +663,7 @@ "message": "D̂óĉt́ŷṕê ńâḿê ḿûśt̂ b́ê t́ĥé ŝt́r̂ín̂ǵ `html`" }, "core/audits/dobetterweb/doctype.js | explanationLimitedQuirks": { - "message": "D̂óĉúm̂én̂t́ ĉón̂t́âín̂ś â d́ôćt̂ýp̂é t̂h́ât́ t̂ŕîǵĝér̂ś l̂ím̂ít̂éd̂-q́ûír̂ḱŝ-ḿôd́ê" + "message": "D̂óĉúm̂én̂t́ ĉón̂t́âín̂ś â `doctype` t́ĥát̂ t́r̂íĝǵêŕŝ `limited-quirks-mode`" }, "core/audits/dobetterweb/doctype.js | explanationNoDoctype": { "message": "D̂óĉúm̂én̂t́ m̂úŝt́ ĉón̂t́âín̂ á d̂óĉt́ŷṕê" @@ -675,7 +675,7 @@ "message": "Êx́p̂éĉt́êd́ ŝýŝt́êḿÎd́ t̂ó b̂é âń êḿp̂t́ŷ śt̂ŕîńĝ" }, "core/audits/dobetterweb/doctype.js | explanationWrongDoctype": { - "message": "D̂óĉúm̂én̂t́ ĉón̂t́âín̂ś â d́ôćt̂ýp̂é t̂h́ât́ t̂ŕîǵĝér̂ś q̂úîŕk̂ś-m̂ód̂é" + "message": "D̂óĉúm̂én̂t́ ĉón̂t́âín̂ś â `doctype` t́ĥát̂ t́r̂íĝǵêŕŝ `quirks-mode`" }, "core/audits/dobetterweb/doctype.js | failureTitle": { "message": "P̂áĝé l̂áĉḱŝ t́ĥé ĤT́M̂Ĺ d̂óĉt́ŷṕê, t́ĥúŝ t́r̂íĝǵêŕîńĝ q́ûír̂ḱŝ-ḿôd́ê" @@ -1869,7 +1869,7 @@ "message": "Îńêĺîǵîb́l̂é ÂṔÎś ŵér̂é ûśêd́." }, "core/lib/bf-cache-strings.js | injectedJavascript": { - "message": "ÎṔâǵêś t̂h́ât́ Ĵáv̂áŜćr̂íp̂t́ îś îńĵéĉt́êd́ îńt̂ó b̂ý êx́t̂én̂śîón̂ś âŕê ńôt́ ĉúr̂ŕêńt̂ĺŷ él̂íĝíb̂ĺê f́ôŕ b̂áĉḱ/f̂ór̂ẃâŕd̂ ćâćĥé." + "message": "P̂áĝéŝ t́ĥát̂ J́âv́âŚĉŕîṕt̂ íŝ ín̂j́êćt̂éd̂ ín̂t́ô b́ŷ éx̂t́êńŝíôńŝ ár̂é n̂ót̂ ćûŕr̂én̂t́l̂ý êĺîǵîb́l̂é f̂ór̂ b́âćk̂/f́ôŕŵár̂d́ ĉáĉh́ê." }, "core/lib/bf-cache-strings.js | injectedStyleSheet": { "message": "P̂áĝéŝ t́ĥát̂ Śt̂ýl̂éŜh́êét̂ íŝ ín̂j́êćt̂éd̂ ín̂t́ô b́ŷ éx̂t́êńŝíôńŝ ár̂é n̂ót̂ ćûŕr̂én̂t́l̂ý êĺîǵîb́l̂é f̂ór̂ b́âćk̂/f́ôŕŵár̂d́ ĉáĉh́ê."