DevExpress Controls Detailed tutorial finished (the official website to download the contents of the finished package and custom modifications to the finished package tutorial)

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/u012097590/article/details/91492005

Speaking of the issue of DevExpress controls, the Internet's basic package is finished "finished running," "Chinese design", non (often asked this question, it is necessary to emphasize), the so-called run-time localization refers to the running time DevExpress Speaking of control that comes with the English text, such as the GridView's head right-click menu, as is the finished result

                                    

Before finished (kanji part custom functionality added) after finished

If you want to "Chinese design", that want to see the property description finished, then I'm sorry, because this heavy workload, little online, should any part of the earlier version only, advise you to choose to give it, it is recommended or multi-look at the English translation accumulate, after all, engaged in the development of English to understand the points in favor of their own development.

 

About "Speaking of running," explained

"Speaking of running," the aim is to allow users to use the program in their own development, does not affect users who do not know English, convenient and user know some of the features built-in, so that "finished Running" is prepared to the user, non-developers to prepare, then I explain how "finished running."

1, edit, and download the finished package:

For DevExpress is finished, DevExpress official website offers a page to a user-defined creation finished package (download the finished package is required to register the user, which can be registered for free, no serious problem), the official default provides a finished package general localization rate of 30% ~ 60%, which has simplified and traditional Chinese, according to user needs to download, if you find the content Speaking wrong or does not meet their reading habits or incomplete translation, you can edit the modification of an existing finished package, the default translation will using Bing translator, if you feel it click apply to appropriate translation, after confirming modified version of the download modify, DevExpress will be sent to your mailbox in the form of e-mail, after which the resource package includes finished and finished source code. If your network can not DevExpress official website, then it can only be downloaded from the Internet, it is generally easy to find, if more resources can go to DevExpress Developer Forum  download on this forum, which could be considered relatively complete information DevExpress forum .

a, DevExpress language pack inlet official website, or directly enter the URL: https://localization.devexpress.com/

b, adding the corresponding version

c, select and control module

d, or custom application translation translate, modify the finished click Save or download

e, select the downloaded version


 

2, and extracting the finished package renamed:

After downloading from DevExprss official website down the finished package decompression, the finished package folder name will be the case xxx_zh-CN, if you want to use it, please delete the previous xxx_, preserving only the back of the zh_Hans, if you download the xxx_zh-Hant, to retain only zh-Hant, remember do not make change the name, if you change the zh-CN zh-Hant, then finished resource Kit is invalid, make sure to download their own resources which would retain the name of which resource! After completion of the name change, Ruoguo folder inside source has finished, please remove.

a, the official provides a built-extracting exe file, double-click the "extract" button to decompress.

 

b, src folder is the source of the finished package can be upgraded for use, json resources folder inside json finished package for Chinese DevExtreme project, two files that can be removed, because the finished package contains winform, web , xaf resources, if you are winform, you can as long as the relevant Chinese resources winform, of course, you can also choose to copy the resource winform to another path, a folder named zh-CN can be.

3, the finished package to the application development process

After processing the finished package moved to its own development program of the program startup path (ie the path where your .exe program) , by default, the startup path winform program is under the bin, then if you are under the debug , copy to put the finished package bin / debug, if it is under Release, copy to put the finished package bin / release paths. After the copy, if you Dev version prior to 15.1, then, you need to add a code in the program's main function inside your project, remember CultureInfo inside the parameters must be used with the same name of your finished package, if you finished package is zh-CN, that argument is "zh-CN", if you finished package is zh-Hans, that argument is "zh-Hans", and if not, will not be finished .

System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN");

If you Dev version 15.1 or later, you do not add this code, the program will default to identify the finished package.

The above is the entire localization process DevExpress, if you want the finished package is global, and you can download the following tools register the assembly to gac, so set at design time, part of the built-in interface design, and if gridview designer of chartcontrol Designer and report Designer and other interfaces will be part of the finished

Links: https://pan.baidu.com/s/11GZYiEwwFk-YTrjPqzk2ng 
extraction code: 7slp 
 

 

Guess you like

Origin blog.csdn.net/u012097590/article/details/91492005