[wix-users] Localization in MBA

Huy Doan hdoan at vmware.com
Thu Jul 7 14:29:55 PDT 2016


Excellent Phill. Thank you so much for the help. The only problem I had was I didn't include those .resource.dll files as Payloads in the bundle. You saved my two days of debugging.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Thursday, July 7, 2016 2:08 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Localization in MBA

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:

https://urldefense.proofpoint.com/v2/url?u=http-3A__www.wpftutorial.net_LocalizeMarkupExtension.html&d=CwICAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dIns6fQ--MkFJxuBFYmMeQ&m=ssLWt6eW_J9ef9iUxXxVcX15_5ACFVrSOd39W6KO8To&s=xgHCQ6OsoFegTXgv2-4aCZateW7wMq8xnbn7dkTj-8g&e= 


This link has a lot of good information, including the above link

https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_questions_795025_localization-2Din-2Dwpf&d=CwICAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dIns6fQ--MkFJxuBFYmMeQ&m=ssLWt6eW_J9ef9iUxXxVcX15_5ACFVrSOd39W6KO8To&s=N5F3lV7odAaPRpKw6TRWiAPGH077HPGKewX-iiIWNJ8&e= 

I found that these tools were helpful in sorting our resource loading issues.
https://urldefense.proofpoint.com/v2/url?u=http-3A__ilspy.net_&d=CwICAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dIns6fQ--MkFJxuBFYmMeQ&m=ssLWt6eW_J9ef9iUxXxVcX15_5ACFVrSOd39W6KO8To&s=TwxbdCmLobthJpZKR8qyHTINmBkydvrdBVykc31WPY4&e= 
https://urldefense.proofpoint.com/v2/url?u=http-3A__snoopwpf.codeplex.com_&d=CwICAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dIns6fQ--MkFJxuBFYmMeQ&m=ssLWt6eW_J9ef9iUxXxVcX15_5ACFVrSOd39W6KO8To&s=5ELGJ33C28HO-8G73gBTFoYt5Q4OW9nn5Nqg2tSaU50&e= 

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 https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=CwICAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dIns6fQ--MkFJxuBFYmMeQ&m=ssLWt6eW_J9ef9iUxXxVcX15_5ACFVrSOd39W6KO8To&s=ZRku6fLPjAfVrV8m_1IrWbQCFF9lm5OhiH9hz402aig&e= 

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=CwICAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dIns6fQ--MkFJxuBFYmMeQ&m=ssLWt6eW_J9ef9iUxXxVcX15_5ACFVrSOd39W6KO8To&s=ZRku6fLPjAfVrV8m_1IrWbQCFF9lm5OhiH9hz402aig&e= 



More information about the wix-users mailing list