fix(ui): add translation func to text in the confirm dialog

This commit is contained in:
flow 2022-02-23 14:44:55 -03:00
parent 38f12c50f7
commit 04840d0638
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -74,10 +74,12 @@ void ModDownloadDialog::confirm()
auto keys = modTask.keys(); auto keys = modTask.keys();
keys.sort(Qt::CaseInsensitive); keys.sort(Qt::CaseInsensitive);
auto info = QString("You're about to download the following mods:\n\n"); auto info = QString(tr("You're about to download the following mods:"));
info.append("\n\n");
for(auto task : keys){ for(auto task : keys){
info.append(task); info.append(task);
info.append("\n --> File name: "); info.append("\n --> ");
info.append(tr("File name: "));
info.append(modTask.find(task).value()->getFilename()); info.append(modTask.find(task).value()->getFilename());
info.append('\n'); info.append('\n');
} }