Change SUBLANG_DEFAULT to SUBLANG_NEUTRAL for LANG_SPANISH (was: [NTDLL] Consider SUBLANG_DEFAULT after SUBLANG_NEUTRAL when loading resources)

Alex Villaci­s Lasso a_villacis at palosanto.com
Wed Feb 16 12:49:00 CST 2005


Dmitry Timoshkov escribió:

> <>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.
>
So the resource loading was actually correct. It's the resource files 
that specify resources only for Spain and not for any other Spanish 
locale. Actually, all Spanish variants *are* the same (or else, similar 
enough to benefit from using resources from Spain rather than English 
resources). So here is the patch. It changes all the ocurrences of

LANG_SPANISH, SUBLANG_DEFAULT

to

LANG_SPANISH, SUBLANG_NEUTRAL

so that all Spanish locales use Spanish resources. If anyone from a 
different Spanish locale thinks that the resources from Spain are not 
adequate for their locale, please send a patch for their locale.

Changelog:
* Change SUBLANG_DEFAULT to SUBLANG_NEUTRAL for LANG_SPANISH in all 
resources, so that Spanish locales other than Spain also use Spanish 
resources.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-resource_ES_DEFAULT_NEUTRAL.patch
Type: text/x-patch
Size: 14904 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050216/8c9277a5/wine-resource_ES_DEFAULT_NEUTRAL.bin


More information about the wine-patches mailing list