[PATCH] loader: Add the CFBundleAllowMixedLocalizations key to the embedded Info.plist to allow Cocoa to localize its strings.

Ken Thomases ken at codeweavers.com
Thu Dec 10 16:37:12 CST 2015


The loader itself is not a bundled application, so it has no localizations as
far as the Mac APIs are concerned.  Its CFBundleDevelopmentRegion is English,
so that's the preferred localization that the Mac APIs choose for it.

Cocoa manages the Enter Full Screen menu item that the Mac driver creates.  By
default, Cocoa prefers not to mix localizations.  Therefore, even though Cocoa
contains localized strings for "Enter Full Screen", it was just using the
English one for Wine, regardless of system language.

Setting this key tells it to use the non-English localizations from Cocoa even
though the loader's own preferred localization is English.

For <https://bugs.winehq.org/show_bug.cgi?id=39770>.

Signed-off-by: Ken Thomases <ken at codeweavers.com>
---
 loader/wine_info.plist.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/loader/wine_info.plist.in b/loader/wine_info.plist.in
index 2895aea..6495b8f 100644
--- a/loader/wine_info.plist.in
+++ b/loader/wine_info.plist.in
@@ -2,6 +2,8 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
+    <key>CFBundleAllowMixedLocalizations</key>
+    <true/>
     <key>CFBundleDevelopmentRegion</key>
     <string>English</string>
     <key>CFBundleExecutable</key>
-- 
2.6.0




More information about the wine-patches mailing list