home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Developer CD v1.2
/
amidev_cd_12.iso
/
devcon
/
milan_1991
/
devcon91.2
/
locale
/
development
/
example
/
texttable.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-01
|
570b
|
33 lines
#define STRINGARRAY
#include <exec/types.h>
#include <libraries/locale.h>
#include <clib/locale_protos.h>
#include <pragmas/locale_pragmas.h>
#include "texttable.h"
#define LocaleBase li->li_LocaleBase
#define catalog (struct Catalog *)li->li_Catalog
STRPTR GetString(struct LocaleInfo *li,LONG id)
{
UWORD i;
STRPTR local = NULL;
i = 0;
while (!local)
{
if (AppStrings[i].as_ID == id)
local = AppStrings[i].as_Str;
i++;
}
if (LocaleBase)
return(GetCatalogStr(catalog,id,local));
return(local);
}