From a00c0d292fa9e827c89074d5d45758b6143f3b9d Mon Sep 17 00:00:00 2001 From: Arthur Edelstein Date: Mon, 23 May 2016 18:14:43 -0700 Subject: [PATCH] Bug 18914: Use English-only label in tags --- parser/html/nsHtml5TreeOperation.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/parser/html/nsHtml5TreeOperation.cpp b/parser/html/nsHtml5TreeOperation.cpp index 42896273835d4..a8051699aea91 100644 --- a/parser/html/nsHtml5TreeOperation.cpp +++ b/parser/html/nsHtml5TreeOperation.cpp @@ -471,11 +471,16 @@ nsHtml5TreeOperation::SetFormElement(nsIContent* aNode, nsIContent* aParent) nsresult nsHtml5TreeOperation::AppendIsindexPrompt(nsIContent* parent, nsHtml5DocumentBuilder* aBuilder) { + /* nsXPIDLString prompt; nsresult rv = nsContentUtils::GetLocalizedString(nsContentUtils::eFORMS_PROPERTIES, "IsIndexPromptWithSpace", prompt); + */ + nsString prompt(NS_LITERAL_STRING( + "This is a searchable index. Enter search keywords:\u0020")); uint32_t len = prompt.Length(); + /* if (NS_FAILED(rv)) { return rv; } @@ -483,6 +488,7 @@ nsHtml5TreeOperation::AppendIsindexPrompt(nsIContent* parent, nsHtml5DocumentBui // Don't bother appending a zero-length text node. return NS_OK; } + */ return AppendText(prompt.BeginReading(), len, parent, aBuilder); } -- GitLab