private object ReplaceGameTextWithTranslationProcess(object translationAsObj)
{
Translation translation = (Translation)translationAsObj;
CompileMessages errors = TextImporter.ReplaceAllGameText(_agsEditor.CurrentGame, translation);
// Make a copy of the dictionary, otherwise it can get overwritten
// while updating its translation
Dictionary<string,string> textChanges = new Dictionary<string,string>();
foreach (string key in translation.TranslatedLines.Keys)
{
textChanges.Add(key, translation.TranslatedLines[key]);
}
UpdateAllTranslationsWithNewDefaultText(textChanges, errors);
return errors;
}