From: Hypolite Petovan Date: Mon, 8 Aug 2022 06:00:52 +0000 (-0400) Subject: Use L10n->tt instead of t() for plural string in Module\BaseApi X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=71084cf9f0d043cc8b405644a8f5d252293d4f9d;p=friendica.git Use L10n->tt instead of t() for plural string in Module\BaseApi --- diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index b6824140db..f39a40cded 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -271,7 +271,7 @@ class BaseApi extends BaseModule if ($posts_month > $throttle_month) { Logger::info('Monthly posting limit reached', ['uid' => $uid, 'posts' => $posts_month, 'limit' => $throttle_month]); $error = DI::l10n()->t('Too Many Requests'); - $error_description = DI::l10n()->t("Monthly posting limit of %d post reached. The post was rejected.", "Monthly posting limit of %d posts reached. The post was rejected.", $throttle_month); + $error_description = DI::l10n()->tt('Monthly posting limit of %d post reached. The post was rejected.', 'Monthly posting limit of %d posts reached. The post was rejected.', $throttle_month); $errorobj = new \Friendica\Object\Api\Mastodon\Error($error, $error_description); System::jsonError(429, $errorobj->toArray()); }