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:
@@ -39,10 +39,12 @@ LibbeLocaleBackend::GetString(const char* string, const char* context,
|
|||||||
const char* comment)
|
const char* comment)
|
||||||
{
|
{
|
||||||
// The system catalog will not be there for non-localized apps.
|
// The system catalog will not be there for non-localized apps.
|
||||||
if (systemCatalog)
|
if (systemCatalog) {
|
||||||
return systemCatalog->GetString(string, context, comment);
|
const char *translated = systemCatalog->GetString(string, context, comment);
|
||||||
else
|
if (translated)
|
||||||
return string;
|
return translated;
|
||||||
|
}
|
||||||
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user