frontend: Add dedicated translation of remaining time

This commit is contained in:
Norihiro Kamae 2025-03-31 19:59:00 +09:00 committed by Ryan Foster
parent 9889fcdfcc
commit 1643470a85
2 changed files with 2 additions and 1 deletions

View File

@ -267,6 +267,7 @@ Basic.Stats.DroppedFrames="Dropped Frames (Network)"
Basic.Stats.MegabytesSent="Total Data Output"
Basic.Stats.Bitrate="Bitrate"
Basic.Stats.DiskFullIn="Disk full in (approx.)"
Basic.Stats.DiskFullIn.Text="%1 Hours, %2 Minutes"
Basic.Stats.ResetStats="Reset Stats"
ResetUIWarning.Title="Are you sure you want to reset the UI?"

View File

@ -39,7 +39,7 @@ void OBSBasicStats::OBSFrontendEvent(enum obs_frontend_event event, void *ptr)
static QString MakeTimeLeftText(int hours, int minutes)
{
return QString::asprintf("%d %s, %d %s", hours, Str("Hours"), minutes, Str("Minutes"));
return QTStr("Basic.Stats.DiskFullIn.Text").arg(QString::number(hours), QString::number(minutes));
}
static QString MakeMissedFramesText(uint32_t total_lagged, uint32_t total_rendered, long double num)