mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Use L10n->tt instead of t() for plural string in Module\BaseApi
This commit is contained in:
parent
c19e57e176
commit
71084cf9f0
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue