如何在文本框中输入本地语言?

发布于 2024-12-28 12:08:18 字数 72 浏览 1 评论 0原文

我想在特定的文本框中用我的本地语言(西班牙语或孟加拉语)编写任何文本,

请告诉我该怎么做?

谢谢。

i want to write any text in my local language (Spanish or Bengali) in a particular textBox

Please tell me how can i do that ?

Thank`s.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

贪恋 2025-01-04 12:08:18

您需要查找“WPF 国际化”。有很多资源,包括优秀的 Microsoft 文档。

这是一个很好的起点:

.Net 中的国际化和 WPF

关键是:

  • 为每种语言定义单独的资源

  • 定义 UI 来查找每种语言的资源(而不是使用硬编码字符串)

PS:

就文本 INPUT 而言 - 用户可以输入任何内容他想要;她的电脑区域设置可以默认为任何可用的语言。

You need to look up "WPF internationalization". There are lots of resources, including excellent Microsoft documentation.

Here's a good place to start:

Internationalization in .Net and WPF

The key is:

  • Defining separate resources for each language

  • Defining your UI to look up the per-language resource (instead of using hard-coded strings)

PS:

As far as text INPUT - the user can enter anything he wants; her PC locale can default to any language available.

忆梦 2025-01-04 12:08:18

您需要相应地设置键盘语言,或者只是从谷歌翻译服务复制并粘贴。

You need to set your keyboard language accordingly or just copy and paste from the google translate services.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文