Bumped required version to 3. Build only catalogs
[AROS.git] / workbench / prefs / wanderer / locale.c
blob535c2350057b6a642c3fa790388442efb95832ff
1 /*
2 Copyright © 2004, The AROS Development Team. All rights reserved.
3 This file is part of the Wanderer Preferences program, which is distributed
4 under the terms of version 2 of the GNU General Public License.
6 $Id$
7 */
9 #include <exec/types.h>
10 #include <proto/locale.h>
12 #define CATCOMP_ARRAY
13 #include "strings.h"
15 #define CATALOG_NAME "System/Prefs/Wanderer.catalog"
16 #define CATALOG_VERSION 3
18 /*** Variables **************************************************************/
19 struct Catalog *catalog;
22 /*** Functions **************************************************************/
23 /* Main *********************************************************************/
24 CONST_STRPTR _(ULONG id)
26 if (LocaleBase != NULL && catalog != NULL)
28 return GetCatalogStr(catalog, id, CatCompArray[id].cca_Str);
30 else
32 return CatCompArray[id].cca_Str;
36 /* Setup ********************************************************************/
37 VOID Locale_Initialize(VOID)
39 if (LocaleBase != NULL)
41 catalog = OpenCatalog
43 NULL, CATALOG_NAME, OC_Version, CATALOG_VERSION, TAG_DONE
46 else
48 catalog = NULL;
52 VOID Locale_Deinitialize(VOID)
54 if(LocaleBase != NULL && catalog != NULL) CloseCatalog(catalog);