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.
(cherry picked from commit
4cfce3a4da7ca9513e7f2c8ec94d50f8bddfa41b)
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
<string>%version%</string>
<key>NSHighResolutionCapable</key>
<true/>
+ <key>CFBundleAllowMixedLocalizations</key>
+ <true/>
</dict>
</plist>
<string>(c) 2001-2023 Python Software Foundation.</string>
<key>NSHighResolutionCapable</key>
<true/>
+ <key>CFBundleAllowMixedLocalizations</key>
+ <true/>
</dict>
</plist>
<string>????</string>
<key>CFBundleVersion</key>
<string>%VERSION%</string>
+ <key>CFBundleAllowMixedLocalizations</key>
+ <true/>
</dict>
</plist>
--- /dev/null
+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.