1
0
Fork 0

Splash: fix a missing translation Slawek spotted

Allow the ‘% completed’ text to be translated.
This commit is contained in:
James Turner 2020-06-15 16:40:47 +01:00
parent cbf1f3494a
commit 46084c59ff

View file

@ -706,9 +706,9 @@ void fgSplashProgress( const char *identifier, unsigned int percent )
// over-write the spinner
if (!strncmp(identifier, "navdata-", 8)) {
std::ostringstream oss;
oss << percent << "% complete";
fgSetString("/sim/startup/splash-progress-spinner", oss.str());
const string percentText = globals->get_locale()->getLocalizedString("navdata-load-percent", "sys");
auto finalText = simgear::strutils::replace(percentText, "[VALUE]", to_string(percent));
fgSetString("/sim/startup/splash-progress-spinner", finalText);
}
if( fgGetString("/sim/startup/splash-progress-text") == text )