/****************************************************************
   This file was created automatically by `FlexCat 1.5'
   from "Note.cd".

   Do NOT edit by hand!
****************************************************************/

#if defined(__SASC)  ||  defined(_DCC)
#include <proto/locale.h>
#elif defined(__GNUC__)
#include <inline/locale.h>
#else
#include <clib/locale_protos.h>
#endif




static LONG Note_Version = 0;
static const STRPTR Note_BuiltInLanguage = (STRPTR) "english";

struct FC_Type
{   LONG   ID;
    STRPTR Str;
};


const struct FC_Type _msgAppDesc = { 0, "little Notepad" };
const struct FC_Type _msgAboutTitle = { 1, "About µNote..." };
const struct FC_Type _msgAboutButton = { 2, "* _Smile " };
const struct FC_Type _msgAbout = { 3, "\033c\033bµNote\033n\n\n"\
	"©1996 Daniel Hirscher\n"\
	"hirscher@fl-sun00.fbe.fh-weingarten.de\n"\
	"e-mailware\n"\
	"a latenight & daylight production\n"\
	"4U!" };
const struct FC_Type _msgSchieber = { 4, "Scroller to scroll the text." };
const struct FC_Type _msgMDrucken = { 5, "Print" };
const struct FC_Type _msgMDruckenSC = { 6, "P" };
const struct FC_Type _msgMAbout = { 7, "About..." };
const struct FC_Type _msgMAboutM = { 8, "About MUI..." };
const struct FC_Type _msgMQuit = { 9, "Quit" };
const struct FC_Type _msgMSettings = { 10, "Settings" };
const struct FC_Type _msgMSettingsM = { 11, "MUI..." };


static struct Catalog *Note_Catalog = NULL;

void OpenNoteCatalog(struct Locale *loc, STRPTR language)
{ LONG tag, tagarg;
  extern struct Library *LocaleBase;
  extern void CloseNoteCatalog(void);

  CloseNoteCatalog(); /* Not needed if the programmer pairs OpenNoteCatalog
                       and CloseNoteCatalog right, but does no harm.  */

  if (LocaleBase != NULL  &&  Note_Catalog == NULL)
  { if (language == NULL)
    { tag = TAG_IGNORE;
    }
    else
    { tag = OC_Language;
      tagarg = (LONG) language;
    }
    Note_Catalog = OpenCatalog(loc, (STRPTR) "Note.catalog",
                                OC_BuiltInLanguage, Note_BuiltInLanguage,
                                tag, tagarg,
                                OC_Version, Note_Version,
                                TAG_DONE);
  }
}

void CloseNoteCatalog(void)
{
  extern struct Library *LocaleBase;
 if (LocaleBase != NULL)
  { CloseCatalog(Note_Catalog);
  }
  Note_Catalog = NULL;
}

STRPTR GetNoteString(APTR fcstr)
{ STRPTR defaultstr;
  LONG strnum;

  strnum = ((struct FC_Type *) fcstr)->ID;
  defaultstr = ((struct FC_Type *) fcstr)->Str;

  return(Note_Catalog ? GetCatalogStr(Note_Catalog, strnum, defaultstr) :
                      defaultstr);
}
