3 /***************************************************************************
5 BetterString.mcc - A better String gadget MUI Custom Class
6 Copyright (C) 1997-2000 Allan Odgaard
7 Copyright (C) 2005 by BetterString.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 BetterString class Support Site: http://www.sf.net/projects/bstring-mcc/
21 $Id: C_c.sd,v 1.1 2005/04/21 20:52:04 damato Exp $
23 ***************************************************************************/
25 /****************************************************************
26 This file was created automatically by `FlexCat V1.3'
27 ****************************************************************/
29 #include <proto/locale.h>
31 struct FC_Type { long ID; char * Str; };
33 const struct FC_Type _%i = { %d, %s };
35 static struct Catalog *BS_Catalog = NULL;
37 /*** Catalog functions ***/
39 char *GetStr(APTR fcstr)
41 char *defaultstr = ((struct FC_Type *)fcstr)->Str;
45 return (char *)GetCatalogStr(BS_Catalog, ((struct FC_Type *)fcstr)->ID, (STRPTR)defaultstr);
52 // function that will strip out the special menusigns
53 char *GetStripStr(APTR fcstr)
55 char *loc_str = GetStr(fcstr);
57 return (0 == loc_str[1] ? &loc_str[2] : loc_str);
63 if (LocaleBase) CloseCatalog(BS_Catalog);
70 static const struct TagItem tags[] = {
71 { OC_BuiltInLanguage, (ULONG)%l },
76 if(LocaleBase && !BS_Catalog)
78 BS_Catalog = OpenCatalogA(NULL, "%b.catalog", (struct TagItem *)&tags[0]);