Skip to content
Snippets Groups Projects
Verified Commit 643bcfc0 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

Bug 1880988 - Apply spoof English to the default detail summary. r=emilio

parent 9b2bf2b7
No related branches found
No related tags found
No related merge requests found
......@@ -105,8 +105,9 @@ void HTMLDetailsElement::SetupShadowTree() {
}
nsAutoString defaultSummaryText;
nsContentUtils::GetLocalizedString(nsContentUtils::eFORMS_PROPERTIES,
"DefaultSummary", defaultSummaryText);
nsContentUtils::GetMaybeLocalizedString(nsContentUtils::eFORMS_PROPERTIES,
"DefaultSummary", OwnerDoc(),
defaultSummaryText);
RefPtr<nsTextNode> description = new (nim) nsTextNode(nim);
description->SetText(defaultSummaryText, kNotify);
summary->AppendChildTo(description, kNotify, IgnoreErrors());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment