Add support for plural forms in Qt forms

This commit is contained in:
Silent
2021-03-02 20:11:40 +01:00
parent 4436e86a46
commit edeed89648
10 changed files with 67 additions and 8 deletions

View File

@ -121,8 +121,7 @@ void EmulationSettingsWidget::updateRewind()
System::CalculateRewindMemoryUsage(frames, &ram_usage, &vram_usage);
m_ui.rewindSummary->setText(
tr("Rewind for %1 frames, lasting %2 seconds will require up to %3MB of RAM and %4MB of VRAM.")
.arg(frames)
tr("Rewind for %n frame(s), lasting %1 second(s) will require up to %2MB of RAM and %3MB of VRAM.", "", frames)
.arg(duration)
.arg(ram_usage / 1048576)
.arg(vram_usage / 1048576));