Merge pull request #11830 from MrPetovan/task/11826-pluralization

Use L10n->tt instead of t() for plural strings
This commit is contained in:
Philipp 2022-08-08 15:35:54 +02:00 committed by GitHub
commit e0ec304d2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 151 additions and 121 deletions

View file

@ -304,11 +304,12 @@ class L10n
* @param string $singular * @param string $singular
* @param string $plural * @param string $plural
* @param int $count * @param int $count
* @param array $vars Variables to interpolate in the translation string
* *
* @return string * @return string
* @throws \Exception * @throws \Exception
*/ */
public function tt(string $singular, string $plural, int $count): string public function tt(string $singular, string $plural, int $count, ...$vars): string
{ {
$s = null; $s = null;
@ -341,7 +342,9 @@ class L10n
$s = $singular; $s = $singular;
} }
$s = @sprintf($s, $count); // We mute errors here because the translation strings may not be referencing the count at all,
// but we still have to try the interpolation just in case it is indeed referenced.
$s = @sprintf($s, $count, ...$vars);
return $s; return $s;
} }

View file

@ -3281,21 +3281,18 @@ class Item
$options = Post\QuestionOption::getByURIId($item['uri-id']); $options = Post\QuestionOption::getByURIId($item['uri-id']);
foreach ($options as $key => $option) { foreach ($options as $key => $option) {
$percent = $question['voters'] ? ($option['replies'] / $question['voters'] * 100) : 0;
$options[$key]['percent'] = $percent;
if ($question['voters'] > 0) { if ($question['voters'] > 0) {
$options[$key]['vote'] = DI::l10n()->t('%s (%d%s, %d votes)', $option['name'], round($percent, 1), '%', $option['replies']); $percent = $option['replies'] / $question['voters'] * 100;
$options[$key]['vote'] = DI::l10n()->tt('%2$s (%3$d%%, %1$d vote)', '%2$s (%3$d%%, %1$d votes)', $option['replies'], $option['name'], round($percent, 1));
} else { } else {
$options[$key]['vote'] = DI::l10n()->t('%s (%d votes)', $option['name'], $option['replies']); $options[$key]['vote'] = DI::l10n()->tt('%2$s (%1$d vote)', '%2$s (%1$d votes)', $option['replies'], $option['name'], );
} }
} }
if (!empty($question['voters']) && !empty($question['endtime'])) { if (!empty($question['voters']) && !empty($question['endtime'])) {
$summary = DI::l10n()->t('%d voters. Poll end: %s', $question['voters'], Temporal::getRelativeDate($question['endtime'])); $summary = DI::l10n()->tt('%d voter. Poll end: %s', '%d voters. Poll end: %s', $question['voters'], Temporal::getRelativeDate($question['endtime']));
} elseif (!empty($question['voters'])) { } elseif (!empty($question['voters'])) {
$summary = DI::l10n()->t('%d voters.', $question['voters']); $summary = DI::l10n()->tt('%d voter.', '%d voters.', $question['voters']);
} elseif (!empty($question['endtime'])) { } elseif (!empty($question['endtime'])) {
$summary = DI::l10n()->t('Poll end: %s', Temporal::getRelativeDate($question['endtime'])); $summary = DI::l10n()->t('Poll end: %s', Temporal::getRelativeDate($question['endtime']));
} else { } else {

View file

@ -170,26 +170,26 @@ class Federation extends BaseAdmin
} }
$gserver['platform'] = $systems[$platform]['name']; $gserver['platform'] = $systems[$platform]['name'];
$gserver['totallbl'] = DI::l10n()->t('%s total systems', number_format($gserver['total'])); $gserver['totallbl'] = DI::l10n()->tt('%2$s total system' , '%2$s total systems' , $gserver['total'], number_format($gserver['total']));
$gserver['monthlbl'] = DI::l10n()->t('%s active users last month', number_format($gserver['month'])); $gserver['monthlbl'] = DI::l10n()->tt('%2$s active user last month' , '%2$s active users last month' , $gserver['month'] ?? 0, number_format($gserver['month']));
$gserver['halfyearlbl'] = DI::l10n()->t('%s active users last six months', number_format($gserver['halfyear'])); $gserver['halfyearlbl'] = DI::l10n()->tt('%2$s active user last six months' , '%2$s active users last six months' , $gserver['halfyear'] ?? 0, number_format($gserver['halfyear']));
$gserver['userslbl'] = DI::l10n()->t('%s registered users', number_format($gserver['users'])); $gserver['userslbl'] = DI::l10n()->tt('%2$s registered user' , '%2$s registered users' , $gserver['users'], number_format($gserver['users']));
$gserver['postslbl'] = DI::l10n()->t('%s locally created posts and comments', number_format($gserver['posts'])); $gserver['postslbl'] = DI::l10n()->tt('%2$s locally created post or comment', '%2$s locally created posts and comments', $gserver['posts'], number_format($gserver['posts']));
if (($gserver['users'] > 0) && ($gserver['posts'] > 0)) { if (($gserver['users'] > 0) && ($gserver['posts'] > 0)) {
$gserver['postsuserlbl'] = DI::l10n()->t('%s posts per user', number_format($gserver['posts'] / $gserver['users'], 1)); $gserver['postsuserlbl'] = DI::l10n()->tt('%2$s post per user', '%2$s posts per user', $gserver['posts'] / $gserver['users'], number_format($gserver['posts'] / $gserver['users'], 1));
} else { } else {
$gserver['postsuserlbl'] = ''; $gserver['postsuserlbl'] = '';
} }
if (($gserver['users'] > 0) && ($gserver['total'] > 0)) { if (($gserver['users'] > 0) && ($gserver['total'] > 0)) {
$gserver['userssystemlbl'] = DI::l10n()->t('%s users per system', number_format($gserver['users'] / $gserver['total'], 1)); $gserver['userssystemlbl'] = DI::l10n()->tt('%2$s user per system', '%2$s users per system', $gserver['users'] / $gserver['total'], number_format($gserver['users'] / $gserver['total'], 1));
} else { } else {
$gserver['userssystemlbl'] = ''; $gserver['userssystemlbl'] = '';
} }
$counts[$platform] = [$gserver, $versionCounts, str_replace([' ', '%', '.'], '', $platform), $systems[$platform]['color']]; $counts[$platform] = [$gserver, $versionCounts, str_replace([' ', '%', '.'], '', $platform), $systems[$platform]['color']];
} }
DBA::close($gserver); DBA::close($gservers);
// some helpful text // some helpful text
$intro = DI::l10n()->t('This page offers you some numbers to the known part of the federated social network your Friendica node is part of. These numbers are not complete but only reflect the part of the network your node is aware of.'); $intro = DI::l10n()->t('This page offers you some numbers to the known part of the federated social network your Friendica node is part of. These numbers are not complete but only reflect the part of the network your node is aware of.');
@ -202,7 +202,7 @@ class Federation extends BaseAdmin
'$intro' => $intro, '$intro' => $intro,
'$counts' => $counts, '$counts' => $counts,
'$version' => FRIENDICA_VERSION, '$version' => FRIENDICA_VERSION,
'$legendtext' => DI::l10n()->t('Currently this node is aware of %s nodes (%s active users last month, %s active users last six months, %s registered users in total) from the following platforms:', number_format($total), number_format($month), number_format($halfyear), number_format($users)), '$legendtext' => DI::l10n()->tt('Currently this node is aware of %2$s node (%3$s active users last month, %4$s active users last six months, %5$s registered users in total) from the following platforms:', 'Currently this node is aware of %2$s nodes (%3$s active users last month, %4$s active users last six months, %5$s registered users in total) from the following platforms:', $total, number_format($total), number_format($month), number_format($halfyear), number_format($users)),
]); ]);
} }

View file

@ -271,7 +271,7 @@ class BaseApi extends BaseModule
if ($posts_month > $throttle_month) { if ($posts_month > $throttle_month) {
Logger::info('Monthly posting limit reached', ['uid' => $uid, 'posts' => $posts_month, 'limit' => $throttle_month]); Logger::info('Monthly posting limit reached', ['uid' => $uid, 'posts' => $posts_month, 'limit' => $throttle_month]);
$error = DI::l10n()->t('Too Many Requests'); $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); $errorobj = new \Friendica\Object\Api\Mastodon\Error($error, $error_description);
System::jsonError(429, $errorobj->toArray()); System::jsonError(429, $errorobj->toArray());
} }

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2022.09-dev\n" "Project-Id-Version: 2022.09-dev\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-08-05 15:51+0200\n" "POT-Creation-Date: 2022-08-08 02:12-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -409,7 +409,7 @@ msgstr ""
#: mod/photos.php:1336 mod/photos.php:1392 mod/photos.php:1466 #: mod/photos.php:1336 mod/photos.php:1392 mod/photos.php:1466
#: src/Module/Admin/Item/Source.php:60 src/Module/Contact/Advanced.php:132 #: src/Module/Admin/Item/Source.php:60 src/Module/Contact/Advanced.php:132
#: src/Module/Contact/Poke.php:177 src/Module/Contact/Profile.php:327 #: src/Module/Contact/Poke.php:177 src/Module/Contact/Profile.php:327
#: src/Module/Debug/ActivityPubConversion.php:145 #: src/Module/Debug/ActivityPubConversion.php:140
#: src/Module/Debug/Babel.php:313 src/Module/Debug/Localtime.php:64 #: src/Module/Debug/Babel.php:313 src/Module/Debug/Localtime.php:64
#: src/Module/Debug/Probe.php:54 src/Module/Debug/WebFinger.php:51 #: src/Module/Debug/Probe.php:54 src/Module/Debug/WebFinger.php:51
#: src/Module/Delegation.php:148 src/Module/FriendSuggest.php:144 #: src/Module/Delegation.php:148 src/Module/FriendSuggest.php:144
@ -1168,7 +1168,7 @@ msgstr ""
msgid "Resubscribing to OStatus contacts" msgid "Resubscribing to OStatus contacts"
msgstr "" msgstr ""
#: mod/repair_ostatus.php:46 src/Module/Debug/ActivityPubConversion.php:134 #: mod/repair_ostatus.php:46 src/Module/Debug/ActivityPubConversion.php:129
#: src/Module/Debug/Babel.php:293 src/Module/Security/TwoFactor/Verify.php:98 #: src/Module/Debug/Babel.php:293 src/Module/Security/TwoFactor/Verify.php:98
msgid "Error" msgid "Error"
msgid_plural "Errors" msgid_plural "Errors"
@ -1411,7 +1411,7 @@ msgstr ""
msgid "Friend Suggestions" msgid "Friend Suggestions"
msgstr "" msgstr ""
#: mod/tagger.php:78 src/Content/Item.php:354 src/Model/Item.php:2754 #: mod/tagger.php:78 src/Content/Item.php:354 src/Model/Item.php:2769
msgid "photo" msgid "photo"
msgstr "" msgstr ""
@ -2297,7 +2297,7 @@ msgstr ""
msgid "%1$s poked %2$s" msgid "%1$s poked %2$s"
msgstr "" msgstr ""
#: src/Content/Item.php:345 src/Model/Item.php:2752 #: src/Content/Item.php:345 src/Model/Item.php:2767
msgid "event" msgid "event"
msgstr "" msgstr ""
@ -2648,8 +2648,8 @@ msgid ""
"<a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">%2$s</a> %3$s" "<a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">%2$s</a> %3$s"
msgstr "" msgstr ""
#: src/Content/Text/BBCode.php:1213 src/Model/Item.php:3331 #: src/Content/Text/BBCode.php:1213 src/Model/Item.php:3343
#: src/Model/Item.php:3337 src/Model/Item.php:3338 #: src/Model/Item.php:3349 src/Model/Item.php:3350
msgid "Link to source" msgid "Link to source"
msgstr "" msgstr ""
@ -3246,201 +3246,201 @@ msgstr ""
msgid "Could not connect to database." msgid "Could not connect to database."
msgstr "" msgstr ""
#: src/Core/L10n.php:399 src/Model/Event.php:428 #: src/Core/L10n.php:402 src/Model/Event.php:428
#: src/Module/Settings/Display.php:182 #: src/Module/Settings/Display.php:182
msgid "Monday" msgid "Monday"
msgstr "" msgstr ""
#: src/Core/L10n.php:399 src/Model/Event.php:429 #: src/Core/L10n.php:402 src/Model/Event.php:429
msgid "Tuesday" msgid "Tuesday"
msgstr "" msgstr ""
#: src/Core/L10n.php:399 src/Model/Event.php:430 #: src/Core/L10n.php:402 src/Model/Event.php:430
msgid "Wednesday" msgid "Wednesday"
msgstr "" msgstr ""
#: src/Core/L10n.php:399 src/Model/Event.php:431 #: src/Core/L10n.php:402 src/Model/Event.php:431
msgid "Thursday" msgid "Thursday"
msgstr "" msgstr ""
#: src/Core/L10n.php:399 src/Model/Event.php:432 #: src/Core/L10n.php:402 src/Model/Event.php:432
msgid "Friday" msgid "Friday"
msgstr "" msgstr ""
#: src/Core/L10n.php:399 src/Model/Event.php:433 #: src/Core/L10n.php:402 src/Model/Event.php:433
msgid "Saturday" msgid "Saturday"
msgstr "" msgstr ""
#: src/Core/L10n.php:399 src/Model/Event.php:427 #: src/Core/L10n.php:402 src/Model/Event.php:427
#: src/Module/Settings/Display.php:182 #: src/Module/Settings/Display.php:182
msgid "Sunday" msgid "Sunday"
msgstr "" msgstr ""
#: src/Core/L10n.php:403 src/Model/Event.php:448 #: src/Core/L10n.php:406 src/Model/Event.php:448
msgid "January" msgid "January"
msgstr "" msgstr ""
#: src/Core/L10n.php:403 src/Model/Event.php:449 #: src/Core/L10n.php:406 src/Model/Event.php:449
msgid "February" msgid "February"
msgstr "" msgstr ""
#: src/Core/L10n.php:403 src/Model/Event.php:450 #: src/Core/L10n.php:406 src/Model/Event.php:450
msgid "March" msgid "March"
msgstr "" msgstr ""
#: src/Core/L10n.php:403 src/Model/Event.php:451 #: src/Core/L10n.php:406 src/Model/Event.php:451
msgid "April" msgid "April"
msgstr "" msgstr ""
#: src/Core/L10n.php:403 src/Core/L10n.php:422 src/Model/Event.php:439 #: src/Core/L10n.php:406 src/Core/L10n.php:425 src/Model/Event.php:439
msgid "May" msgid "May"
msgstr "" msgstr ""
#: src/Core/L10n.php:403 src/Model/Event.php:452 #: src/Core/L10n.php:406 src/Model/Event.php:452
msgid "June" msgid "June"
msgstr "" msgstr ""
#: src/Core/L10n.php:403 src/Model/Event.php:453 #: src/Core/L10n.php:406 src/Model/Event.php:453
msgid "July" msgid "July"
msgstr "" msgstr ""
#: src/Core/L10n.php:403 src/Model/Event.php:454 #: src/Core/L10n.php:406 src/Model/Event.php:454
msgid "August" msgid "August"
msgstr "" msgstr ""
#: src/Core/L10n.php:403 src/Model/Event.php:455 #: src/Core/L10n.php:406 src/Model/Event.php:455
msgid "September" msgid "September"
msgstr "" msgstr ""
#: src/Core/L10n.php:403 src/Model/Event.php:456 #: src/Core/L10n.php:406 src/Model/Event.php:456
msgid "October" msgid "October"
msgstr "" msgstr ""
#: src/Core/L10n.php:403 src/Model/Event.php:457 #: src/Core/L10n.php:406 src/Model/Event.php:457
msgid "November" msgid "November"
msgstr "" msgstr ""
#: src/Core/L10n.php:403 src/Model/Event.php:458 #: src/Core/L10n.php:406 src/Model/Event.php:458
msgid "December" msgid "December"
msgstr "" msgstr ""
#: src/Core/L10n.php:418 src/Model/Event.php:420 #: src/Core/L10n.php:421 src/Model/Event.php:420
msgid "Mon" msgid "Mon"
msgstr "" msgstr ""
#: src/Core/L10n.php:418 src/Model/Event.php:421 #: src/Core/L10n.php:421 src/Model/Event.php:421
msgid "Tue" msgid "Tue"
msgstr "" msgstr ""
#: src/Core/L10n.php:418 src/Model/Event.php:422 #: src/Core/L10n.php:421 src/Model/Event.php:422
msgid "Wed" msgid "Wed"
msgstr "" msgstr ""
#: src/Core/L10n.php:418 src/Model/Event.php:423 #: src/Core/L10n.php:421 src/Model/Event.php:423
msgid "Thu" msgid "Thu"
msgstr "" msgstr ""
#: src/Core/L10n.php:418 src/Model/Event.php:424 #: src/Core/L10n.php:421 src/Model/Event.php:424
msgid "Fri" msgid "Fri"
msgstr "" msgstr ""
#: src/Core/L10n.php:418 src/Model/Event.php:425 #: src/Core/L10n.php:421 src/Model/Event.php:425
msgid "Sat" msgid "Sat"
msgstr "" msgstr ""
#: src/Core/L10n.php:418 src/Model/Event.php:419 #: src/Core/L10n.php:421 src/Model/Event.php:419
msgid "Sun" msgid "Sun"
msgstr "" msgstr ""
#: src/Core/L10n.php:422 src/Model/Event.php:435 #: src/Core/L10n.php:425 src/Model/Event.php:435
msgid "Jan" msgid "Jan"
msgstr "" msgstr ""
#: src/Core/L10n.php:422 src/Model/Event.php:436 #: src/Core/L10n.php:425 src/Model/Event.php:436
msgid "Feb" msgid "Feb"
msgstr "" msgstr ""
#: src/Core/L10n.php:422 src/Model/Event.php:437 #: src/Core/L10n.php:425 src/Model/Event.php:437
msgid "Mar" msgid "Mar"
msgstr "" msgstr ""
#: src/Core/L10n.php:422 src/Model/Event.php:438 #: src/Core/L10n.php:425 src/Model/Event.php:438
msgid "Apr" msgid "Apr"
msgstr "" msgstr ""
#: src/Core/L10n.php:422 src/Model/Event.php:440 #: src/Core/L10n.php:425 src/Model/Event.php:440
msgid "Jun" msgid "Jun"
msgstr "" msgstr ""
#: src/Core/L10n.php:422 src/Model/Event.php:441 #: src/Core/L10n.php:425 src/Model/Event.php:441
msgid "Jul" msgid "Jul"
msgstr "" msgstr ""
#: src/Core/L10n.php:422 src/Model/Event.php:442 #: src/Core/L10n.php:425 src/Model/Event.php:442
msgid "Aug" msgid "Aug"
msgstr "" msgstr ""
#: src/Core/L10n.php:422 #: src/Core/L10n.php:425
msgid "Sep" msgid "Sep"
msgstr "" msgstr ""
#: src/Core/L10n.php:422 src/Model/Event.php:444 #: src/Core/L10n.php:425 src/Model/Event.php:444
msgid "Oct" msgid "Oct"
msgstr "" msgstr ""
#: src/Core/L10n.php:422 src/Model/Event.php:445 #: src/Core/L10n.php:425 src/Model/Event.php:445
msgid "Nov" msgid "Nov"
msgstr "" msgstr ""
#: src/Core/L10n.php:422 src/Model/Event.php:446 #: src/Core/L10n.php:425 src/Model/Event.php:446
msgid "Dec" msgid "Dec"
msgstr "" msgstr ""
#: src/Core/L10n.php:441 #: src/Core/L10n.php:444
msgid "poke" msgid "poke"
msgstr "" msgstr ""
#: src/Core/L10n.php:441 #: src/Core/L10n.php:444
msgid "poked" msgid "poked"
msgstr "" msgstr ""
#: src/Core/L10n.php:442 #: src/Core/L10n.php:445
msgid "ping" msgid "ping"
msgstr "" msgstr ""
#: src/Core/L10n.php:442 #: src/Core/L10n.php:445
msgid "pinged" msgid "pinged"
msgstr "" msgstr ""
#: src/Core/L10n.php:443 #: src/Core/L10n.php:446
msgid "prod" msgid "prod"
msgstr "" msgstr ""
#: src/Core/L10n.php:443 #: src/Core/L10n.php:446
msgid "prodded" msgid "prodded"
msgstr "" msgstr ""
#: src/Core/L10n.php:444 #: src/Core/L10n.php:447
msgid "slap" msgid "slap"
msgstr "" msgstr ""
#: src/Core/L10n.php:444 #: src/Core/L10n.php:447
msgid "slapped" msgid "slapped"
msgstr "" msgstr ""
#: src/Core/L10n.php:445 #: src/Core/L10n.php:448
msgid "finger" msgid "finger"
msgstr "" msgstr ""
#: src/Core/L10n.php:445 #: src/Core/L10n.php:448
msgid "fingered" msgid "fingered"
msgstr "" msgstr ""
#: src/Core/L10n.php:446 #: src/Core/L10n.php:449
msgid "rebuff" msgid "rebuff"
msgstr "" msgstr ""
#: src/Core/L10n.php:446 #: src/Core/L10n.php:449
msgid "rebuffed" msgid "rebuffed"
msgstr "" msgstr ""
@ -3834,58 +3834,66 @@ msgstr ""
msgid "Edit groups" msgid "Edit groups"
msgstr "" msgstr ""
#: src/Model/Item.php:1850 #: src/Model/Item.php:1865
#, php-format #, php-format
msgid "Detected languages in this post:\\n%s" msgid "Detected languages in this post:\\n%s"
msgstr "" msgstr ""
#: src/Model/Item.php:2756 #: src/Model/Item.php:2771
msgid "activity" msgid "activity"
msgstr "" msgstr ""
#: src/Model/Item.php:2758 #: src/Model/Item.php:2773
msgid "comment" msgid "comment"
msgstr "" msgstr ""
#: src/Model/Item.php:2761 #: src/Model/Item.php:2776
msgid "post" msgid "post"
msgstr "" msgstr ""
#: src/Model/Item.php:2877 #: src/Model/Item.php:2892
#, php-format #, php-format
msgid "Content warning: %s" msgid "Content warning: %s"
msgstr "" msgstr ""
#: src/Model/Item.php:3240 #: src/Model/Item.php:3255
msgid "bytes" msgid "bytes"
msgstr "" msgstr ""
#: src/Model/Item.php:3274 #: src/Model/Item.php:3286
#, php-format #, php-format
msgid "%s (%d%s, %d votes)" msgid "%2$s (%3$d%%, %1$d vote)"
msgstr "" msgid_plural "%2$s (%3$d%%, %1$d votes)"
msgstr[0] ""
msgstr[1] ""
#: src/Model/Item.php:3276 #: src/Model/Item.php:3288
#, php-format #, php-format
msgid "%s (%d votes)" msgid "%2$s (%1$d vote)"
msgstr "" msgid_plural "%2$s (%1$d votes)"
msgstr[0] ""
msgstr[1] ""
#: src/Model/Item.php:3281 #: src/Model/Item.php:3293
#, php-format #, php-format
msgid "%d voters. Poll end: %s" msgid "%d voter. Poll end: %s"
msgstr "" msgid_plural "%d voters. Poll end: %s"
msgstr[0] ""
msgstr[1] ""
#: src/Model/Item.php:3283 #: src/Model/Item.php:3295
#, php-format #, php-format
msgid "%d voters." msgid "%d voter."
msgstr "" msgid_plural "%d voters."
msgstr[0] ""
msgstr[1] ""
#: src/Model/Item.php:3285 #: src/Model/Item.php:3297
#, php-format #, php-format
msgid "Poll end: %s" msgid "Poll end: %s"
msgstr "" msgstr ""
#: src/Model/Item.php:3319 src/Model/Item.php:3320 #: src/Model/Item.php:3331 src/Model/Item.php:3332
msgid "View on separate page" msgid "View on separate page"
msgstr "" msgstr ""
@ -4875,38 +4883,52 @@ msgstr ""
#: src/Module/Admin/Federation.php:173 #: src/Module/Admin/Federation.php:173
#, php-format #, php-format
msgid "%s total systems" msgid "%2$s total system"
msgstr "" msgid_plural "%2$s total systems"
msgstr[0] ""
msgstr[1] ""
#: src/Module/Admin/Federation.php:174 #: src/Module/Admin/Federation.php:174
#, php-format #, php-format
msgid "%s active users last month" msgid "%2$s active user last month"
msgstr "" msgid_plural "%2$s active users last month"
msgstr[0] ""
msgstr[1] ""
#: src/Module/Admin/Federation.php:175 #: src/Module/Admin/Federation.php:175
#, php-format #, php-format
msgid "%s active users last six months" msgid "%2$s active user last six months"
msgstr "" msgid_plural "%2$s active users last six months"
msgstr[0] ""
msgstr[1] ""
#: src/Module/Admin/Federation.php:176 #: src/Module/Admin/Federation.php:176
#, php-format #, php-format
msgid "%s registered users" msgid "%2$s registered user"
msgstr "" msgid_plural "%2$s registered users"
msgstr[0] ""
msgstr[1] ""
#: src/Module/Admin/Federation.php:177 #: src/Module/Admin/Federation.php:177
#, php-format #, php-format
msgid "%s locally created posts and comments" msgid "%2$s locally created post or comment"
msgstr "" msgid_plural "%2$s locally created posts and comments"
msgstr[0] ""
msgstr[1] ""
#: src/Module/Admin/Federation.php:180 #: src/Module/Admin/Federation.php:180
#, php-format #, php-format
msgid "%s posts per user" msgid "%2$s post per user"
msgstr "" msgid_plural "%2$s posts per user"
msgstr[0] ""
msgstr[1] ""
#: src/Module/Admin/Federation.php:185 #: src/Module/Admin/Federation.php:185
#, php-format #, php-format
msgid "%s users per system" msgid "%2$s user per system"
msgstr "" msgid_plural "%2$s users per system"
msgstr[0] ""
msgstr[1] ""
#: src/Module/Admin/Federation.php:195 #: src/Module/Admin/Federation.php:195
msgid "" msgid ""
@ -4922,10 +4944,15 @@ msgstr ""
#: src/Module/Admin/Federation.php:205 #: src/Module/Admin/Federation.php:205
#, php-format #, php-format
msgid "" msgid ""
"Currently this node is aware of %s nodes (%s active users last month, %s " "Currently this node is aware of %2$s node (%3$s active users last month, "
"active users last six months, %s registered users in total) from the " "%4$s active users last six months, %5$s registered users in total) from the "
"following platforms:" "following platforms:"
msgstr "" msgid_plural ""
"Currently this node is aware of %2$s nodes (%3$s active users last month, "
"%4$s active users last six months, %5$s registered users in total) from the "
"following platforms:"
msgstr[0] ""
msgstr[1] ""
#: src/Module/Admin/Item/Delete.php:53 #: src/Module/Admin/Item/Delete.php:53
msgid "Item marked for deletion." msgid "Item marked for deletion."
@ -5114,7 +5141,7 @@ msgid "Data"
msgstr "" msgstr ""
#: src/Module/Admin/Logs/View.php:99 #: src/Module/Admin/Logs/View.php:99
#: src/Module/Debug/ActivityPubConversion.php:62 #: src/Module/Debug/ActivityPubConversion.php:57
msgid "Source" msgid "Source"
msgstr "" msgstr ""
@ -6719,7 +6746,7 @@ msgstr ""
msgid "Babel" msgid "Babel"
msgstr "" msgstr ""
#: src/Module/BaseAdmin.php:121 src/Module/Debug/ActivityPubConversion.php:142 #: src/Module/BaseAdmin.php:121 src/Module/Debug/ActivityPubConversion.php:137
msgid "ActivityPub Conversion" msgid "ActivityPub Conversion"
msgstr "" msgstr ""
@ -6753,7 +6780,10 @@ msgstr[1] ""
#: src/Module/BaseApi.php:274 #: src/Module/BaseApi.php:274
#, php-format #, php-format
msgid "Monthly posting limit of %d post reached. The post was rejected." msgid "Monthly posting limit of %d post reached. The post was rejected."
msgstr "" msgid_plural ""
"Monthly posting limit of %d posts reached. The post was rejected."
msgstr[0] ""
msgstr[1] ""
#: src/Module/BaseProfile.php:51 src/Module/Contact.php:460 #: src/Module/BaseProfile.php:51 src/Module/Contact.php:460
msgid "Profile Details" msgid "Profile Details"
@ -7410,23 +7440,23 @@ msgid ""
"code or the translation of Friendica. Thank you all!" "code or the translation of Friendica. Thank you all!"
msgstr "" msgstr ""
#: src/Module/Debug/ActivityPubConversion.php:58 #: src/Module/Debug/ActivityPubConversion.php:53
msgid "Formatted" msgid "Formatted"
msgstr "" msgstr ""
#: src/Module/Debug/ActivityPubConversion.php:70 #: src/Module/Debug/ActivityPubConversion.php:65
msgid "Activity" msgid "Activity"
msgstr "" msgstr ""
#: src/Module/Debug/ActivityPubConversion.php:122 #: src/Module/Debug/ActivityPubConversion.php:117
msgid "Object data" msgid "Object data"
msgstr "" msgstr ""
#: src/Module/Debug/ActivityPubConversion.php:129 #: src/Module/Debug/ActivityPubConversion.php:124
msgid "Result Item" msgid "Result Item"
msgstr "" msgstr ""
#: src/Module/Debug/ActivityPubConversion.php:143 #: src/Module/Debug/ActivityPubConversion.php:138
msgid "Source activity" msgid "Source activity"
msgstr "" msgstr ""