c# - 为什么我在 Visual Studio 编辑器中得到 'Localizable string'?

标签 c# visual-studio localization

我有以下 if 语句:

enter image description here

VS 告诉我 Localizable string: "Select a Unit"

我已经看过 Globalizing and Localizing .NET Framework Applications但仍然不清楚本地化到底是什么。

谁能解释一下这是什么意思?

最佳答案

它很可能是一个 Resharper 插件,可以为您提供该消息。它只是告诉您可以将字符串移动到资源文件中。除非您想在应用程序中支持多种语言,否则不需要。

更新:它是 Resharper 本身:https://www.jetbrains.com/resharper/help/Localization_Inspection.html

关于c# - 为什么我在 Visual Studio 编辑器中得到 'Localizable string'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33590812/

相关文章:

c# - 在 C# 中使用 "New-Object"cmdlet

javascript - 只能通过一个提交按钮发布值

visual-studio - 如何阻止 incredibuild 在我的 PC 上自动安装?

asp.net - 如何控制模型验证错误的显示语言

时间:2019-03-17 标签:c#SetupProjectLocalization

c# - 相同类型的无限方法参数

c# - 从 C# 中的通用对象获取属性

javascript - 删除 Visual Studio Web Developer Express 2012 中的注释代码

javascript - Visual Studio 2010 中 Javascript 中的区域/代码折叠

.net 本地化 : coexistence of old-school . resx 和新派 wpf .baml