private void ReplaceGameTextWithTranslation(Translation translation)
{
_agsEditor.SaveGameFiles();
if (!CheckAllTranslationsAreWritable())
{
return;
}
translation.LoadData();
CompileMessages errors = (CompileMessages)BusyDialog.Show("Please wait while the game text is replaced...", new BusyDialog.ProcessingHandler(ReplaceGameTextWithTranslationProcess), translation);
_guiController.ShowOutputPanel(errors);
Factory.Events.OnRefreshAllComponentsFromGame();
_agsEditor.SaveGameFiles();
_guiController.ShowMessage("Game text replaced with the translation text.", MessageBoxIcon.Information);
}