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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user