macOS system language detection.
It appears the system language detection doesn't work on [some versions of?] macOS. Fixed. Strangely, querying the Cocoa API for the system locale on a system in US with the preferred language set to Korean produces the invalid locale "ko-US" instead of the expected "ko-KR". This behavior of returning the language with a invalid region qualifier for the language appears to happen only with languages where macOS does not have regional variants (this issue does not seem to occur with Canadian English, en-CA, for example.) A fuzzy matching locale function has been added to handle this issue.
This commit is contained in:
parent
c2ab6d461c
commit
c9e195549f
6 changed files with 96 additions and 4 deletions
|
|
@ -113,6 +113,9 @@ http://www.tuxpaint.org/
|
|||
* Tux Paint for macOS can now localize the macOS menubar.
|
||||
Mark Kim <markuskimius@gmail.com>
|
||||
|
||||
* Tux Paint for macOS can now detect the system language.
|
||||
Mark Kim <markuskimius@gmail.com>
|
||||
|
||||
* Updated `src/po/check_translations.sh` sanity-checking script
|
||||
so it properly finds the updated docs & other changes.
|
||||
Bill Kendrick <bill@newbreedsoftware.com>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue