惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
有赞技术团队
有赞技术团队
Simon Willison's Weblog
Simon Willison's Weblog
人人都是产品经理
人人都是产品经理
L
LINUX DO - 最新话题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
A
Arctic Wolf
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
小众软件
小众软件
Jina AI
Jina AI
The Cloudflare Blog
P
Palo Alto Networks Blog
AWS News Blog
AWS News Blog
阮一峰的网络日志
阮一峰的网络日志
C
Cybersecurity and Infrastructure Security Agency CISA
Know Your Adversary
Know Your Adversary
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
NISL@THU
NISL@THU
G
GRAHAM CLULEY
Project Zero
Project Zero
博客园_首页
博客园 - 三生石上(FineUI控件)
罗磊的独立博客
Spread Privacy
Spread Privacy
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
Latest news
Latest news
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tor Project blog
S
Securelist
V
Vulnerabilities – Threatpost
T
The Exploit Database - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
IT之家
IT之家
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Last Watchdog
The Last Watchdog
T
Tenable Blog
宝玉的分享
宝玉的分享
S
Secure Thoughts
P
Privacy & Cybersecurity Law Blog
量子位
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Security Archives - TechRepublic
Security Archives - TechRepublic

博客园 - cncxz(虫虫)

在.NET环境下为网站增加IP过滤功能 推荐几个基于.net的cms系统 超赞的10个Windows Live Writer插件 发布ASP.NET应用程序时的10个好习惯(转) 一个基于web的pdf浏览器 ajax跨域访问代理文件下载(asp、php、asp.net) jQuery UI 1.0 已于2007-9-16日正式发布 Visual Studio插件大搜索(60+) 推荐一批基于web的开源html文本编辑器(40+) 终结IE6下背景图片闪烁问题 一个web应用程序统计在线用户列表的东东(带c#源码) 中了网络流氓www.e-jok.cn的招 使用 javascript 标记高亮关键词 Div+Css酷站一箩筐 在win2k3上使用卡巴斯基6.0 创建为ClickOnce清单签名的.pfx格式数字证书 Windows Live Messenger去广告补丁 一个阴历阳历互相转化的类(c#源码) 小发现:sql2005中的异常处理消息框可以直接使用
发布控件Express.NET.WindowsForms运行时的本地化补丁
cncxz(虫虫) · 2007-04-14 · via 博客园 - cncxz(虫虫)

    针对控件Developer.Express.NET.WindowsForms.Component.Collection.for.VS2005(v2.0.1)运行时的本地化补丁。

主要实现了以下11个程序集的本地化(目前只有简体中文包):

DevExpress.Utils3, Version=3.1.0.0,  PublicKeyToken=79868b8147b5eae4
DevExpress.XtraBars3, Version=3.6.0.0, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraEditors3, Version=3.1.0.0, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraGrid3, Version=3.1.0.0, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraNavBar3, Version=2.6.0.0, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraPivotGrid3, Version=1.1.0.0,PublicKeyToken=79868b8147b5eae4
DevExpress.XtraPrinting3, Version=1.11.0.0, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraReports3, Version=1.11.0.0, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraScheduler3, Version=1.0.0.0,  PublicKeyToken=79868b8147b5eae4
DevExpress.XtraTreeList3, Version=1.10.0.0,  PublicKeyToken=79868b8147b5eae4
DevExpress.XtraVerticalGrid3, Version=1.5.0.0, PublicKeyToken=79868b8147b5eae4

=========================================

使用说明

-------------------------------

1、在相应工程中添加DevExpress.RuntimeLocalizer.dll程序集引用

2、在 应用程序的主入口点函数中调用 LocalizerHelper类的相关方法实现运行时的本地化,例如

    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //可以在这里设置控件本地化代码 
         
            Application.Run(new Form1());
        }
    }

*LocalizerHelper类介绍:

该类位于DevExpress.RuntimeLocalizer命名空间(编写代码时注意导入)下,核心方法有以下四个:
     
        /// <summary>
        /// 为指定的单个或多个dll应用本地化资源
        /// </summary>
        /// <param name="assemblys">指定的dll枚举(多个可用位或操作)</param>
        /// <param name="showErrMsgBox">是否显示错误提示</param>
        public static void Apply(RuntimeAssembly assemblys, bool showErrMsgBox)


        /// <summary>
        /// 为指定的单个或多个dll应用本地化资源
        /// </summary>
        /// <param name="assemblys">指定的dll枚举(多个可用异或操作)</param>
        public static void Apply(RuntimeAssembly assemblys)


        /// <summary>
        /// 为所有的dll应用本地化资源
        /// </summary>
        /// <param name="showErrMsgBox">是否显示错误提示</param>
        public static void ApplyAll(bool showErrMsgBox)


        /// <summary>
        /// 为所有的dll应用本地化资源
        /// </summary>
        public static void ApplyAll()

程序发布时建议使用Apply(RuntimeAssembly assemblys)方法,用到了哪些dll就本地化哪些dll,为DevExpress.Utils3.dll、DevExpress.XtraBars3.dll和DevExpress.XtraEditors3.dll三个程序集应用本地化资源的代码如下:

LocalizerHelper.Apply((RuntimeAssembly.DevExpressUtils | RuntimeAssembly.XtraBars | RuntimeAssembly.XtraEditors));

测试时建议使用ApplyAll(bool showErrMsgBox)方法,代码如下:

LocalizerHelper.ApplyAll(true);//显示错误提示


==========================

其他

----------------------------

本汉化补丁代码由cncxz(虫虫)编写,简体中文翻译由cncxz(虫虫)、fansun(风行) 合作完成。

下载地址:https://files.cnblogs.com/cncxz/DevExpress.RuntimeLocalizer.0.5.rar