2 /****************************************************************
3 This file was created automatically by `FlexCat 2.4'
4 from "/cygdrive/e/Private/Projects/AROS-Win32/contrib/necessary/AHI/Device/ahi.cd".
7 ****************************************************************/
11 #include <libraries/locale.h>
12 #include <proto/locale.h>
19 const struct FC_Type _msgDefault
= { 0, "Default" };
20 const struct FC_Type _msgMenuControl
= { 1, "\000\000Control" };
21 const struct FC_Type _msgMenuLastMode
= { 2, "L\000Last Mode" };
22 const struct FC_Type _msgMenuNextMode
= { 3, "N\000Next Mode" };
23 const struct FC_Type _msgMenuPropertyList
= { 4, "?\000Property List..." };
24 const struct FC_Type _msgMenuRestore
= { 5, "R\000Restore" };
25 const struct FC_Type _msgMenuOK
= { 6, "O\000OK" };
26 const struct FC_Type _msgMenuCancel
= { 7, "C\000Cancel" };
27 const struct FC_Type _msgUnknown
= { 8, "UNKNOWN:Audio ID 0x%08lx" };
28 const struct FC_Type _msgReqOK
= { 9, "OK" };
29 const struct FC_Type _msgReqCancel
= { 10, "Cancel" };
30 const struct FC_Type _msgReqFrequency
= { 11, "Frequency" };
31 const struct FC_Type _msgDefaultMode
= { 12, "Default audio mode" };
32 const struct FC_Type _msgReqInfoTitle
= { 13, "Mode Properties" };
33 const struct FC_Type _msgReqInfoAudioID
= { 14, "Audio mode ID: 0x%08lx" };
34 const struct FC_Type _msgReqInfoResolution
= { 15, "Resolution: %ld bit %s" };
35 const struct FC_Type _msgReqInfoMono
= { 16, "mono" };
36 const struct FC_Type _msgReqInfoStereo
= { 17, "stereo" };
37 const struct FC_Type _msgReqInfoStereoPan
= { 18, "stereo with panning" };
38 const struct FC_Type _msgReqInfoChannels
= { 19, "Channels: %ld" };
39 const struct FC_Type _msgReqInfoMixrate
= { 20, "Mixing rates: %ld-%ld Hz" };
40 const struct FC_Type _msgReqInfoHiFi
= { 21, "HiFi mixing" };
41 const struct FC_Type _msgReqInfoRecordHalf
= { 22, "Record in half duplex" };
42 const struct FC_Type _msgReqInfoRecordFull
= { 23, "Record in full duplex" };
43 const struct FC_Type _msgReqInfoMultiChannel
= { 24, "7.1 multichannel" };
44 const struct FC_Type _msgFreqFmt
= { 25, "%lu Hz" };
46 static struct Catalog
*ahi_Catalog
= NULL
;
48 static const struct TagItem ahi_tags
[] = {
49 { OC_BuiltInLanguage
, (IPTR
)"english" },
54 void OpenahiCatalog(struct Locale
*loc
, STRPTR language
)
56 if(LocaleBase
!= NULL
&& ahi_Catalog
== NULL
)
58 ahi_Catalog
= OpenCatalog(loc
, (STRPTR
) "ahi.catalog",
59 language
? OC_Language
: TAG_IGNORE
, (IPTR
)language
,
64 struct Catalog
*ExtOpenCatalog(struct Locale
*loc
, STRPTR language
)
66 if(LocaleBase
!= NULL
)
68 return OpenCatalog(loc
, (STRPTR
) "ahi.catalog",
69 language
? OC_Language
: TAG_IGNORE
, (IPTR
)language
,
75 void CloseahiCatalog(void)
77 if (LocaleBase
!= NULL
)
79 CloseCatalog(ahi_Catalog
);
84 void ExtCloseCatalog(struct Catalog
*catalog
)
86 if (LocaleBase
!= NULL
)
88 CloseCatalog(catalog
);
92 STRPTR
GetahiString(APTR fcstr
)
94 STRPTR defaultstr
= ((struct FC_Type
*)fcstr
)->Str
;
96 return (STRPTR
) GetCatalogStr(ahi_Catalog
, ((struct FC_Type
*)fcstr
)->ID
, defaultstr
);
100 STRPTR
GetString(APTR fcstr
, struct Catalog
*catalog
)
102 STRPTR defaultstr
= ((struct FC_Type
*)fcstr
)->Str
;
104 return (STRPTR
) GetCatalogStr(catalog
, ((struct FC_Type
*)fcstr
)->ID
, defaultstr
);