Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / c / iprefs / localeprefs.c
blob07f4898df3c5eab3ef18870eb0d02161c39de544
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 /*********************************************************************************************/
11 #include "global.h"
13 #define DEBUG 0
14 #include <aros/debug.h>
16 /*********************************************************************************************/
18 void LocalePrefs_Handler(STRPTR filename)
20 struct Locale *newloc, *oldloc;
21 struct Catalog *newcat, *oldcat;
22 struct TagItem tags[] =
24 {OC_BuiltInLanguage, (IPTR)"english"},
25 {OC_Version , 0 },
26 {TAG_DONE }
29 D(bug("In IPrefs:LocalePrefs_Handler\n"));
31 if ((newloc = OpenLocale(filename)))
33 D(bug("In IPrefs:LocalePrefs_Handler. OpenLocale(\"%s\") okay\n", filename));
34 oldloc = LocalePrefsUpdate(newloc);
35 D(bug("In IPrefs:LocalePrefs_Handler. New Locale installed\n", filename));
37 /* Never close old locale */
39 /* if (oldloc) CloseLocale(oldloc); */
42 oldcat = (struct Catalog *)DOSBase->dl_Errors;
43 newcat = OpenCatalogA(NULL, "System/Libs/dos.catalog", tags);
44 DOSBase->dl_Errors = (struct ErrorString *)newcat;
46 /* Never close old dos.catalog */
48 /* if (oldcat) CloseCatalog(oldcat) */
50 D(bug("In IPrefs:LocalePrefs_Handler. Done.\n", filename));
53 /*********************************************************************************************/