开发者

What does 'Language neutral' mean with regard to MAKELANGID?

开发者 https://www.devze.com 2023-01-07 02:57 出处:网络
The docs for MAKELANGID specify that MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL) Means \'Language neutral\'.

The docs for MAKELANGID specify that MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL) Means 'Language neutral'.

This seems to be English on my machine (tried it with Form开发者_运维问答atMessage), but what does it mean in general? Is it guarenteed to be English?

Thanks!


I would expect that this means that the strings associated with the lang id are not specific to any language - which could be useful to know for a localisation team. "%1 + %2 = %3" would be an example of one such string.


with sublanguage = SUBLANG_DEFAULT this would be the user's default language. https://web.archive.org/web/20100704043524/http://msdn.microsoft.com/en-us/library/ms534732(VS.85).aspx

Here's a note on the sublanguage identifier - https://web.archive.org/web/20100728153356/http://wiki.winehq.org/SublangNeutral.

Note that MAKELANGID creates a language identifier for you from the primary language and sublanguage identifier - it does "not" get the default language, or anything like that.


No, it is not "gauranteed to be English." It "is" whatever you place into it at that point (English, in your case). But it means that it should not serve as a (language) satellite assembly (except maybe as a fallback).

0

精彩评论

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