Allow translation of ‘autosave migration’ dialog.
Thanks to Slawek Mikula for the suggestion, this can now be translated.
This commit is contained in:
parent
6c66126bdb
commit
489e6abb2a
1 changed files with 8 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue