home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Mecomp Multimedia 1
/
Mecomp-CD.iso
/
amiga
/
tools
/
wb
/
lupe
/
source
/
lupe_cat.c
next >
Wrap
C/C++ Source or Header
|
1997-04-10
|
3KB
|
120 lines
/****************************************************************
This file was created automatically by `FlexCat 1.5'
from "lupe.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
extern struct Library *LocaleBase;
extern void CloselupeCatalog(void);
static LONG lupe_Version = 0;
static const STRPTR lupe_BuiltInLanguage = (STRPTR) "english";
char *strings[] = {
"Project",
"Jump",
"J",
"Jump To Screen",
"Jump To Active Screen",
"A",
"Save IFF",
"S",
"Enable",
"E",
"Fixed",
"D",
"Fast",
"F",
"Coordinates",
"C",
"Crosshair",
"R",
"Grid",
"G",
"Show RGB",
"W",
"About",
"?",
"Iconify On Close",
"N",
"Iconify",
"I",
"Quit",
"Q",
"The magnifying glass program.",
"Error",
"There is no other screen.",
"Can't lock publicscreen.",
"Can't get visualinfo from screen.",
"'AllocBitMap' for grid mask failed.",
"Can't allocate %ld Bytes for CyberPixelArray.",
"'AllocBitMap' for destination bitmap failed.",
"'AllocBitMap' for source bitmap failed.",
"Can't create a screen menu item.",
"Can't create screen menu.",
"Can't layout screen menu.",
"'AllocBitMap' failed. Can't save IFF picture.",
"Can't create '%s'.",
"Can't lock '%s'.",
"Can't allocate signal",
"Can't open Topaz.font",
"Can't open '%s' version %ld or higher.",
"Can't open window.",
"Can't create propgadget.",
"Can't create menu.",
"Can't init a Hotkey.\n%s disabled.",
"Can't create commodity custom objekt.",
"Can't create commodity broker objekt.",
"Can't create messageport for commodity-broker.",
"Unnamed",
"No Other Screen",
"written by:",
"This program is Public Domain.",
"Ok",
0
};
static struct Catalog *lupe_Catalog = NULL;
void OpenlupeCatalog(struct Locale *loc, STRPTR language)
{ LONG tag, tagarg;
if (LocaleBase != NULL && lupe_Catalog == NULL)
{ if (language == NULL)
{ tag = TAG_IGNORE;
}
else
{ tag = OC_Language;
tagarg = (LONG) language;
}
lupe_Catalog = OpenCatalog(loc, (STRPTR) "lupe.catalog",
OC_BuiltInLanguage, lupe_BuiltInLanguage,
tag, tagarg,
OC_Version, lupe_Version,
TAG_DONE);
}
}
void CloselupeCatalog(void)
{ if (LocaleBase != NULL)
{ CloseCatalog(lupe_Catalog);
}
lupe_Catalog = NULL;
}
char *GetString (int item)
{
STRPTR defaultstr;
defaultstr = strings[item];
return(lupe_Catalog ? GetCatalogStr(lupe_Catalog, item, defaultstr) : defaultstr);
}