haiku/headers/private/locale/SystemCatalog.h
Oliver Tappe eaa5e0936d Fix #8452 (app's crashing for non-existent system catalog)
* make the system catalog a BCatalog instead of a BCatalogAddOn*,
  such that using a non-existing system catalog won't crash but
  simply return the untranslated string instead
* rename MutableLocaleRoster::GetSystemCatalog() to LoadSystemCatalog()
  and adjust it to use BCatalog::SetTo() in order to replace the
  data used by the given catalog
* adjust all users of gSystemCatalog accordingly
2012-04-14 17:58:58 +02:00

19 lines
302 B
C++

/*
* Copyright 2010, Oliver Tappe, zooey@hirschkaefer.de.
* Distributed under the terms of the MIT License.
*/
#ifndef _SYSTEM_CATALOG_H_
#define _SYSTEM_CATALOG_H_
#include <Catalog.h>
namespace BPrivate {
extern BCatalog gSystemCatalog;
} // namespace BPrivate
#endif // _SYSTEM_CATALOG_H_