2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
9 #include "datatypes_intern.h"
10 #include <proto/locale.h>
19 struct StringDef __dtStrings
[]=
21 { DTERROR_UNKNOWN_DATATYPE
, "Unknown data type for %s" },
22 { DTERROR_COULDNT_SAVE
, "Couldn't save %s" },
23 { DTERROR_COULDNT_OPEN
, "Couldn't open %s" },
24 { DTERROR_COULDNT_SEND_MESSAGE
, "Couldn't send message" },
25 { DTERROR_COULDNT_OPEN_CLIPBOARD
, "Couldn't open clipboard" },
26 { DTERROR_Reserved
, "Unknown data type" },
27 { DTERROR_UNKNOWN_COMPRESSION
, "Unknown compression type" },
28 { DTERROR_NOT_ENOUGH_DATA
, "Not enough data" },
29 { DTERROR_INVALID_DATA
, "Invalid data" },
30 { DTMSG_TYPE_OFFSET
+ DTF_BINARY
, "Binary" },
31 { DTMSG_TYPE_OFFSET
+ DTF_ASCII
, "ASCII" },
32 { DTMSG_TYPE_OFFSET
+ DTF_IFF
, "IFF" },
33 { DTMSG_TYPE_OFFSET
+ DTF_MISC
, "Miscellaneous" },
34 { GID_SYSTEM
, "System" },
36 { GID_DOCUMENT
, "Document" },
37 { GID_SOUND
, "Sound" },
38 { GID_INSTRUMENT
, "Instrument" },
39 { GID_MUSIC
, "Music" },
40 { GID_PICTURE
, "Picture" },
41 { GID_ANIMATION
, "Animation" },
42 { GID_MOVIE
, "Movie" },
47 /*****************************************************************************
50 #include <proto/datatypes.h>
52 AROS_LH1(CONST_STRPTR
, GetDTString
,
55 AROS_LHA(ULONG
, id
, D0
),
58 struct Library
*, DataTypesBase
, 23, DataTypes
)
62 Get a pointer to a localized datatypes string.
66 id -- ID of the string to get
70 Pointer to a NULL terminated string.
84 *****************************************************************************/
88 CONST_STRPTR str
= NULL
;
91 if((LocaleBase
!= NULL
) &&
92 (GPB(DataTypesBase
)->dtb_LibsCatalog
!= NULL
))
93 str
= GetCatalogStr(GPB(DataTypesBase
)->dtb_LibsCatalog
, id
, NULL
);
97 for(sd
= __dtStrings
; sd
->sd_String
; sd
++)
99 if (sd
->sd_StringID
== id
)