Non-localised applications will not manage to get the system catalog. Provide a fallback in this case.
This allows to use ColorControl in non-localized apps. In that case, it will not be localized either. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36235 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -38,7 +38,11 @@ const char*
|
|||||||
LibbeLocaleBackend::GetString(const char* string, const char* context,
|
LibbeLocaleBackend::GetString(const char* string, const char* context,
|
||||||
const char* comment)
|
const char* comment)
|
||||||
{
|
{
|
||||||
return systemCatalog->GetString(string, context, comment);
|
// The system catalog will not be there for non-localized apps.
|
||||||
|
if(systemCatalog)
|
||||||
|
return systemCatalog->GetString(string, context, comment);
|
||||||
|
else
|
||||||
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user