Language code "es-XL" Spanish used in Latin America not Working in ASP.NET MVC using C#

huangapple go评论129阅读模式
英文:

Language code "es-XL" Spanish used in Latin America not Working in ASP.NET MVC using C#

问题

我们的应用程序支持多种语言,使用以下语言代码的资源文件。

英语 - en-US,德语 - de-DE,西班牙语(拉丁美洲) - es-XL,法语 - fr-FR

在使用Visual Studio 2012专业版构建资源文件解决方案时,相应的语言代码文件夹DLL被创建或修改。

但是,当我们转到Visual Studio 2019专业版时,资源文件中的西班牙语es-XL DLL未与es-XL文件夹一起创建,因此显示的是英语文本而不是西班牙语。其他语言文件夹已根据相应的语言代码创建,并显示了指定语言的内容。我们使用C#在.NET Framework 4.6.1上运行的ASP.NET MVC应用程序。

我已在我的计算机上安装了西班牙语(拉丁美洲)和西班牙语(西班牙)的语言包。西班牙语es-ES语言代码在创建POC时正常工作,但带有语言代码es-XL的西班牙语未能正常工作。

有没有人遇到过相同的问题?欢迎您的建议。

我已尝试创建带有上述英语、德语、西班牙语es-ES、es-MX语言代码的POC,只有es-XL语言代码的DLL在Visual Studio 2019专业版中未被创建。

英文:

We have support for multiple languages in our application using resource files with the below language code.

English - en-Us, German - de-DE, Spanish (Latin America) - ex-XL, French - fr-fR

While using Visual Studio 2012 Professional when building resource files solution the respective language code folder dll was created or modified.

But when have shifted to Visual Studio 2019 Profession Edition, the resource files Spanish ex-XL dll are not created with the ex-XL folder so it display English text instead of Spanish. Other language folders were created with respective language codes and displayed content that specifies languages. We have implemented applications in ASP.NET MVC using C# running on .NET framework 4.6.1.

I have installed a Spanish language pack on my machine Spanish (Latin America) and Spanish (Spain). Spanish es-ES language code is working fine localization when created POC is not working Spanish with language code es-XL.

Has anyone faced the same issue? Your suggestions are welcome.

I have tried create POC with above English, German, Spanish language es-ES, es-Mx language codes are working fine only es-XL language code dll is not created in Visual Studio 2019 Professional.

答案1

得分: 0

我不认为有任何定义的语言标签es-XL

BCP 47,这是语言标签结构的标准,不包括通用的XL子标签。

两字母的地区代码必须来自ISO 3166-1。

您可以搜索ISO 3166代码以找到有效的代码。

选择语言标签中,您可以看到提到es-419,意思是拉丁美洲地区使用的西班牙语,这可能是您需要的。

英文:

I don't think that there is any defined language tag es-XL

BCP 47, which is the standard for how language tags are structures doesn't include a generic XL subtag.

Two letter region codes have to come from ISO 3166-1.

You can search the ISO 3166 codes for something that will be valid.

From Choosing a Language Tag you can see mention of es-419 meaning Spanish as spoken in Latin America which is probably what you need.

huangapple
  • 本文由 发表于 2023年6月2日 00:01:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/76383770.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定