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 /*********************************************************************************************/
37 CONST_STRPTR
MSG(ULONG id
)
41 return GetCatalogStr(catalog
, id
, CatCompArray
[id
].cca_Str
);
45 return CatCompArray
[id
].cca_Str
;
49 /*********************************************************************************************/