summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2023-12-18 23:41:41 (GMT)
committerGitHub <noreply@github.com>2023-12-18 23:41:41 (GMT)
commit4cfce3a4da7ca9513e7f2c8ec94d50f8bddfa41b (patch)
tree21b6e8e0f365bd60341e8c8c1daad91515b62f1b
parent41336a72b90634d5ac74a57b6826e4dd6fe78eac (diff)
downloadcpython-4cfce3a4da7ca9513e7f2c8ec94d50f8bddfa41b.zip
cpython-4cfce3a4da7ca9513e7f2c8ec94d50f8bddfa41b.tar.gz
cpython-4cfce3a4da7ca9513e7f2c8ec94d50f8bddfa41b.tar.bz2
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.
-rw-r--r--Mac/IDLE/IDLE.app/Contents/Info.plist2
-rw-r--r--Mac/Resources/app/Info.plist.in2
-rw-r--r--Mac/Resources/framework/Info.plist.in2
-rw-r--r--Misc/NEWS.d/next/macOS/2023-12-16-11-45-32.gh-issue-108269.wVgCHF.rst4
4 files changed, 10 insertions, 0 deletions
diff --git a/Mac/IDLE/IDLE.app/Contents/Info.plist b/Mac/IDLE/IDLE.app/Contents/Info.plist
index fea06d4..20b97b6 100644
--- a/Mac/IDLE/IDLE.app/Contents/Info.plist
+++ b/Mac/IDLE/IDLE.app/Contents/Info.plist
@@ -56,5 +56,7 @@
<string>%version%</string>
<key>NSHighResolutionCapable</key>
<true/>
+ <key>CFBundleAllowMixedLocalizations</key>
+ <true/>
</dict>
</plist>
diff --git a/Mac/Resources/app/Info.plist.in b/Mac/Resources/app/Info.plist.in
index 4ec828f..8362b19 100644
--- a/Mac/Resources/app/Info.plist.in
+++ b/Mac/Resources/app/Info.plist.in
@@ -58,5 +58,7 @@
<string>(c) 2001-2023 Python Software Foundation.</string>
<key>NSHighResolutionCapable</key>
<true/>
+ <key>CFBundleAllowMixedLocalizations</key>
+ <true/>
</dict>
</plist>
diff --git a/Mac/Resources/framework/Info.plist.in b/Mac/Resources/framework/Info.plist.in
index e131c20..238441c 100644
--- a/Mac/Resources/framework/Info.plist.in
+++ b/Mac/Resources/framework/Info.plist.in
@@ -24,5 +24,7 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>%VERSION%</string>
+ <key>CFBundleAllowMixedLocalizations</key>
+ <true/>
</dict>
</plist>
diff --git a/Misc/NEWS.d/next/macOS/2023-12-16-11-45-32.gh-issue-108269.wVgCHF.rst b/Misc/NEWS.d/next/macOS/2023-12-16-11-45-32.gh-issue-108269.wVgCHF.rst
new file mode 100644
index 0000000..8559845
--- /dev/null
+++ b/Misc/NEWS.d/next/macOS/2023-12-16-11-45-32.gh-issue-108269.wVgCHF.rst
@@ -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.