Set CFBundleAllowMixedLocalizations in the app bundle to have NSLocale.currentLocale return the correct locale on non-English systems

This commit is contained in:
Kovid Goyal 2020-06-18 20:16:36 +05:30
parent e96dfadae7
commit 8818b5d8df
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -857,7 +857,10 @@ def macos_info_plist() -> bytes:
import plistlib import plistlib
VERSION = '.'.join(map(str, version)) VERSION = '.'.join(map(str, version))
pl = dict( pl = dict(
# see https://github.com/kovidgoyal/kitty/issues/1233
CFBundleDevelopmentRegion='English', CFBundleDevelopmentRegion='English',
CFBundleAllowMixedLocalizations=True,
CFBundleDisplayName=appname, CFBundleDisplayName=appname,
CFBundleName=appname, CFBundleName=appname,
CFBundleIdentifier='net.kovidgoyal.' + appname, CFBundleIdentifier='net.kovidgoyal.' + appname,