如何从C#检查是否安装了用于复杂脚本和rtl语言的文件? [英] How to check, from C#, are files for complex script and rtl languages installed?

查看:52
本文介绍了如何从C#检查是否安装了用于复杂脚本和rtl语言的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从C#中检查是否已安装复杂脚本和rtl语言(区域和语言设置)的文件?

How to check, from C#, are files for complex script and rtl languages (Regional and Language settings) installed?

还是有另一种检查从右到左文本是否可以正确显示在我的表单中的方法?

Or is there another way of checking whether right to left text will display correctly in my form?

编辑以获得更好的解释(我希望:))我正在创建一个使用阿拉伯字母(免费词典)的应用程序.因此,我要检查的是:已安装用于复杂脚本和从右到左语言(包括泰语)的文件"(语言"选项卡中区域和语言选项"中的复选框).如果未安装,则阿拉伯语单词将无法正确显示,如果是这种情况,我想警告用户.

Edit for better explanation (I hope :)) I'm creating an application that will use Arabic letters (free dictionary). So, I want to check are: "Files for complex script and right-to-left languages(Including Thai)" (CheckBox in "Regional and Language Options" in Language Tab) installed (Is CheckBox checked.). If they are not installed, Arabic words will not display correctly,and I want to warn user if that is the case.

谢谢

推荐答案

我不确定这是否能帮助您解决所有问题,但是您可以查询WMI.如果使用的是.Net,请签出System.Management命名空间.您将对...感兴趣.

I'm not sure if this will get you all the way there but, you can query WMI. If you are using .Net, check out the System.Management namespace. You will be interested in...

命名空间:root \ cimv2类:Win32_OperatingSystem属性:MUIL语言和/或语言环境

Namespace: root\cimv2 Class: Win32_OperatingSystem Properties: MUILanguages and/or Locale

这篇关于如何从C#检查是否安装了用于复杂脚本和rtl语言的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆