user-facing-error: Fix gettext string
This commit is contained in:
parent
f7016fa310
commit
bbb8d05e2b
1 changed files with 2 additions and 2 deletions
|
@ -25,10 +25,10 @@ impl UserFacingError for HttpError {
|
|||
UserDeactivated => gettext("The user is deactivated."),
|
||||
LimitExceeded { retry_after_ms } => {
|
||||
if let Some(ms) = retry_after_ms {
|
||||
gettext(format!(
|
||||
gettext!(
|
||||
"You exceeded the homeservers rate limit, retry in {} seconds.",
|
||||
ms.as_secs()
|
||||
))
|
||||
)
|
||||
} else {
|
||||
gettext("You exceeded the homeservers rate limit, try again later.")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue