2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
11 #include "compilerspecific.h"
14 /*********************************************************************************************/
16 void InitLocale(STRPTR catname
, ULONG version
)
19 LocaleBase
= (struct LocaleBase
*)OpenLibrary("locale.library", 39);
21 LocaleBase
= (struct Library
*)OpenLibrary("locale.library", 39);
25 catalog
= OpenCatalog(NULL
, catname
, OC_Version
, version
,
30 /*********************************************************************************************/
32 void CleanupLocale(void)
34 if (catalog
) CloseCatalog(catalog
);
35 if (LocaleBase
) CloseLibrary((struct Library
*)LocaleBase
);
38 /*********************************************************************************************/
40 CONST_STRPTR
MSG(ULONG id
)
44 return GetCatalogStr(catalog
, id
, CatCompArray
[id
].cca_Str
);
46 return CatCompArray
[id
].cca_Str
;
50 /*********************************************************************************************/