为什么 WPF ScrollViewer 语言是 tr 但 ContextMenu 命令文本是英语?

发布于 2024-08-19 16:53:19 字数 150 浏览 4 评论 0原文

我在 WPF 中有一个 ScrollViewer。当我右键单击滚动控件时,上下文菜单将打开并写入命令,例如“滚动到此处”、“滚动到顶部”与“滚动到顶部”。 虽然我的 ScrollViwer 语言是“tr-Tr”,为什么 Scrollviewer ContextMenu 命令文本是英文?

I have a ScrollViewer in WPF. when I make right click to scroll control, context menu is opening and write commands like "Scroll Here, "Scroll Top" vs. vs.
although my ScrollViwer Language is "tr-Tr" , Why Scrollviewer ContextMenu command texts are in English ?

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

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

发布评论

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

评论(1

余厌 2024-08-26 16:53:19

您必须执行以下 2 个步骤:

  1. 运行土耳其语 Windows 或在英语 Windows 上安装土耳其语 MUI

更新:实际上您需要安装 .NET FW 土耳其语语言包。在Windows Vista或Win7中您只需要安装MUI。对于 WinXP,请从 http://www.microsoft.com/downloads/details.aspx?familyid=41C61D2A-D411-4DDE-9013-BB08EB688BB6&displaylang=en

  1. 将您的 App.xaml.cs 修改为:

publicpartial应用程序类:应用程序
{
静态应用程序()
{
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("tr-TR");
}

}

问候
库比莱

you must do these 2 steps:

  1. Either run a Turkish Windows or install Turkish MUI onEnglish Windows

UPDATE: Actually you need .NET FW Turkish Languaga Pack installed. In Windows Vista or Win7 you just need to to install MUI. For WinXP install .NET FW Turkish Languaga Pack from http://www.microsoft.com/downloads/details.aspx?familyid=41C61D2A-D411-4DDE-9013-BB08EB688BB6&displaylang=en

  1. Modify your App.xaml.cs as:

public partial class App : Application
{
static App()
{
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("tr-TR");
}

}

Regards
Kubilay

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