You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System: Win7, Win8.1, probably others too
Delta Chat Version: 1.3.4
Expected behavior: Main menu being in Russian, from get-go
Actual behavior: Main menu reading File/Edit/etc until user's manual override
One the cleansed launch (usual first launch was impossible due to #1597) the file/edit/etc menu was not translated to Russian, which is default OS user locale
I know i can switch it manually, but i believe newb-oriented program should "just work" before any user's tuning
On Linux you typically can get RFC-like language string from LOCALE environment variable.
On Windows that preceeded those they made their own infrasturcture....
First one can get numeric code (LC_ID) from AFAIR GetThreadLocale Win32 function.
It would be 1049==0x419 for Russian.
Win7+ also has this per-user setting, but i am not sure those are reliable... Have no Win2k or XP to check.
HKEY_CURRENT_USER\Control Panel\International
Locale=00000419
LocaleName=ru-RU
And if empty, less correct, but maybe more simple is to get computer-global default language as default values from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language (REG_SZ "00000419" to me).
Then translating it to "ru" via HKEY_CLASSES_ROOT\MIME\DataBase\Rfc1766
The text was updated successfully, but these errors were encountered:
Basically we need the feature to auto detect the system language and set it on the first start.
We could probably use https://www.electronjs.org/docs/api/locales for this. app.getLocale()
One the cleansed launch (usual first launch was impossible due to #1597) the file/edit/etc menu was not translated to Russian, which is default OS user locale
I know i can switch it manually, but i believe newb-oriented program should "just work" before any user's tuning
On Linux you typically can get RFC-like language string from LOCALE environment variable.
On Windows that preceeded those they made their own infrasturcture....
First one can get numeric code (LC_ID) from AFAIR
GetThreadLocale
Win32 function.It would be 1049==0x419 for Russian.
Win7+ also has this per-user setting, but i am not sure those are reliable... Have no Win2k or XP to check.
HKEY_CURRENT_USER\Control Panel\International
Locale=00000419
LocaleName=ru-RU
And if empty, less correct, but maybe more simple is to get computer-global default language as default values from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language (REG_SZ "00000419" to me).
Then translating it to "ru" via HKEY_CLASSES_ROOT\MIME\DataBase\Rfc1766
The text was updated successfully, but these errors were encountered: