home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************
- This file was created automatically by `KitCat V1.1'
- Do NOT edit by hand!
- ****************************************************************/
-
- #ifndef CAT_H
- #include "CAT.h"
- #endif /* !CAT_H */
-
- #ifndef CLIB_LOCALE_PROTOS_H
- #include <clib/locale_protos.h>
- #endif /* !CLIB_LOCALE_PROTOS_H */
-
- #ifdef AZTEC_C
- #ifndef __PRAGMAS_LOCALE_LIB_H
- #include <pragmas/locale_lib.h>
- #endif /* !PRAGMAS_LOCALE_LIB_H */
- #endif /* AZTEC_C */
-
- static LONG DITO_englishVersion = 1;
- static const STRPTR DITO_englishBuiltInLanguage = (STRPTR) "deutsch";
-
- struct KCDITO_englishArrayType
- { LONG cca_ID;
- STRPTR cca_Str;
- };
-
- static const struct KCDITO_englishArrayType KCDITO_englishArray [] =
- {
- {m_language, (STRPTR)m_language_STR},
- {m_description, (STRPTR)m_description_STR},
- {m_grammar, (STRPTR)m_grammar_STR},
- {m_remark, (STRPTR)m_remark_STR},
- {m_plural, (STRPTR)m_plural_STR},
- {m_verb0, (STRPTR)m_verb0_STR},
- {m_verb1, (STRPTR)m_verb1_STR},
- {m_part0, (STRPTR)m_part0_STR},
- {m_part1, (STRPTR)m_part1_STR},
- {m_part2, (STRPTR)m_part2_STR},
- {m_part3, (STRPTR)m_part3_STR},
- {m_nocom, (STRPTR)m_nocom_STR},
- {m_bubnoun, (STRPTR)m_bubnoun_STR},
- {m_bubverb, (STRPTR)m_bubverb_STR},
- };
-
- extern struct Library *LocaleBase;
-
- static struct Catalog *DITO_englishCatalog = NULL;
- void OpenDITO_englishCatalog(struct Locale *loc, STRPTR language)
- { LONG tag, tagarg;
- CloseDITO_englishCatalog();
- if (language == NULL)
- { tag = TAG_IGNORE;
- }
- else
- { tag = OC_Language;
- tagarg = (LONG) language;
- }
- if (LocaleBase != NULL && DITO_englishCatalog == NULL)
- { DITO_englishCatalog = OpenCatalog(loc, (STRPTR) "DITO_english.catalog",
- OC_BuiltInLanguage, DITO_englishBuiltInLanguage,
- tag, tagarg,
- OC_Version, DITO_englishVersion,
- TAG_DONE);
- }
- }
-
- void CloseDITO_englishCatalog(void)
- { if (LocaleBase != NULL)
- CloseCatalog(DITO_englishCatalog);
- DITO_englishCatalog = NULL;
- }
-
- STRPTR GetDITO_englishString(LONG strnum)
- { STRPTR defaultstr = NULL;
- LONG i;
-
- for (i = 0; i < sizeof(KCDITO_englishArray)/sizeof(struct KCDITO_englishArrayType); i++)
- { if (KCDITO_englishArray[i].cca_ID == strnum)
- { defaultstr = KCDITO_englishArray[i].cca_Str;
- break;
- }
- }
- if (DITO_englishCatalog == NULL)
- { return(defaultstr);
- }
- return(GetCatalogStr(DITO_englishCatalog, strnum, defaultstr));
- }
-