This article reprinted: http://www.cnblogs.com/xuhaibiao/archive/2011/10/26/2225694.html
First, create a CN. CS file with the following content:
UsingSystem;
UsingDevexpress. xtraeditors. controls;
UsingDevexpress. xtragrid. localization;
NamespaceUI
{
Public ClassChineselocalizer: localizer
{
Public override string language { Get { return " Chinese " ;}
//Overriding the getlocalizedstring Method
Public Override StringGetlocalizedstring (stringid ID)
{
Switch(ID)
{
//...
CaseStringid. texteditmenucut:Return "Cut";
CaseStringid. texteditmenucopy:Return "Copy";
CaseStringid. texteditmenupaste:Return "Paste";
CaseStringid. texteditmenudelete:Return "Delete";
CaseStringid. texteditmenuundo:Return "Undo";
CaseStringid. texteditmenuselectall:Return "Select All";
CaseStringid. checkchecked:Return "Yes";
CaseStringid. checkunchecked:Return "No";
CaseStringid. lookupeditvalueisnull:Return "Select";
//...
}
Return "";
}
}
}
Then add it to the main function in your program. CS.
//Devexpress control Localization
Devexpress. xtraeditors. Controls. localizer. Active =NewUi. chineselocalizer ();