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); copyProperties(&oldProps, props);
// inform the user // inform the user
flightgear::modalMessageBox("Settings migrated", FGLocale *locale = globals->get_locale();
"Saved settings were migrated from a previous version of FlightGear. " const auto title = locale->getLocalizedString("settings-migration-title", "dialog", "Settings migrated");
"If you encounter any problems when using the system, try restoring " const auto msg = locale->getLocalizedString("settings-migration-text", "dialog",
"the default settings, before reporting a problem. " "Saved settings were migrated from a previous version of FlightGear. "
"Saved settings can affect the appearance, performance and features of the simulator."); "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) // Load user settings from the autosave file (normally in $FG_HOME)