Re: [Interest] Locale detection of Qt application hosted via WASM

2021-04-29 Thread Kai Köhne
> Von: Interest Im Auftrag von Nicholas Yue > Gesendet: Mittwoch, 28. April 2021 18:41 > An: interest@qt-project.org > Betreff: [Interest] Locale detection of Qt application hosted via WASM > > Hi, > > I have the following code (part of a small project) w

Re: [Interest] Locale detection of Qt application hosted via WASM

2021-04-28 Thread Elvis Stansvik
Den ons 28 apr. 2021 kl 22:05 skrev Thorsten Glaser : > > On Wed, 28 Apr 2021, Elvis Stansvik wrote: > > > Agree to put in an option to change language, but surely it should be > > possible to have the default be based on the language the user has set > > in the OS/browser, just like many web

Re: [Interest] Locale detection of Qt application hosted via WASM

2021-04-28 Thread Thorsten Glaser
On Wed, 28 Apr 2021, Elvis Stansvik wrote: > Agree to put in an option to change language, but surely it should be > possible to have the default be based on the language the user has set > in the OS/browser, just like many web applications do? (not Sure, as last resort, if the user has not yet

Re: [Interest] Locale detection of Qt application hosted via WASM

2021-04-28 Thread Elvis Stansvik
Den ons 28 apr. 2021 kl 18:57 skrev Thorsten Glaser : > > On Wed, 28 Apr 2021, Nicholas Yue wrote: > > > I am new to locale handling in general and definitely new to locale on the > > web browser. > > If you’re targetting a webbrowser, make the language selectable in > the software itself.

Re: [Interest] Locale detection of Qt application hosted via WASM

2021-04-28 Thread Nicholas Yue
Thank you Thorsten for the insight :-) On Wed, 28 Apr 2021 at 09:55, Thorsten Glaser wrote: > On Wed, 28 Apr 2021, Nicholas Yue wrote: > > > I am new to locale handling in general and definitely new to locale on > the > > web browser. > > If you’re targetting a webbrowser, make the language

Re: [Interest] Locale detection of Qt application hosted via WASM

2021-04-28 Thread Thorsten Glaser
On Wed, 28 Apr 2021, Nicholas Yue wrote: > I am new to locale handling in general and definitely new to locale on the > web browser. If you’re targetting a webbrowser, make the language selectable in the software itself. Anything else is an affront: both geolocation and browser language

[Interest] Locale detection of Qt application hosted via WASM

2021-04-28 Thread Nicholas Yue
Hi, I have the following code (part of a small project) which is being built both as a standalone executable and a wasm web application. They both work except the locale determination. On my Linux console, I can set the LANGUAGE environment to de and the executable will load the correct labels