update experimental gcc 6 patch to gcc 6.1.0 release
[AROS.git] / workbench / system / find / locale.c
blobd90a5b4b3932799d9dbaf3050d6638a266f52fbe
1 /*
2 Copyright © 2016, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/types.h>
7 #include <proto/locale.h>
9 #include <aros/symbolsets.h>
11 #define CATCOMP_ARRAY
12 #include "strings.h"
14 #define CATALOG_NAME "System/System/Find.catalog"
15 #define CATALOG_VERSION 1
17 /*** Variables **************************************************************/
18 struct Catalog *catalog;
21 /*** Functions **************************************************************/
22 /* Main *********************************************************************/
23 CONST_STRPTR _(ULONG id)
25 if (LocaleBase != NULL && catalog != NULL)
27 return GetCatalogStr(catalog, id, CatCompArray[id].cca_Str);
29 else
31 return CatCompArray[id].cca_Str;
35 /* Setup ********************************************************************/
36 BOOL Locale_Initialize(VOID)
38 if (LocaleBase != NULL)
40 catalog = OpenCatalog
42 NULL, CATALOG_NAME, OC_Version, CATALOG_VERSION, TAG_DONE
45 else
47 catalog = NULL;
49 return TRUE;
52 VOID Locale_Deinitialize(VOID)
54 if (LocaleBase != NULL && catalog != NULL) CloseCatalog(catalog);
58 ADD2INIT(Locale_Initialize, 90);
59 ADD2EXIT(Locale_Deinitialize, 90);