]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-108269: Add CFBundleAllowMixedLocalizations to Info.plist on macOS (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Dec 2023 21:08:59 +0000 (22:08 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Dec 2023 21:08:59 +0000 (22:08 +0100)
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>
Mac/IDLE/IDLE.app/Contents/Info.plist
Mac/Resources/app/Info.plist.in
Mac/Resources/framework/Info.plist.in
Misc/NEWS.d/next/macOS/2023-12-16-11-45-32.gh-issue-108269.wVgCHF.rst [new file with mode: 0644]

index fea06d46324999e244dbde9ed586f781ba58cc04..20b97b67f41d1aac26431a5d3e03463824debc9a 100644 (file)
@@ -56,5 +56,7 @@
        <string>%version%</string>
        <key>NSHighResolutionCapable</key>
        <true/>
+       <key>CFBundleAllowMixedLocalizations</key>
+       <true/>
 </dict>
 </plist>
index 4ec828ff176e7b6dd333829aca244058b03a6652..8362b19b361b6274486e155f0c3222fb04a9b971 100644 (file)
@@ -58,5 +58,7 @@
        <string>(c) 2001-2023 Python Software Foundation.</string>
        <key>NSHighResolutionCapable</key>
        <true/>
+       <key>CFBundleAllowMixedLocalizations</key>
+       <true/>
 </dict>
 </plist>
index e131c205ef0b283374074616e89c08e1a148c3c6..238441ce2c76c7cc468a8921039b417af5effc7e 100644 (file)
@@ -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 (file)
index 0000000..8559845
--- /dev/null
@@ -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.