diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-12-19 21:08:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 21:08:59 (GMT) |
commit | 376b46d92b63223d1d415c0ec3c0c2602d7b7534 (patch) | |
tree | 9ace5be3d51f6f82391d92e9d443a7a1ca0d621d | |
parent | ce49a9f60e185e80717c0393b948e12774bfd2a6 (diff) | |
download | cpython-376b46d92b63223d1d415c0ec3c0c2602d7b7534.zip cpython-376b46d92b63223d1d415c0ec3c0c2602d7b7534.tar.gz cpython-376b46d92b63223d1d415c0ec3c0c2602d7b7534.tar.bz2 |
[3.12] gh-108269: Add CFBundleAllowMixedLocalizations to Info.plist on macOS (GH-113213) (#113294)
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>
-rw-r--r-- | Mac/IDLE/IDLE.app/Contents/Info.plist | 2 | ||||
-rw-r--r-- | Mac/Resources/app/Info.plist.in | 2 | ||||
-rw-r--r-- | Mac/Resources/framework/Info.plist.in | 2 | ||||
-rw-r--r-- | Misc/NEWS.d/next/macOS/2023-12-16-11-45-32.gh-issue-108269.wVgCHF.rst | 4 |
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. |