Browse Source

translatable new string in validator.cpp

MichalZr6 7 months ago
parent
commit
15b134b522
1 changed files with 3 additions and 5 deletions
  1. 3 5
      mapeditor/validator.cpp

+ 3 - 5
mapeditor/validator.cpp

@@ -174,14 +174,12 @@ std::set<Validator::Issue> Validator::validate(const CMap * map)
 			{
 				QString submod;
 				if(!mod.second.parent.empty())
-					submod = " (submod of '"+ QString::fromStdString(mod.second.parent) +"')";
+					submod = " ("+ tr("submod of") +" "+ QString::fromStdString(mod.second.parent) + ")";
 				
 				issues.insert({
 						tr("Map contains object(s) from mod '%1'%2, but the mod is missing from the map's required mods list."
-						" Add it to the map's required mods in Map->General settings.", "be consistent with Map->General menu entry translation")
-						.arg(QString::fromStdString(LIBRARY->modh->getModInfo(mod.first).getVerificationInfo().name)), submod),
-						true
-					});
+						" Add it to the map's required mods in Map->General settings.", "should be consistent with Map->General menu entry translation")
+						.arg(QString::fromStdString(LIBRARY->modh->getModInfo(mod.first).getVerificationInfo().name), submod), true });
 			}
 		}
 	}