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

我与影子孤独终老i 提交于 2019-12-10 23:28:28

问题


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 FormatMessage), but what does it mean in general? Is it guarenteed to be English?

Thanks!


回答1:


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.




回答2:


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

Here's a note on the sublanguage identifier - 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.




回答3:


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).



来源:https://stackoverflow.com/questions/3234736/what-does-language-neutral-mean-with-regard-to-makelangid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!