Moved tests for dos.library functions into the 'dos' subdir.
[AROS.git] / workbench / system / ftmanager / locale.c
blobecbc4e9df09ecbdc9fedc435313982a80be494d2
1 /*
2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
3 This file is part of the About program, which is distributed under
4 the terms of version 2 of the GNU General Public License.
6 $Id$
7 */
9 #include <aros/symbolsets.h>
10 #include <exec/types.h>
11 #include <proto/locale.h>
13 #define CATCOMP_ARRAY
14 #include "strings.h"
16 #define CATALOG_NAME "System/System/FTManager.catalog"
17 #define CATALOG_VERSION 0
19 /*** Variables **************************************************************/
20 static struct Catalog *catalog;
23 /*** Functions **************************************************************/
24 /* Main *********************************************************************/
25 CONST_STRPTR _(ULONG id)
27 if (LocaleBase != NULL && catalog != NULL)
29 return GetCatalogStr(catalog, id, CatCompArray[id].cca_Str);
31 else
33 return CatCompArray[id].cca_Str;
37 /* Setup ********************************************************************/
38 BOOL Locale_Initialize(VOID)
40 if (LocaleBase != NULL)
42 catalog = OpenCatalog
44 NULL, CATALOG_NAME, OC_Version, CATALOG_VERSION, TAG_DONE
47 else
49 catalog = NULL;
52 return TRUE;
55 VOID Locale_Deinitialize(VOID)
57 if(LocaleBase != NULL && catalog != NULL) CloseCatalog(catalog);
60 ADD2INIT(Locale_Initialize, 90);
61 ADD2EXIT(Locale_Deinitialize, 90);