How do I find out the TOS language version installed?
Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team
How do I find out the TOS language version installed?
Is there a way to interrogate what language TOS is in C? For example, if it’s US English, the date will be displayed as MM/DD/YY, if any european language it’ll be displayed DD/MM/YY.
Re: How do I find out the TOS language version installed?
If available, use the _IDT cookie to determine the user's/OS's preference how to display a date: http://toshyp.atari.org/en/003007.html#Cookie_2C_20_IDT
Otherwise, the sysbase variable points to an OSHEADER structure, whose os_conf member will tell you the TOS language.
Otherwise, the sysbase variable points to an OSHEADER structure, whose os_conf member will tell you the TOS language.
Re: How do I find out the TOS language version installed?
Great, thanks. I’ll look into these.
Re: How do I find out the TOS language version installed?
There is cookie less way - in TOS header there is region/language flag. Word at offset $1C . 7 is UK English, 3 is German .... You can find more details after little search.
Famous Schrodinger's cat hypothetical experiment says that cat is dead or alive until we open box and see condition of poor animal, which deserved better logic. Cat is always in some certain state - regardless from is observer able or not to see what the state is.
Re: How do I find out the TOS language version installed?
Yes, as I already wrote above: "Otherwise, the sysbase variable points to an OSHEADER structure, whose os_conf member will tell you the TOS language." However, the cookie -- if present -- should take preference when displaying a date/time to the user.AtariZoll wrote:There is cookie less way - in TOS header there is region/language flag. Word at offset $1C . 7 is UK English, 3 is German .... You can find more details after little search.
Re: How do I find out the TOS language version installed?
Thanks for the info. I found a PDF for the Atari Compendium- it’s one helluva reference guide!