From 46084c59ff9639179edb49c6b62bfd2fb0a4c9af Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 15 Jun 2020 16:40:47 +0100 Subject: [PATCH] Splash: fix a missing translation Slawek spotted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow the ‘% completed’ text to be translated. --- src/Viewer/splash.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Viewer/splash.cxx b/src/Viewer/splash.cxx index 8f3271e1a..eeb69269e 100644 --- a/src/Viewer/splash.cxx +++ b/src/Viewer/splash.cxx @@ -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 )