如何在C#Winforms中使用本地语言

编程入门 行业动态 更新时间:2024-10-11 13:24:06
本文介绍了如何在C#Winforms中使用本地语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Hello Guys,我做了一个App。在C#Windows应用程序中,该应用程序。支持多语言。用户可以在文本框中键入自己的语言。在这个应用程序。我已经使用全球化概念来根据用户选择显示不同的语言。在这个概念中,只显示了由开发人员给出的内容,但我希望用户在TextBox中输入文本,因为有愿望。伙计们请帮我解决这个问题。 谢谢。

解决方案

你需要使用全球化和附属程序集进行本地化。您可以使本地化高度自动化,甚至可以切换文化并在运行时自动更改UI的语言。我过去详细回答: 如何使用3种语言的单个resx文件 [ ^ ], winforms中的全球化 [ ^ ], winform 中的全球化/本地化问题[ ^ ]。
-SA

Hello Guys, I have done an App. in C# Windows Application, that app. Supports Multi-languages. as Users can type there own languages in text box. In this App. i have Used Globalization Concept for that to Display Different Languages as per the users selection. In This Concept Only the Content Which is Given by the developed is Displayed, But i want the User to enter the text in TextBox as there Wish. Guys Kindly Help me to Solve this Issue. Thank you.

解决方案

You need to use globalization and localization, with satellite assemblies. You can have localization highly automated, can even switch cultures and automatically change the language of the UI during runtime. I answered in detail in the past: How to use a Single resx file for 3 languages[^], globalization in winforms[^], globalization/localization problem in winform [^].
—SA

更多推荐

如何在C#Winforms中使用本地语言

本文发布于:2023-11-06 03:44:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562638.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:语言   如何在   Winforms

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!