开发者

WiX Localization - Generic Culture?

D开发者_开发百科oes WiX not have the concept of generic cultures?

EDIT: specifically, is it possible to provide strings for a language separate from a country. I'd like to translate for French, German, etc. and not specify France, Canada, Germany, etc.


You can use generic cultures, such as "en" instead of "en-us", or "de" instead of "de-de". Set this in the Culture attribute of the WixLocalization element in the .wxl file:

<WixLocalization Culture="de" Codepage="1252" 
   xmlns="http://schemas.microsoft.com/wix/2006/localization">

...and also in the call to light using the -cultures flag:

Light.exe -loc German.wxl -cultures:de "*.wixobj" -out myInstaller.msi

...or, if you're using Visual Studio, set it in the project's properties.


While WiX does specify specific locale and region, it isn't a problem if you're going to use the same translations anyway. Basically there's no problem specifying and using fr-FR/pt-PT instead of fr-CA/pt-BR

For example, you probably use en-US by default but don't have any problems if your customers have their systems configured to use en-GB or en-AU locales do you?


Yes: Product/@Language="0" (see ProductLanguage in the MSI SDK).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜