2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
3 $Id: locale.c 21129 2004-02-28 18:58:12Z chodorowski $
6 #include <exec/types.h>
7 #include <proto/locale.h>
12 #define CATALOG_NAME "System/Prefs/Font.catalog"
13 #define CATALOG_VERSION 0
15 /*** Variables **************************************************************/
16 struct Catalog
*catalog
;
19 /*** Functions **************************************************************/
20 /* Main *********************************************************************/
21 CONST_STRPTR
_(ULONG id
)
23 if (LocaleBase
!= NULL
&& catalog
!= NULL
)
24 return GetCatalogStr(catalog
, id
, CatCompArray
[id
].cca_Str
);
26 return CatCompArray
[id
].cca_Str
;
29 /* Setup ********************************************************************/
30 VOID
Locale_Initialize(VOID
)
32 if (LocaleBase
!= NULL
) {
35 NULL
, CATALOG_NAME
, OC_Version
, CATALOG_VERSION
, TAG_DONE
41 VOID
Locale_Deinitialize(VOID
)
43 if (LocaleBase
!= NULL
&& catalog
!= NULL
) CloseCatalog(catalog
);