2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
3 This file is part of the About program, which is distributed under
4 the terms of version 2 of the GNU General Public License.
9 #include <aros/symbolsets.h>
10 #include <exec/types.h>
11 #include <proto/locale.h>
16 #define CATALOG_NAME "System/System/About.catalog"
17 #define CATALOG_VERSION 2
19 /*** Variables **************************************************************/
20 static struct Catalog
*catalog
;
23 /*** Functions **************************************************************/
24 /* Main *********************************************************************/
25 CONST_STRPTR
_(ULONG id
)
27 if (LocaleBase
!= NULL
&& catalog
!= NULL
)
29 return GetCatalogStr(catalog
, id
, CatCompArray
[id
].cca_Str
);
33 return CatCompArray
[id
].cca_Str
;
37 /* Setup ********************************************************************/
38 BOOL
Locale_Initialize(VOID
)
40 if (LocaleBase
!= NULL
)
44 NULL
, CATALOG_NAME
, OC_Version
, CATALOG_VERSION
, TAG_DONE
55 VOID
Locale_Deinitialize(VOID
)
57 if(LocaleBase
!= NULL
&& catalog
!= NULL
) CloseCatalog(catalog
);
60 ADD2INIT(Locale_Initialize
, 90);
61 ADD2EXIT(Locale_Deinitialize
, 90);