如何本地化.Net Windows窗体元件

源文地址:http://www.devexpress.com/Support/Center/KB/p/A421.aspx

第一次做翻譯,借助百度詞典翻的,翻譯時間:2008.02.04


How to localize .Net Windows Forms components
如何本地化.Net Windows窗体元件

Article ID: A421 ; Product Group: .NET ; Product: DXperience Enterprise ; Modified On: 16 一月 2008
文章ID:A421;開發組:.NET;開發:DXperience Enterprise;修改:2008年1月16日

Description
描述

What is the best way to localize (translate) your .Net products, the XtraPrinting Library for instance?
本地化.Net產品的最好方式是什么,XtraPrinting庫就是一個例子?

Solution
解決方案:

Applies to:
The components for .NET Windows Forms included in the DXperience suite
适用于:
DXperience內部的.NET Windows Forms 元件.

The best solution is to localize components' resources and build satellite assemblies. Please see the Localization topic in the XtraEditors' documentation. The same approach is applicable to localizing the XtraGrid, XtraPrinting Library and other products. In brief, you should change the strings in the RESX files for all our products and send the modified files to the Support Team. We will then build satellite assemblies signed by our strongkey token for you.
關于本地化元件資源及編繹附屬的assemby文件的最佳方案,請查看在XtraEditors文檔中的本地化主題.這個方法同樣适用于本地化XtraGrid,XtraPrinting以及其它產品.簡而言之,你需要改變我們產品中的資源文件的字符串,請發送修改后的文件到相應的開發組.
我們將為你編繹帶有強密鑰的assembly.

Where Do I Get RESX Files for Translation?
If you purchase a component without source code, resource files are not installed on your system. The resource files you need for translation are included in the attached archive. You should download the file, which matches your component version. Please find the What's New document, if you want to update existing translations after installing new versions of the Developer Express components.
哪里可以得到用于翻譯的資源文件?
如果你購買的是一個沒有源代碼的組件,資源文件就不會在系統中安裝.你所要的用于翻譯的資源文件在附屬的文件中.你必須下載相應版本的文件.如果安裝了新版本的Developer Express元件后,你想要更新這些翻譯,請查找What's New document(哪些是新文件).

Already Available Translations
The attached files also contain the signed satellite assemblies. The file name contains the last updated date and the product version number for easier reference. You will need to extract the assemblies from the archive and add them to the Assembly Cache or to your application's folder.
已有的有效翻譯
附帶的文件中包含有被標識的附屬assembly文件.為更方便使用,文件名中包含有更新日期和產品版本號.你需要從文件中提取assemby,然后才能將它們添加到Assemby緩存中或你的應用程式的文件夾中.

Currently, we have translations for the following languages. The translated resource files were kindly sent to us by our customers.
目前,我們有以下語言的翻譯,這些翻譯的資源文件全是我們的客戶發給我們的.

加泰罗尼亚Catalan ca: Editors, Grid, Printing, TreeList
中文 (中國)Chinese (China) zh-CN: Bars
中文 (簡体)Chinese (Simplified) zh-CHS: Utils, Bars, Charts, Editors, Grid, Layout, NavBar, PivotGrid, Printing, Reports, RichTextEdit, Scheduler, SpellChecker, TreeList, VerticalGrid
中文 (台灣)Chinese (Taiwain)  zh-TW: Data, Utils, Bars, Grid, Layout, NavBar, PivotGrid, TreeList, VerticalGrid
克罗埃西亚Croatian hr: Scheduler
捷克Czech  cs: Data, Utils, Xpo, Bars, Charts, Editors, Grid, Layout, NavBar, PivotGrid, Printing Library, Reports, RichTextEdit, Scheduler, SpellChecker, TreeList, VerticalGrid
丹麦Danish da: Bars, Editors, Grid, NavBar, PivotGrid, Printing Library, Reports, Scheduler, TreeList, VerticalGrid
荷兰Dutch nl: Data, Utils, Bars, Charts, Editors, Grid, Layout, NavBar, PivotGrid, Printing Library, Reports, RichTextEdit, Scheduler, SpellChecker, TreeList, VerticalGrid
芬兰Finnish fi-FI: Data, Utils, Bars, Charts, Editors, Grid, Layout, NavBar, PivotGrid, Printing Library, Reports, RichTextEdit, Scheduler, SpellChecker, TreeList, VerticalGrid
法国French fr: Utils, Bars, Editors, Grid, Layout, NavBar, PivotGrid, Printing Library, Scheduler, TreeList, VerticalGrid
德国German de: Data, Utils, Xpo, Bars, Charts, Editors, Grid, Layout, NavBar, PivotGrid, Printing, Reports, RichTextEdit, Scheduler, SpellChecker, TreeList, VerticalGrid
希腊Greek el: Utils, Bars, Editors, Grid, PivotGrid, Printing Library, Reports
冰岛Icelandic is-IS: Utils, Bars, Editors, Grid, NavBar, Printing Library, Reports, RichTextEdit, TreeList, VerticalGrid
意大利Italian it: Data, Utils, Bars, Editors, Grid, NavBar, PivotGrid, Printing Library, Reports, Scheduler, TreeList, VerticalGrid
日本Japanese ja: Utils, Bars, Editors, Grid, NavBar, Printing Library, TreeList
挪威Norwegian (Bokmål) no: Bars, Editors, Grid, Layout, NavBar, PivotGrid, Printing Library, Reports, Scheduler, TreeList, VerticalGrid
波兰Polish pl: Data, Utils, Xpo, Bars, Charts, Editors, Grid, Layout, NavBar, PivotGrid, Printing Library, Reports, RichTextEdit, Scheduler, SpellChecker, TreeList, VerticalGrid
葡萄牙Portuguese pt: Utils, Bars, Charts, Editors, Grid, Layout, NavBar, PivotGrid, Printing Library, Reports, Scheduler, TreeList, VerticalGrid
葡萄牙Portuguese (Brazil) pt-BR: Utils, Bars, Charts, Editors, Grid, Layout, NavBar, PivotGrid, Printing Library, Reports, RichTextEdit, Scheduler, TreeList, VerticalGrid
罗马尼亚Romanian ro: Data, Utils, Bars, Charts, Editors, Grid, Layout, NavBar, PivotGrid, Printing Library, Reports, RichTextEdit, TreeList, VerticalGrid
俄语Russian ru: Data, Utils, Xpo, Bars, Charts, Editors, Grid, Layout, NavBar, PivotGrid, Printing, Reports, RichTextEdit, Scheduler, SpellChecker, TreeList, VerticalGrid
斯洛文尼亚Slovenian sl: Bars, Editors, Grid, NavBar, PivotGrid, Printing Library, Reports, TreeList, VerticalGrid
西班牙Spanish es: Data, Utils, Xpo, Bars, Charts, Editors, Grid, Layout, NavBar, PivotGrid, Printing Library, Reports, RichTextEdit, Scheduler, SpellChecker, TreeList, VerticalGrid
瑞典Swedish sw: Scheduler
越南Vietnamese vi: Editors, Grid

About A Test Project
The attached dxKB0421_DXperience_*.zip files include a test project for v6.3 and higher. If you are using the version older than v6.3, please download dxKB0421_TestProject_v1,2,6x.zip.
The test project utilizes almost all the controls of the Windows Forms Collection / DXperience component set. The UI language is set programmatically in the Main procedure, so you don't have to change your system regional settings to test given translations. Please follow the instructions in the comment to the Main procedure. When the project is launched you should see that some or all the component strings are translated to the language you've specified in the CurrentUICulture. Please note that this is true for the component internal strings, such as the XtraGrid's column context menu, the Print Preview menus, etc. Captions of the controls on test forms, e.g. buttons, NavBar groups, toolbar items, etc., are not localized, because the form is not localized in this test project. Of course you can localize all elements of your forms in your real project. Please see the Localizing Windows Forms article in the MSDN Library for details.
關于測試專案
在附帶的dxKB0421_DXperience_*.zip文件中有v6.3或更高版本的測試專案.如果你使用的是版本低于6.3,請下載dxKB0421_TestProject_v1,2,6x.zip
測試專案中有用的大都是所有的Windows Forms 集合或DXperience元件集合.界面語言已經通過程式設定,所以你不需要更改系統區域設置來測試這些翻譯包.請按照主程式中的說明做.當一個項目啟動后你需要看一下,是否部分或全部元件字符串都翻譯成了你希望的界面語言.請注意元件內部字符串,如XtraGrid列的內容目錄,Print預覽的菜單,等等.測試窗体中的標題,如按鈕,導航條,工具欄,等等,這些都沒有本地化,這是因為在測試專案中這個Form沒有有本地化.當然,在真實的專案中你也可以本地化Form中所有元素.詳情請參看MSDN本地化Windows Forms文件.

If You Decide to Recompile Satellite Assemblies Yourself
Satellite assemblies must be signed with the same strong key token as the main DevExpress.~ assemblies. We don't distribute our key file - it's our signature. Therefore, you will also need to rebuild our assemblies as well if you want to compile resource files yourself. For compilation instructions, please refer to the readme.txt document from the attachment (download the ZIP file appropriate for your component version).
如果你想重新編繹附屬的assembly文件
assembly文件必須和DevExpress.~ assemblies一樣用強密鑰標識.我們沒有發布我們的密鑰文件--它是我們的簽名.如查你自已編繹資源文件,你也需要重新編繹assembly.編輯說明請參看附屬的readme.txt文件(下載与你的元件相适應版本的zip文件).


By the way, if you find mistakes or complete the existing translations, we'd appreciate it if you'd send your corrections to us for publishing here.
順便說一下,如果你發現有錯誤或完成現在的翻譯,非常感激你能給我們,并將發布在這里.

See Also:
Localization of the XtraEditors
Localizing Applications in the MSDN Library
Packaging and Deploying Resources
ClickOnce Deployment and Localization
How to translate components via their Localizer objects

其它:
本地化XtraEditors
MSDN中本地化應用程式
打包及部署資源
ClickOnce部署及本地化
如何通過本地物件來翻譯元件

Attachments
附件:

 dxKB0421_DXperience_6.1_(2007-02-09).zip (3462932 bytes)

 dxKB0421_DXperience_6.2_(2007-02-27).zip (4835269 bytes)

 dxKB0421_DXperience_6.3_(2007-06-19).zip (6287715 bytes)

 dxKB0421_DXperience_7.1_(2007-10-19).zip (8173167 bytes)

 dxKB0421_DXperience_7.2_(2008-01-31).zip (9822910 bytes)

 dxKB0421_DXperience_7.3_(2008-01-28).zip (9554210 bytes)

 dxKB0421_TestProject_v1,2,6x.zip (285919 bytes)

 dxKB0421_WinForms_1.3.1_(2005-12-09).zip (849115 bytes)

 dxKB0421_WinForms_2.2.5_(2006-03-17).zip (2511803 bytes)

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值