2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /*********************************************************************************************/
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"},
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 /*********************************************************************************************/