aboutsummaryrefslogtreecommitdiff
path: root/launcher/MMCTime.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-12-06 14:45:46 +0100
committerGitHub <noreply@github.com>2022-12-06 14:45:46 +0100
commit9669377b06f12093d8b96a6b6d4f570fd5a8a790 (patch)
treea28e9bf3980576d9748226766bf4db1f295077d7 /launcher/MMCTime.cpp
parentb29c99656e43a11cfb4397230b6ec7192d15215f (diff)
parent318a2a429c42efb0cb02b050ea2c7863e619df9a (diff)
downloadPrismLauncher-9669377b06f12093d8b96a6b6d4f570fd5a8a790.tar.gz
PrismLauncher-9669377b06f12093d8b96a6b6d4f570fd5a8a790.tar.bz2
PrismLauncher-9669377b06f12093d8b96a6b6d4f570fd5a8a790.zip
Merge pull request #560 from edgarogh/fix-minutes-unit
Closes https://github.com/PrismLauncher/PrismLauncher/issues/553
Diffstat (limited to 'launcher/MMCTime.cpp')
-rw-r--r--launcher/MMCTime.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/MMCTime.cpp b/launcher/MMCTime.cpp
index 4d7f424d..70bc4135 100644
--- a/launcher/MMCTime.cpp
+++ b/launcher/MMCTime.cpp
@@ -28,11 +28,11 @@ QString Time::prettifyDuration(int64_t duration) {
int days = (int) (duration / 24);
if((hours == 0)&&(days == 0))
{
- return QObject::tr("%1m %2s").arg(minutes).arg(seconds);
+ return QObject::tr("%1min %2s").arg(minutes).arg(seconds);
}
if (days == 0)
{
- return QObject::tr("%1h %2m").arg(hours).arg(minutes);
+ return QObject::tr("%1h %2min").arg(hours).arg(minutes);
}
- return QObject::tr("%1d %2h %3m").arg(days).arg(hours).arg(minutes);
+ return QObject::tr("%1d %2h %3min").arg(days).arg(hours).arg(minutes);
}