2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 #include "portable_macros.h"
8 #include <aros/symbolsets.h>
10 #include <exec/types.h>
11 #include <proto/locale.h>
16 #define CATALOG_NAME "System/System/Wanderer.catalog"
17 #define CATALOG_VERSION 2
19 /*** Variables **************************************************************/
20 struct Catalog
*catalog
;
23 /*** Functions **************************************************************/
24 /* Main *********************************************************************/
25 CONST_STRPTR
_(ULONG id
)
27 if (LocaleBase
!= NULL
&& catalog
!= NULL
)
29 return GetCatalogStr(catalog
, id
, CatCompArray
[id
].cca_Str
);
33 return CatCompArray
[id
].cca_Str
;
37 /* Setup ********************************************************************/
38 BOOL
Locale_Initialize(VOID
)
40 if (LocaleBase
!= NULL
)
44 NULL
, CATALOG_NAME
, OC_Version
, CATALOG_VERSION
, TAG_DONE
55 VOID
Locale_Deinitialize(VOID
)
57 if(LocaleBase
!= NULL
&& catalog
!= NULL
) CloseCatalog(catalog
);
60 ADD2INIT(Locale_Initialize
, 90);
61 ADD2EXIT(Locale_Deinitialize
, 90);