2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
11 /*********************************************************************************************/
13 void InitLocale(STRPTR catname
, ULONG version
)
16 LocaleBase
= (struct LocaleBase
*)OpenLibrary("locale.library", 39);
18 LocaleBase
= (struct Library
*)OpenLibrary("locale.library", 39);
22 catalog
= OpenCatalog(NULL
, catname
, OC_Version
, version
,
27 /*********************************************************************************************/
29 void CleanupLocale(void)
31 if (catalog
) CloseCatalog(catalog
);
32 if (LocaleBase
) CloseLibrary((struct Library
*)LocaleBase
);
35 /*********************************************************************************************/
43 retval
= (STRPTR
)GetCatalogStr(catalog
, id
, CatCompArray
[id
].cca_Str
);
45 retval
= CatCompArray
[id
].cca_Str
;
51 /*********************************************************************************************/