Don't returns NULL if the systemCatalog is not localized yet. Instead, fallback

to native string.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39895 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2010-12-20 16:25:38 +00:00
parent 1812583c05
commit 10c73bcbb3
+6 -4
View File
@@ -39,10 +39,12 @@ LibbeLocaleBackend::GetString(const char* string, const char* context,
const char* comment)
{
// The system catalog will not be there for non-localized apps.
if (systemCatalog)
return systemCatalog->GetString(string, context, comment);
else
return string;
if (systemCatalog) {
const char *translated = systemCatalog->GetString(string, context, comment);
if (translated)
return translated;
}
return string;
}