home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Mecomp Multimedia 1
/
Mecomp-CD.iso
/
amiga
/
tools
/
wb
/
lupe
/
source
/
flexcat
/
lib
/
c_my_v21.sd
< prev
Wrap
Text File
|
1996-04-28
|
1KB
|
63 lines
##stringtype C
##shortstrings
/****************************************************************
This file was created automatically by `%fv'
from "%f0".
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 Close%bCatalog(void);
static LONG %b_Version = %v;
static const STRPTR %b_BuiltInLanguage = (STRPTR) %l;
char *strings[] = {
%s,
0
};
static struct Catalog *%b_Catalog = NULL;
void Open%bCatalog(struct Locale *loc, STRPTR language)
{ LONG tag, tagarg;
if (LocaleBase != NULL && %b_Catalog == NULL)
{ if (language == NULL)
{ tag = TAG_IGNORE;
}
else
{ tag = OC_Language;
tagarg = (LONG) language;
}
%b_Catalog = OpenCatalog(loc, (STRPTR) "%b.catalog",
OC_BuiltInLanguage, %b_BuiltInLanguage,
tag, tagarg,
OC_Version, %b_Version,
TAG_DONE);
}
}
void Close%bCatalog(void)
{ if (LocaleBase != NULL)
{ CloseCatalog(%b_Catalog);
}
%b_Catalog = NULL;
}
char *GetString (int item)
{
STRPTR defaultstr;
defaultstr = strings[item];
return(%b_Catalog ? GetCatalogStr(%b_Catalog, item, defaultstr) : defaultstr);
}