The code does the following:
1. Read the -lang command line
2. Call 
GetUserDefaultLangID()http://msdn.microsoft.com/en-us/library/windows/desktop/dd318134(v=vs.85).aspx
 this should get the current users language.
3. Try the current user langid but without the sub language.
4. Call 
GetSystemDefaultUILanguage()http://msdn.microsoft.com/en-us/library/windows/desktop/dd318123(v=vs.85).aspx
 this should get the system language.
5. Try the current system langid but without the sub language.

So (ignoring the command line) if the users language is Mexican and there is a 
Mexican translation it will find that, if not it will try Spanish. If that 
fails is will repeat the process of the system language.

I tested this on several languages and it did seem to work ok - I was only 
checking that the Burn UI was translated. Do you have a problem with a specific 
language?

Neil

-----Original Message-----
From: TimM [mailto:timmay...@smarttech.com] 
Sent: 13 August 2013 18:09
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] [SPAM] Re: multi-language bundle - A BIG THANKS

Rob, excuse a non-experienced programmer here.

I was looking at the code for the LocProbeForFile function was wondering about 
it. In the first if statement you are checking to see if a language was 
specified. Is this coming from a language selection dialog box and/or from the 
-lang LangID cmd line?

As stated if I use the -lang LangID on the cmd line then the Burn wrapper .exe 
will correctly launch in that language, using my translated theme files, but if 
we just launch the .exe it does not take the System Language.

So that brings me to the GetUserDefaultUILanguage and 
GetSystemDefaultUILanguage. If the seleted language is not found then where is 
it looking to check for User or System languages?

Again since I am not an experienced programmer I need to understand what these 
entries are looking for?

So if you do not mind giving a bit of help here I would appreciate it.

Also will WiX 3.8 have burn updated so that it can detect and launch in the 
system language, if supported?

Thanks



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/My-experiences-making-a-multi-language-bundle-tp7208949p7587982.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to