revert between 56095 -> 55830 in arch
[AROS.git] / workbench / utilities / Installer / locale.c
blob9ee4420e57faedf1e03518f6a0dd1dacee7dfb77
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/types.h>
7 #include <proto/locale.h>
9 #define CATCOMP_ARRAY
10 #include "strings.h"
12 #define CATALOG_NAME "Utilities/Installer.catalog"
13 #define CATALOG_VERSION 1
15 /*** Variables **************************************************************/
16 struct Catalog *catalog;
19 /*** Functions **************************************************************/
20 /* Main *********************************************************************/
21 CONST_STRPTR _(ULONG id)
23 if (LocaleBase != NULL && catalog != NULL)
25 return GetCatalogStr(catalog, id, CatCompArray[id].cca_Str);
27 else
29 return CatCompArray[id].cca_Str;
33 /* Setup ********************************************************************/
34 VOID Locale_Initialize(VOID)
36 if (LocaleBase != NULL)
38 catalog = OpenCatalog
40 NULL, CATALOG_NAME, OC_Version, CATALOG_VERSION, TAG_DONE
43 else
45 catalog = NULL;
49 VOID Locale_Deinitialize(VOID)
51 if(LocaleBase != NULL && catalog != NULL) CloseCatalog(catalog);