Compare commits

...

3 Commits

Author SHA1 Message Date
rakekniven 44581b12b0 Merge branch 'master' into rakekniven-patch-1 2026-03-11 14:31:08 +01:00
rakekniven 918df3cb4f Fix pluralization in SystemTagPicker messages
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2026-01-16 23:27:33 +01:00
rakekniven b9c27ce980 fix(l10n): Fix plural
Reported at Transifex

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2026-01-16 23:27:33 +01:00
2 changed files with 4 additions and 4 deletions
@@ -48,7 +48,7 @@ class TaskProcessingSuccessRate implements ISetupCheck {
if ($taskCount === 0) {
return SetupResult::success(
$this->l10n->n(
'No scheduled tasks in the last day.',
'No scheduled tasks in the last %n day.',
'No scheduled tasks in the last %n days.',
$lastNDays
)
@@ -68,7 +68,7 @@ class TaskProcessingSuccessRate implements ISetupCheck {
if (($failedCount / $taskCount) < self::MAX_FAILURE_PERCENTAGE) {
return SetupResult::success(
$this->l10n->n(
'Most tasks were successful in the last day.',
'Most tasks were successful in the last %n day.',
'Most tasks were successful in the last %n days.',
$lastNDays
)
@@ -286,7 +286,7 @@ export default defineComponent({
if (this.toAdd.length === 1 && this.toRemove.length === 1) {
return n(
'systemtags',
'{tag1} will be set and {tag2} will be removed from 1 file.',
'{tag1} will be set and {tag2} will be removed from {count} file.',
'{tag1} will be set and {tag2} will be removed from {count} files.',
this.nodes.length,
{
@@ -317,7 +317,7 @@ export default defineComponent({
const removeStringSingular = n(
'systemtags',
'{tag} will be removed from 1 file.',
'{tag} will be removed from {count} file.',
'{tag} will be removed from {count} files.',
this.nodes.length,
{