Merge pull request #8600 from nextcloud/rakekniven-patch-1

fix(i18n): Use SI symbol for minute
This commit is contained in:
Matthieu Gallien 2025-08-22 10:09:06 +02:00 committed by GitHub
commit c11346def8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -441,10 +441,10 @@ QString Utility::timeAgoInWords(const QDateTime &dt, const QDateTime &from)
if (secs < 5) {
return QObject::tr("now");
} else {
return QObject::tr("1m", "one minute after activity date and time");
return QObject::tr("1min", "one minute after activity date and time");
}
} else {
return (QObject::tr("%nm", "delay in minutes after an activity", minutes));
return (QObject::tr("%nmin", "delay in minutes after an activity", minutes));
}
}
}

View File

@ -164,7 +164,7 @@ private slots:
earlyTS = earlyTS.addSecs(-6);
s = timeAgoInWords(earlyTS, laterTS );
QCOMPARE(s, QLatin1String("1m"));
QCOMPARE(s, QLatin1String("1min"));
}
void testFsCasePreserving()