From 6d6e1809f00e3e2fa4e3f3dbf78967a39c474af1 Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Fri, 12 Oct 2018 07:38:09 +0200 Subject: [PATCH] Fix translations handling in the splash screen Don't use the splash/ prefix, it doesn't exist in our XLIFF files. --- src/Viewer/splash.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Viewer/splash.cxx b/src/Viewer/splash.cxx index 88cfa9f29..ee65ef147 100644 --- a/src/Viewer/splash.cxx +++ b/src/Viewer/splash.cxx @@ -644,11 +644,10 @@ void fgSplashProgress( const char *identifier, unsigned int percent ) std::string text; if (identifier[0] != 0) { - std::string id = std::string("splash/") + identifier; - text = globals->get_locale()->getLocalizedString(id.c_str(), "sys", ""); + text = globals->get_locale()->getLocalizedString(identifier, "sys"); if( text.empty() ) - text = ": " + id; + text = std::string(": ") + identifier; } if (!strcmp(identifier,"downloading-scenery")) {