Home > Net >  About DevExpress RibbonForm implementation of multilingual, Caption attribute set problem
About DevExpress RibbonForm implementation of multilingual, Caption attribute set problem

Time:09-28

Use DevExpress implement multi-language switching function, Chinese - English, English - Chinese, most of use WinForm and DevExpress space can be perfect to realize the switch at any time, but once use DevExpress RibbonForm has a problem, because the space attribute of the Ribbon bar RibbonForm is Caption, this property cannot be used RibbonForm. En - US. Resx and RibbonForm useful - CN. Resx set its language,
How to deal with this kind of situation, the great god, please give directions,

CodePudding user response:

Visual by dynamic loading corresponding localization DLL, the premise is localization DLL to localization control is complete,

CodePudding user response:

These are all on my own space, such as RibbonForm new Ribbon bar to add a for the above, the Button Caption attribute of the initial set to: determine; . In Chinese resource files, set for the Caption=sure; In setting for the English resource file, the Caption=Commit; By switching the language is not able to achieve effect, but if the property is TXT space to set the value of the text, you can free switch between English and Chinese, don't know if I have described the problem clearly, don't know where we can carry out and asked, thank you.

CodePudding user response:

I've only tried all Settings in the resource file is a string key and the corresponding string string value, why do you have to key in the resource file set control properties? Use text not to go,

CodePudding user response:

Resource file, and name the column set properties, the value given name, are not enough, I know how is upstairs, can cut a picture show, thank you,

CodePudding user response:

In the picture below, the Ribbon in the toolbar in Chinese can't switch to English all the time, because is the attribute of the button Caption in DevExpress rather than Text, found that as long as it is in the DevExpress controls attribute is Caption cannot in the resource file configured to be able to switch resources properly,

CodePudding user response:

Invited the master to solve,
  •  Tags:  
  • C#
  • Related