CEditorApplication: Mark string as translatable
@@ -226,9 +226,10 @@ bool CEditorApplication::CookAllDirtyPackages()
bool CEditorApplication::CookPackageList(QList<CPackage*> PackageList)
{
- if (!PackageList.isEmpty())
- {
- CProgressDialog Dialog("Cooking package" + QString(PackageList.size() > 1 ? "s" : ""), false, true, mpWorldEditor);
+ if (PackageList.isEmpty())
+ return true;
+
+ CProgressDialog Dialog(tr("Cooking package%1)").arg(PackageList.size() > 1 ? tr("s") : QString{}), false, true, mpWorldEditor);
QFuture<void> Future = QtConcurrent::run([&]()
{
@@ -247,8 +248,6 @@ bool CEditorApplication::CookPackageList(QList<CPackage*> PackageList)
emit PackagesCooked();
return !Dialog.ShouldCancel();
}
- else return true;
-}
bool CEditorApplication::HasAnyDirtyPackages()
{
