twain-direct
twain-direct copied to clipboard
Set locale for session
Is is possible to set locale for the scanner?
I'm sending:
{
"kind":"twainlocalscanner",
"commandId": "{{$guid}}",
"method":"createSession",
"params": {
"locale": "cs-cz"
}
}
...but the scanner (Alaris S2000) locale is not changed for the session.
Is this impleted in twain-direct or am I doing something wrong?
Thank you for help
It's a feature of TWAIN Direct, but it looks like it hasn't been fully implemented in the TWAIN Bridge. The locale value is received and stored. There's also code in the Bridge to set the language, but that has to be done in the TWAIN namespace. So what appears to be missing is the mapping from the ISO format to the TWAIN namespace. Shouldn't be hard to fix it...