1
0
Fork 0

Fix translations handling in the splash screen

Don't use the splash/ prefix, it doesn't exist in our XLIFF files.
This commit is contained in:
Florent Rougon 2018-10-12 07:38:09 +02:00
parent 4ee9021eab
commit 6d6e1809f0

View file

@ -644,11 +644,10 @@ void fgSplashProgress( const char *identifier, unsigned int percent )
std::string text; std::string text;
if (identifier[0] != 0) if (identifier[0] != 0)
{ {
std::string id = std::string("splash/") + identifier; text = globals->get_locale()->getLocalizedString(identifier, "sys");
text = globals->get_locale()->getLocalizedString(id.c_str(), "sys", "");
if( text.empty() ) if( text.empty() )
text = "<incomplete language resource>: " + id; text = std::string("<incomplete language resource>: ") + identifier;
} }
if (!strcmp(identifier,"downloading-scenery")) { if (!strcmp(identifier,"downloading-scenery")) {