Localizer classes exist in all Xtra~ components. Below is a complete list of them. The way you can use the Localizer object is the same for all controls and is described in the help on the XtraEditors example. To make a long story short, you need to create a descendant Localizer class and override its GetLocalizedString property, finally, create an instance of your class and assign it to the Localizer's Active static property. Here is some sample code:
[C#]
using DevExpress.XtraGrid.Localization;
public class MyLocalizer : GridLocalizer {
public override string GetLocalizedString(GridStringId id) {
switch(id) {
case StringId.MenuColumnColumnCustomization:
return "Field Chooser";
}
return base.GetLocalizedString(id);
}
}
GridLocalizer.Active = new MyLocalizer();
We advise that you read the Using the Localizer Object paragraph in the Localization help topic to learn more.
Here is the list of the localizer objects for each product:
Product / Class Name / Enumerator / Namespace
XtraBars / BarLocalizer / BarLocalizer / DevExpress.XtraBars.Localization
XtraEditors / Localizer / StringId / DevExpress.XtraEditors.Controls
XtraGrid / GridLocalizer / GridStringId / DevExpress.XtraGrid.Localization
XtraNavBar / NavBarLocalizer / NavBarStringId / DevExpress.XtraNavBar
XtraPivotGrid / PivotGridLocalizer / PivotGridStringId / DevExpress.XtraPivotGridLocalization
XtraPrinting / PreviewLocalizer / PreviewStringId / DevExpress.XtraPrintingLocalization
XtraReports / ReportLocalizer / ReportStringId / DevExpress.XtraReportsLocalization
XtraScheduler / SchedulerLocalizer / SchedulerStringId / DevExpress.XtraScheduler.Localization
XtraTreeList / TreeListLocalizer / TreeListStringId / DevExpress.XtraTreeList.Localization
XtraVerticalGrid / VGridLocalizer / VGridStringId / DevExpress.XtraVerticalGrid.Localization
Note Not all strings can be translated via the Localizer classes. Some components contain form resources (e.g. the XtraReports has a Search dialog) and the only way to translate them is to create satellite assemblies. Thus, the localization via resources is a preferable solution.
See Also:
How to localize .NET Windows Forms components
Localization in the XtraEditors help
Can I translate month and day names displayed in the DateEdit's calendar?
How to make internal strings in my application localizable