1
0
Fork 0

Allow translation of ‘autosave migration’ dialog.

Thanks to Slawek Mikula for the suggestion, this can now be
translated.
This commit is contained in:
James Turner 2020-04-29 11:17:41 +01:00
parent 6c66126bdb
commit 489e6abb2a

View file

@ -788,11 +788,14 @@ static void tryAutosaveMigration(const SGPath& userDataPath, SGPropertyNode* pro
copyProperties(&oldProps, props);
// inform the user
flightgear::modalMessageBox("Settings migrated",
"Saved settings were migrated from a previous version of FlightGear. "
"If you encounter any problems when using the system, try restoring "
"the default settings, before reporting a problem. "
"Saved settings can affect the appearance, performance and features of the simulator.");
FGLocale *locale = globals->get_locale();
const auto title = locale->getLocalizedString("settings-migration-title", "dialog", "Settings migrated");
const auto msg = locale->getLocalizedString("settings-migration-text", "dialog",
"Saved settings were migrated from a previous version of FlightGear. "
"If you encounter any problems when using the system, try restoring "
"the default settings, before reporting a problem. "
"Saved settings can affect the appearance, performance and features of the simulator.");
flightgear::modalMessageBox(title, msg);
}
// Load user settings from the autosave file (normally in $FG_HOME)