Skip to content

Commit 4cfce3a

Browse files
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.
1 parent 41336a7 commit 4cfce3a

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

Mac/IDLE/IDLE.app/Contents/Info.plist

+2
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@
5656
<string>%version%</string>
5757
<key>NSHighResolutionCapable</key>
5858
<true/>
59+
<key>CFBundleAllowMixedLocalizations</key>
60+
<true/>
5961
</dict>
6062
</plist>

Mac/Resources/app/Info.plist.in

+2
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,7 @@
5858
<string>(c) 2001-2023 Python Software Foundation.</string>
5959
<key>NSHighResolutionCapable</key>
6060
<true/>
61+
<key>CFBundleAllowMixedLocalizations</key>
62+
<true/>
6163
</dict>
6264
</plist>

Mac/Resources/framework/Info.plist.in

+2
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@
2424
<string>????</string>
2525
<key>CFBundleVersion</key>
2626
<string>%VERSION%</string>
27+
<key>CFBundleAllowMixedLocalizations</key>
28+
<true/>
2729
</dict>
2830
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Set ``CFBundleAllowMixedLocalizations`` to true in the Info.plist for the
2+
framework, embedded Python.app and IDLE.app with framework installs on
3+
macOS. This allows applications to pick up the user's preferred locale when
4+
that's different from english.

0 commit comments

Comments
 (0)