Does the idea of searching for the default sublang sound like a good idea then?

Neil

From: Rob Mensching [mailto:[email protected]]
Sent: 28 May 2013 21:44
To: Windows Installer XML toolset developer mailing list
Subject: Re: [WiX-devs] Burn Localisation

It needs to work correctly on Windows XP. Most of the loc functions you'd want 
to use don't. <sigh/>

On Tue, May 28, 2013 at 9:55 AM, Neil Sleightholm 
<[email protected]<mailto:[email protected]>> wrote:
Does anyone remember whether there was a conscious decision to use LANGID based 
folders for localisation of burn rather than culture name based folders (e.g. 
fr-FR)?

(Side note: I am using LANGID rather than LCID here as I believe LCID is more 
than just the language information.)

The issue I have with the current implementation is that you need to supply a 
translation for every sub language, when using culture names in .NET you can 
create a French folder (fr) and both France (fr-FR) and Belgium (fr-BE) sub 
languages can work with it.

There are a couple of alternatives to resolving this:

1.       Enhance the LocProbeForFile() code to search for the primary language 
version of the current locale if it doesn’t find a specific sub language 
folder. This would involve taking the current LANGID masking it with 0x3FF and 
then calling MAKELANGID(masked_langid, SUBLANG_DEFAULT) and probing that folder.

2.       Enhance the LocProbeForFile() code to use culture names and the fall 
back to using LANGID. It would need to probe for lang-sublang first and then 
just lang.

I would prefer to use option 2 as it seems to be more reliable as I have read 
that LANGID values have had to be adjusted to cope with the number of 
languages. The problem is, and this probably answers my original question, that 
there aren’t any C++ function to retrieve this information (well not that also 
work on Windows XP). So it looks like only option 1 is viable.

Does anyone have a view on this?

Regards

Neil

Neil Sleightholm
X2 Systems Limited
[email protected]<mailto:[email protected]>


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
WiX-devs mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/wix-devs

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to