Commit b3603fab authored by Arthur Edelstein's avatar Arthur Edelstein Committed by Georg Koppen
Browse files

Bug 18914: Use English-only label in <isindex/> tags

parent 6b3ba930
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -474,11 +474,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;
  }
@@ -486,6 +491,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);
}