2 Copyright © 2004, The AROS Development Team. All rights reserved.
3 This file is part of the LoadResource program, which is distributed under
4 the terms of version 2 of the GNU General Public License.
7 #include <aros/symbolsets.h>
8 #include <exec/types.h>
9 #include <proto/locale.h>
14 #define CATALOG_NAME "System/C/LoadResource.catalog"
15 #define CATALOG_VERSION 2
17 /*** Variables **************************************************************/
18 static struct Catalog
*catalog
;
21 /*** Functions **************************************************************/
22 /* Main *********************************************************************/
23 CONST_STRPTR
_(ULONG id
)
25 if (LocaleBase
!= NULL
&& catalog
!= NULL
)
27 return GetCatalogStr(catalog
, id
, CatCompArray
[id
].cca_Str
);
31 return CatCompArray
[id
].cca_Str
;
35 /* Setup ********************************************************************/
36 BOOL
Locale_Initialize(void)
38 if (LocaleBase
!= NULL
)
42 NULL
, CATALOG_NAME
, OC_Version
, CATALOG_VERSION
, TAG_DONE
53 void Locale_Deinitialize(void)
55 if(LocaleBase
!= NULL
&& catalog
!= NULL
) CloseCatalog(catalog
);
58 ADD2INIT(Locale_Initialize
, 90);
59 ADD2EXIT(Locale_Deinitialize
, 90);