Ken Thomases : loader: Add the CFBundleAllowMixedLocalizations key to the embedded Info.plist to allow Cocoa to localize its strings.

Alexandre Julliard julliard at wine.codeweavers.com
Sat Dec 12 10:41:43 CST 2015


Module: wine
Branch: master
Commit: 19cb98aa1de0e6a69bfd59604d9b415240ffdf2d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=19cb98aa1de0e6a69bfd59604d9b415240ffdf2d

Author: Ken Thomases <ken at codeweavers.com>
Date:   Thu Dec 10 16:37:12 2015 -0600

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

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.

Signed-off-by: Ken Thomases <ken at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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>




More information about the wine-cvs mailing list