Page 1 of 1

Datatypes localized?

Posted: Sun May 15, 2016 6:17 am
by mritter0
When checking a file for what datatype it is

Code: Select all

if ((dt=IDataTypes->ObtainDataType(
	DTST_FILE,							(APTR)lock,
TAG_DONE)))
{
        dth=dt->dtn_Header;
	IUtility->Strlcpy(SAK_DTName,dth->dth_Name,25);
}
Is dth->dth_Name localized or just in English? Would be: ASCII, PDF, Binary, JPEG, PNG....

I would imagine some depend on the datatype itself being localized.

Re: Datatypes localized?

Posted: Sun May 15, 2016 10:29 am
by salass00
Is dth->dth_Name localized or just in English?
No, they are not localized.

Some are hardcoded in datatypes.library/AddDataTypes like "binary", "ascii", "iff" and "directory" and others are just read directly from the descriptor file.