FIX: Pluralisation for short password count (#27342)
Followup 0434112aa7
,
when I introduced the pluralisation for the
password.too_short message I didn't change the
key name to `count`, which is necessary.
This commit is contained in:
parent
0434112aa7
commit
748240ce3b
|
@ -82,7 +82,7 @@ export default Mixin.create({
|
|||
return EmberObject.create(
|
||||
Object.assign(failedAttrs, {
|
||||
reason: I18n.t("user.password.too_short", {
|
||||
password_min_length: passwordMinLength,
|
||||
count: passwordMinLength,
|
||||
}),
|
||||
})
|
||||
);
|
||||
|
|
|
@ -79,7 +79,7 @@ acceptance("Password Reset", function (needs) {
|
|||
assert.ok(
|
||||
query(".password-reset .tip.bad").innerHTML.includes(
|
||||
I18n.t("user.password.too_short", {
|
||||
password_min_length: this.siteSettings.min_password_length,
|
||||
count: this.siteSettings.min_password_length,
|
||||
})
|
||||
),
|
||||
"password too short"
|
||||
|
|
|
@ -81,7 +81,7 @@ module("Unit | Component | create-account", function (hooks) {
|
|||
testInvalidPassword(
|
||||
"x",
|
||||
I18n.t("user.password.too_short", {
|
||||
password_min_length: siteSettings.min_password_length,
|
||||
count: siteSettings.min_password_length,
|
||||
})
|
||||
);
|
||||
testInvalidPassword(
|
||||
|
|
|
@ -1936,8 +1936,8 @@ en:
|
|||
password:
|
||||
title: "Password"
|
||||
too_short:
|
||||
one: "Your password is too short (minimum is %{password_min_length} character)."
|
||||
other: "Your password is too short (minimum is %{password_min_length} characters)."
|
||||
one: "Your password is too short (minimum is %{count} character)."
|
||||
other: "Your password is too short (minimum is %{count} characters)."
|
||||
common: "That password is too common."
|
||||
same_as_username: "Your password is the same as your username."
|
||||
same_as_email: "Your password is the same as your email."
|
||||
|
|
Loading…
Reference in New Issue