[NTDLL] Consider SUBLANG_DEFAULT after SUBLANG_NEUTRAL when loading resources

Dmitry Timoshkov dmitry at baikal.ru
Tue Feb 15 19:58:20 CST 2005


"Alex Villaci­s Lasso" <a_villacis at palosanto.com> wrote:

> Actually, there was a bug in resource loading, which caused Wine to fail
> to load the apropriate resources for my locale (es_EC). As far as I can
> tell, the resource loader tries several combinations for the resource
> LCIDs, and then defaults to English. In my case, the LANGID was supposed
> to be 0x300a (Spanish, Ecuador), and the resources in regedit listed a
> resource for LANGID 0x040a (Spanish, DEFAULT language). The loader tried
> 0x300a (Spanish, Ecuador), and then 0x000a (Spanish, NEUTRAL). However,
> since DEFAULT != NEUTRAL, the Spanish resources failed to be loaded for
> my setup, and defaulted to English.
>
> This patch adds code to try SUBLANG_DEFAULT after SUBLANG_NEUTRAL when
> loading resources. This fixes the resource loading for my setup.

That's a not correct fix. You either need to add language resources for
your locale, or (if you believe that all spanish variants around the world
are the same) make spanish translations use

LANGUAGE LANG_SPANISH, NEUTRAL
instead of
LANGUAGE LANG_SPANISH, SUBLANG_DEFAULT

--
Dmitry.





More information about the wine-devel mailing list