Bug 1557793 part 3. Change the signatures of various nsContentUtils localization methods to play nicer with the new stringbundle API. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D34201
This commit is contained in:
Boris Zbarsky
2019-06-08 21:26:12 +00:00
parent 95de682140
commit 8e16a497d9
63 changed files with 365 additions and 453 deletions

View File

@@ -998,10 +998,9 @@ nsresult HTMLTextAreaElement::GetValidationMessage(
strMaxLength.AppendInt(maxLength);
strTextLength.AppendInt(textLength);
const char16_t* params[] = {strMaxLength.get(), strTextLength.get()};
rv = nsContentUtils::FormatLocalizedString(
nsContentUtils::eDOM_PROPERTIES, "FormValidationTextTooLong", params,
message);
message, nsContentUtils::eDOM_PROPERTIES, "FormValidationTextTooLong",
strMaxLength, strTextLength);
aValidationMessage = message;
} break;
case VALIDITY_STATE_TOO_SHORT: {
@@ -1014,10 +1013,9 @@ nsresult HTMLTextAreaElement::GetValidationMessage(
strMinLength.AppendInt(minLength);
strTextLength.AppendInt(textLength);
const char16_t* params[] = {strMinLength.get(), strTextLength.get()};
rv = nsContentUtils::FormatLocalizedString(
nsContentUtils::eDOM_PROPERTIES, "FormValidationTextTooShort", params,
message);
message, nsContentUtils::eDOM_PROPERTIES,
"FormValidationTextTooShort", strMinLength, strTextLength);
aValidationMessage = message;
} break;
case VALIDITY_STATE_VALUE_MISSING: {