which language set for NeutralResourcesLanguageAttribute?

∥☆過路亽.° 提交于 2020-01-16 19:30:13

问题


i am developing arabic and urdu app(in same application) so which language i set for NeutralResourcesLanguageAttribute(in assemble info page).


回答1:


A Visual Studio project will generally have:

  • Neutral resource files (e.g. MyResources.resx) that are compiled into the main assembly (MyAssembly.dll)

  • Culture-specific resource files (e.g. MyResources.de-DE.resx) that are compiled into a satellite assembly in a culture-specific subfolder (e.g. de-DE/MyAssembly.Resources.dll).

You should set NeutralResourcesLanguageAttribute to the culture you are using in your neutral resource files.

If it's a global application, you will generally use "en-US" for the neutral resources, and put other languages in satellite assemblies, for consistency with the .NET Framework itself.

In your case, you say you're using two non-English languages, so just pick one of them. Although your example image has English text, so you could use that too.




回答2:


Check this out

NeutralResourcesLanguageAttribute

You could set it to one of them, the one you would want to fall back to.



来源:https://stackoverflow.com/questions/11408661/which-language-set-for-neutralresourceslanguageattribute

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