3 /***************************************************************************
5 TextEditor.mcc - Textediting MUI Custom Class
6 Copyright (C) 1997-2000 Allan Odgaard
7 Copyright (C) 2005-2014 TextEditor.mcc Open Source Team
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
19 TextEditor class Support Site: http://www.sf.net/projects/texteditor-mcc
21 $Id: C_c.sd 945 2014-01-26 09:03:06Z damato $
23 ***************************************************************************/
26 * If this file is named 'locale.c' it is automatically
27 * generated by 'FlexCat' from C_c.sd. PLEASE DO NOT EDIT!!!
30 #include <proto/locale.h>
32 #include "SDI_compiler.h"
35 struct FC_Type { const long ID; const char * const Str; };
37 const struct FC_Type _%i = { %d, %s };
39 static struct Catalog *TE_Catalog = NULL;
41 /*** Catalog functions ***/
43 const char *tr(const void *fcstr)
45 const char *defaultstr = ((struct FC_Type *)fcstr)->Str;
48 return (const char *)GetCatalogStr(TE_Catalog, ((struct FC_Type *)fcstr)->ID, (STRPTR)defaultstr);
60 CloseCatalog(TE_Catalog);
70 static const struct TagItem tags[] = {
71 { OC_BuiltInLanguage, (IPTR)%l },
78 if(LocaleBase && TE_Catalog == NULL)
79 TE_Catalog = OpenCatalogA(NULL, (STRPTR)"%b.catalog", (struct TagItem *)&tags[0]);
81 RETURN((BOOL)(TE_Catalog != NULL));
82 return (BOOL)(TE_Catalog != NULL);