Splash: fix a missing translation Slawek spotted
Allow the ‘% completed’ text to be translated.
This commit is contained in:
parent
cbf1f3494a
commit
46084c59ff
1 changed files with 3 additions and 3 deletions
|
@ -706,9 +706,9 @@ void fgSplashProgress( const char *identifier, unsigned int percent )
|
||||||
|
|
||||||
// over-write the spinner
|
// over-write the spinner
|
||||||
if (!strncmp(identifier, "navdata-", 8)) {
|
if (!strncmp(identifier, "navdata-", 8)) {
|
||||||
std::ostringstream oss;
|
const string percentText = globals->get_locale()->getLocalizedString("navdata-load-percent", "sys");
|
||||||
oss << percent << "% complete";
|
auto finalText = simgear::strutils::replace(percentText, "[VALUE]", to_string(percent));
|
||||||
fgSetString("/sim/startup/splash-progress-spinner", oss.str());
|
fgSetString("/sim/startup/splash-progress-spinner", finalText);
|
||||||
}
|
}
|
||||||
|
|
||||||
if( fgGetString("/sim/startup/splash-progress-text") == text )
|
if( fgGetString("/sim/startup/splash-progress-text") == text )
|
||||||
|
|
Loading…
Reference in a new issue