diff --git a/dom/locales/en-US/chrome/layout/HtmlForm.properties b/dom/locales/en-US/chrome/layout/HtmlForm.properties index 166905cf8d9..6a8da70be93 100644 --- a/dom/locales/en-US/chrome/layout/HtmlForm.properties +++ b/dom/locales/en-US/chrome/layout/HtmlForm.properties @@ -38,3 +38,7 @@ ColorPicker=Choose a color # minus 20 and will always be a number equal to or greater than 2. So the # singular case will never be used. AndNMoreFiles=and one more;and #1 more +# LOCALIZATION NOTE (DefaultSummary): this string is shown on a
when +# it has no direct child. Google Chrome should already have this +# string translated. +DefaultSummary=Details diff --git a/layout/generic/DetailsFrame.cpp b/layout/generic/DetailsFrame.cpp index 94e1a8c39d3..4d452dcdb9c 100644 --- a/layout/generic/DetailsFrame.cpp +++ b/layout/generic/DetailsFrame.cpp @@ -107,9 +107,11 @@ DetailsFrame::CreateAnonymousContent(nsTArray& aElements) nsIDOMNode::ELEMENT_NODE); mDefaultSummary = new HTMLSummaryElement(nodeInfo); - // TODO: Need to localize this "Details" string in bug 1225752. + nsXPIDLString defaultSummaryText; + nsContentUtils::GetLocalizedString(nsContentUtils::eFORMS_PROPERTIES, + "DefaultSummary", defaultSummaryText); RefPtr description = new nsTextNode(nodeInfoManager); - description->SetText(NS_LITERAL_STRING("Details"), false); + description->SetText(defaultSummaryText, false); mDefaultSummary->AppendChildTo(description, false); aElements.AppendElement(mDefaultSummary);