[fractal/fractal-next] user-facing-error: Fix gettext string
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/fractal-next] user-facing-error: Fix gettext string
- Date: Thu, 9 Dec 2021 13:09:28 +0000 (UTC)
commit bbb8d05e2b769376a878eec544fc96086507e058
Author: Kévin Commaille <zecakeh tedomum fr>
Date: Thu Dec 9 10:40:18 2021 +0100
user-facing-error: Fix gettext string
src/user_facing_error.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/user_facing_error.rs b/src/user_facing_error.rs
index 3a66fd3b..4c1b3a3c 100644
--- a/src/user_facing_error.rs
+++ b/src/user_facing_error.rs
@@ -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.")
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]