2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
5 #include <aros/symbolsets.h>
6 #include <exec/types.h>
7 #include <proto/locale.h>
12 #define CATALOG_NAME "System/Tools/WiMP.catalog"
13 #define CATALOG_VERSION 1
15 /*** Variables **************************************************************/
16 static struct Catalog
*catalog
;
19 /*** Functions **************************************************************/
20 /* Main *********************************************************************/
21 CONST_STRPTR
_(ULONG id
)
23 if (LocaleBase
!= NULL
&& catalog
!= NULL
)
25 return GetCatalogStr(catalog
, id
, CatCompArray
[id
].cca_Str
);
29 return CatCompArray
[id
].cca_Str
;
33 /* Setup ********************************************************************/
34 BOOL
Locale_Initialize(VOID
)
36 if (LocaleBase
!= NULL
)
40 NULL
, CATALOG_NAME
, OC_Version
, CATALOG_VERSION
, TAG_DONE
51 VOID
Locale_Deinitialize(VOID
)
53 if(LocaleBase
!= NULL
&& catalog
!= NULL
) CloseCatalog(catalog
);
56 ADD2INIT(Locale_Initialize
, 90);
57 ADD2EXIT(Locale_Deinitialize
, 90);