Home › Forums › TWAIN Classic › Why my select source dialog interface shows French
- This topic has 1 reply, 2 voices, and was last updated 11 years ago by spike.
- AuthorPosts
My computer is running English windows 8, but the select source dialog shows me French. Why? And how can I fix it?
Well that’s interesting 8)
So… the Select Source dialog is displayed by the Data Source Manager, or DSM. This is the common module of TWAIN, made available by the TWAIN Working Group.There are several versions of the DSM, in particular the older twain_32.dll and the newer TWAINDSM.dll. The TWAINDSM.dll comes in both a 32-bit and 64-bit version.
Are you a developer, and if so which programming language are you working in?
(It wouldn’t be WinDEV, by any chance?)
And which Data Source Manager are you loading and using?The newer TWAINDSM.dll will look first in the Application Identity structure that you pass as the first parameter to DSM_Entry when you display the Select Source dialog. (the DG_GROUP/DAT_IDENTITY/DSM_USERSELECT triplet.)
The language for the dialog is based on the Version.Language field of the Application Identity structure. (See the TWAIN spec for details, and twain.h for language constants.)
If Version.Language specifies a language, the DSM will try to use that that language, if it supports it.
If Version.Language = TWLG_USERLOCALE (= -1) then the DSM will query the Windows API function ‘GetUserDefaultLangID’ and try to use that language.
If the language determined this way is not supported by the DSM (e.g. Arabic) then the DSM falls back to English.- AuthorPosts