[wix-users] Localization in MBA
Phill Hogland
phill.hogland at rimage.com
Thu Jul 7 14:08:14 PDT 2016
Yes, or rather burn does not do anything that would prevent you from localizing your mba using resx files (or other methods). I use resx files for 15 locales in my mba. I use another MarkupExtension but the following link should help you out.
I also use these in my AssemblyInfo.cs, but depending on the aproach you take below you might want to do something else.
[assembly: NeutralResourcesLanguage("en", UltimateResourceFallbackLocation.MainAssembly)]
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
Look at this:
http://www.wpftutorial.net/LocalizeMarkupExtension.html
This link has a lot of good information, including the above link
http://stackoverflow.com/questions/795025/localization-in-wpf
I found that these tools were helpful in sorting our resource loading issues.
http://ilspy.net/
http://snoopwpf.codeplex.com/
And then add the resource dlls to you bundle as a payload group for your BootstrapperApplication using the localized folder name as used in the name of the resx. .Net uses two letter lang-region codes.
<Payload Name='de\MyMba.resources.dll' SourceFile='!(bindpath.MyMba)\de\MyMba.resources.dll' />
<Payload Name='en-AU\MyMba.resources.dll' SourceFile='!(bindpath.MyMba)\en-AU\MyMba.resources.dll' />
________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Huy Doan <hdoan at vmware.com>
Sent: Thursday, July 7, 2016 3:23:05 PM
To: WiX Toolset Users Mailing List
Subject: [wix-users] Localization in MBA
Hello,
I have built an MBA and now want to localize the UI. I use WPF for the UI. I have tried some tutorials online to localize the WPF UI using .resx files. However, for some reasons it just doesn't work. I wonder if burn supports localization and if there is any examples for me to follow.
Thanks,
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list