mirror of https://github.com/python/cpython
gh-108269: Add CFBundleAllowMixedLocalizations to Info.plist on macOS (GH-113213)
Adding this key with a value of true enables detecting the users prefered language in libraries accessing system APIs for this.
This commit is contained in:
parent
41336a72b9
commit
4cfce3a4da
|
@ -56,5 +56,7 @@
|
||||||
<string>%version%</string>
|
<string>%version%</string>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>CFBundleAllowMixedLocalizations</key>
|
||||||
|
<true/>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -58,5 +58,7 @@
|
||||||
<string>(c) 2001-2023 Python Software Foundation.</string>
|
<string>(c) 2001-2023 Python Software Foundation.</string>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>CFBundleAllowMixedLocalizations</key>
|
||||||
|
<true/>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -24,5 +24,7 @@
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>%VERSION%</string>
|
<string>%VERSION%</string>
|
||||||
|
<key>CFBundleAllowMixedLocalizations</key>
|
||||||
|
<true/>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Set ``CFBundleAllowMixedLocalizations`` to true in the Info.plist for the
|
||||||
|
framework, embedded Python.app and IDLE.app with framework installs on
|
||||||
|
macOS. This allows applications to pick up the user's preferred locale when
|
||||||
|
that's different from english.
|
Loading…
Reference in New Issue