[SailfishDevel] Determine keyboard locale

2015-11-25 Thread Matthias Fehring
Hello list,

is there a way to query the locale of the currently used keyboard in QML?

Qt.inputMethod.locale.name returns only "C", whatever keyboard is used.

Best greetings
Matthias

-- 
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)

Und der Buschfunk spielt gerade "Bis zum Mond" von "Muff Potter".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Determine keyboard locale

2015-11-25 Thread Pekka Vuorela
On ke, 2015-11-25 at 11:00 +0100, Matthias Fehring wrote:
> Hello list,
> 
> is there a way to query the locale of the currently used keyboard in
> QML?
> 
> Qt.inputMethod.locale.name returns only "C", whatever keyboard is
> used.

Unfortunately no proper way at the moment. Should implement support for
that interface at some point, though.


Bad hacky way is checking sailfish/text_input/active_layout dconf value
and inferring locale from qml file name. No guarantees on keeping it
that way and doesn't work with hardware keyboards.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org