Skip to content

Commit

Permalink
allow a standard translation project to have a 'back translation' pro…
Browse files Browse the repository at this point in the history
…ject (e.g. itself, if we're using ParatextProjectData converters created by Serval)
  • Loading branch information
bobeaton committed Sep 18, 2024
1 parent 844f2a3 commit 57156ba
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,15 @@ private void InitializeProjects(IPluginHost host)
// otherwise, make them choose
_projectSource ??= QueryForProject("Source language");
_projectTarget ??= QueryForProject("Target language");

if (_projectSource != null)
{
lstSourceProjects = [_projectSource.ShortName];
mapProjectNameToSourceProjectOverride[projectName] = lstSourceProjects;

Properties.Settings.Default.MapProjectNameToSourceProjectOverride = BackTranslationHelperCtrl.SettingFromDictionary(mapProjectNameToSourceProjectOverride);
Properties.Settings.Default.Save();
}
}

if ((_projectSource == null) || (_projectTarget == null))
Expand Down

0 comments on commit 57156ba

Please sign in to comment.