WiX Burn Bootstrapper Localization

♀尐吖头ヾ 提交于 2019-12-06 05:46:58

问题


I have a custom burn bootstrapper application with localization in german (BurnUI_de-DE.wxl) and english (BURNUI_en-US.wxl). At present burn automatically starts in english. I don't know how to change the UI language at run time. The UI parts are designed in MVVM pattern and have a language selection drop down. I have a variable to detect the systemlanguageID like this

   <Variable Name="INSTALL_LANG" bal:Overridable="yes" Type="string" Value=[SystemLanguageID]"/>

Everything is in place. Now, how do I use this variable and instruct the burn engine to change the language? Furthermore, any best practices to localize the bootstrapper ?


回答1:


Burn is very particular about how you include other languages.

As long as you have localized your UI strings (eg #(loc.MyText) ) you can follow the good example here: Bootstrapper in English and German. Max's sample solution at the bottom of the page demonstrates all of the pieces so you can carry on to do any other languages that you need. Burn will then automatically use the right language file based on the computer's LCID.

If you have localized copies of your license/EULA, this posting explains the exact path requirements which are also rather picky. Localized License File



来源:https://stackoverflow.com/questions/21480678/wix-burn-bootstrapper-localization

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!