Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / prefs / TCPPrefs / locale.c
blobbaa882f80e6a1b4a5b269248135f5420aa444f4a
1 /*
2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
3 $Id: locale.c 21129 2004-02-28 18:58:12Z chodorowski $
4 */
6 #include <exec/types.h>
7 #include <proto/locale.h>
9 #define CATCOMP_ARRAY
10 #include "strings.h"
12 #define CATALOG_NAME "System/Prefs/Font.catalog"
13 #define CATALOG_VERSION 0
15 /*** Variables **************************************************************/
16 struct Catalog *catalog;
19 /*** Functions **************************************************************/
20 /* Main *********************************************************************/
21 CONST_STRPTR _(ULONG id)
23 if (LocaleBase != NULL && catalog != NULL)
24 return GetCatalogStr(catalog, id, CatCompArray[id].cca_Str);
25 else
26 return CatCompArray[id].cca_Str;
29 /* Setup ********************************************************************/
30 VOID Locale_Initialize(VOID)
32 if (LocaleBase != NULL) {
33 catalog = OpenCatalog
35 NULL, CATALOG_NAME, OC_Version, CATALOG_VERSION, TAG_DONE
37 }else
38 catalog = NULL;
41 VOID Locale_Deinitialize(VOID)
43 if (LocaleBase != NULL && catalog != NULL) CloseCatalog(catalog);