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:
Adrien Destugues
2010-04-13 19:56:01 +00:00
parent 696914f907
commit 6e41269722
+5 -1
View File
@@ -38,7 +38,11 @@ const char*
LibbeLocaleBackend::GetString(const char* string, const char* context,
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;
}