1 ##rem $Id: C_c_V21.sd 253 2014-02-18 11:15:58Z damato $
5 /****************************************************************
7 This file was created automatically by `%fv'
12 ****************************************************************/
14 #if defined(__SASC) || defined(_DCC)
15 #include <proto/locale.h>
16 #elif defined(__GNUC__)
17 #include <inline/locale.h>
19 #include <clib/locale_protos.h>
25 static LONG %b_Version = %v;
26 static const STRPTR %b_BuiltInLanguage = (STRPTR) %l;
34 const struct FC_Type _%i = { %d, %s };
37 static struct Catalog *%b_Catalog = NULL;
39 void Open%bCatalog(struct Locale *loc, STRPTR language)
41 extern struct Library *LocaleBase;
42 extern void Close%bCatalog(void);
44 Close%bCatalog(); /* Not needed if the programmer pairs Open%bCatalog
45 and Close%bCatalog right, but does no harm. */
47 if (LocaleBase != NULL && %b_Catalog == NULL)
48 { if (language == NULL)
53 tagarg = (LONG) language;
55 %b_Catalog = OpenCatalog(loc, (STRPTR) "%b.catalog",
56 OC_BuiltInLanguage, %b_BuiltInLanguage,
58 OC_Version, %b_Version,
63 void Close%bCatalog(void)
64 { if (LocaleBase != NULL)
65 { CloseCatalog(%b_Catalog);
70 STRPTR Get%bString(APTR fcstr)
74 strnum = ((struct FC_Type *) fcstr)->ID;
75 defaultstr = ((struct FC_Type *) fcstr)->Str;
77 return(%b_Catalog ? GetCatalogStr(%b_Catalog, strnum, defaultstr) :