twain-direct icon indicating copy to clipboard operation
twain-direct copied to clipboard

Set locale for session

Open petrjac opened this issue 4 years ago • 1 comments

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

petrjac avatar Nov 25 '20 10:11 petrjac

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...

mlmcl62 avatar Mar 24 '21 13:03 mlmcl62