NeutralResourcesLanguageAttribute设置哪种语言? [英] which language set for NeutralResourcesLanguageAttribute?

查看:125
本文介绍了NeutralResourcesLanguageAttribute设置哪种语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发阿拉伯语和urdu应用程序(在同一应用程序中),因此我为NeutralResourcesLanguageAttribute(在汇编信息页面中)设置了哪种语言.

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

推荐答案

Visual Studio项目通常具有:

A Visual Studio project will generally have:

  • 已被编译到主程序集( MyAssembly.dll )中的中性资源文件(例如MyResources.resx)

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

特定于文化的资源文件(例如MyResources.de-DE.resx),该文件在特定于区域性的子文件夹(例如, de-DE/MyAssembly.Resources.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).

您应该将NeutralResourcesLanguageAttribute设置为您在中性资源文件中使用的区域性.

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

如果它是全局应用程序,则通常将"en-US"用于中立资源,并将其他语言放入附属程序集,以与.NET Framework本身保持一致.

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.

这篇关于NeutralResourcesLanguageAttribute设置哪种语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆