4 /****************************************************************
5 This file was created automatically by `%fv'
9 ****************************************************************/
11 #if defined(__SASC) || defined(_DCC)
12 #include <proto/locale.h>
13 #elif defined(__GNUC__)
14 #include <inline/locale.h>
16 #include <clib/locale_protos.h>
22 static LONG %b_Version = %v;
23 static const STRPTR %b_BuiltInLanguage = (STRPTR) %l;
31 const struct FC_Type _%i = { %d, %s };
34 static struct Catalog *%b_Catalog = NULL;
36 void Open%bCatalog(struct Locale *loc, STRPTR language)
38 extern struct Library *LocaleBase;
39 extern void Close%bCatalog(void);
41 Close%bCatalog(); /* Not needed if the programmer pairs Open%bCatalog
42 and Close%bCatalog right, but does no harm. */
44 if (LocaleBase != NULL && %b_Catalog == NULL)
45 { if (language == NULL)
50 tagarg = (LONG) language;
52 %b_Catalog = OpenCatalog(loc, (STRPTR) "%b.catalog",
53 OC_BuiltInLanguage, %b_BuiltInLanguage,
55 OC_Version, %b_Version,
60 void Close%bCatalog(void)
61 { if (LocaleBase != NULL)
62 { CloseCatalog(%b_Catalog);
67 STRPTR Get%bString(APTR fcstr)
71 strnum = ((struct FC_Type *) fcstr)->ID;
72 defaultstr = ((struct FC_Type *) fcstr)->Str;
74 return(%b_Catalog ? GetCatalogStr(%b_Catalog, strnum, defaultstr) :