Author: pulkomandy Date: 2010-04-13 21:56:01 +0200 (Tue, 13 Apr 2010) New Revision: 36235 Changeset: http://dev.haiku-os.org/changeset/36235/haiku Modified: haiku/trunk/src/kits/locale/LibbeLocaleBackend.cpp Log: 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. Modified: haiku/trunk/src/kits/locale/LibbeLocaleBackend.cpp =================================================================== --- haiku/trunk/src/kits/locale/LibbeLocaleBackend.cpp 2010-04-13 18:26:26 UTC (rev 36234) +++ haiku/trunk/src/kits/locale/LibbeLocaleBackend.cpp 2010-04-13 19:56:01 UTC (rev 36235) @@ -38,7 +38,11 @@ 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; }