diff options
author | tomasz1986 <twilczynski@naver.com> | 2024-08-31 22:47:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-31 22:47:10 +0200 |
commit | 9aa2d2c92f64aeded2bed3042031d5f615a71219 (patch) | |
tree | 7544e1d0a0b8838a8bbc4eca5cd83e4a3425be76 /lib/db/git@git.beyermatthi.as:syncthing | |
parent | d1c5100c98b2f3677c90b341cdd1f9271ae4d7dc (diff) |
gui: Fix incorrect UI language auto detection (fixes #9668) (#9669)HEADrelease-nightlymain
gui: Fix incorrect UI language auto detection (fixes #9668)
Currently, the code only checks whether the detected language partially
matches one of the available languages. This means that if the detected
language is "fi" but among the available languages there is only "fil"
and no "fi", then it will match "fi" with "fil", even though the two are
completely different languages.
With this change, the matching is only done when there is a hyphen in
the language code, e.g. "en" will match with "en-US".
Signed-off-by: Tomasz WilczyĆski <twilczynski@naver.com>
Diffstat (limited to 'lib/db/git@git.beyermatthi.as:syncthing')
0 files changed, 0 insertions, 0 deletions