c# - 代码找不到塞尔维亚语资源

标签 c# .net localization cultureinfo

我有一个用 c# 编写的应用程序,该应用程序有多种语言 en-US fr-FR...etc.

我的语言文件是 .resx。所以我尝试添加新语言塞尔维亚语,但出现异常

{"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure \"Vim.lang.language.resources\" was correctly embedded or linked into assembly \"AVIM\" at compile time, or that all the satellite assemblies required are loadable and fully signed."}

所有其他语言都可以正常工作。

 this.culture = new CultureInfo("sr-SP-Latin", false);
 this.resourceManager = new ResourceManager(this.resourceFile, typeof(Program).Assembly);

如何解决这个问题?

最佳答案

您使用的值不正确,请使用 sr-Latn-RS

MSDN

关于c# - 代码找不到塞尔维亚语资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35518647/

相关文章:

c# - 如何使用 AddHours 和 AddMinutes 在 DateTime 变量中添加时间?

c# - 使用 Cake 构建和 MSBuild 在 TFS 中报告错误

.net - ildasm,然后是具有相同元数据的 ilasm

objective-c - 使用给定语言环境创建 NSSortDescriptor

localization - Xcode 5 和 .xib 文件的本地化

c# - 从数据 GridView 中动态删除列

c# - 带有 "this"关键字的接口(interface)成员

c# - 在不使用类的情况下,C# 中 javascript 对象的替代方案是什么?

.net - 带有 .NET 3.5 的 Microsoft Server 2003

ios - xcode 9 本地化应用程序问题