All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Localization

You can use the GanttLocalizer class to localize captions and date-time formats in the Gantt control. Use the GanttStringId enumeration to identify a caption or a date-time format. See Localizing WinForms Controls via Localizer Objects for more information.

The code below shows how to localize the date-time format for days in the timescale ruler and captions for commands in a Ribbon control.

using DevExpress.XtraGantt.Localization;

GanttLocalizer.Active = new MyGanttLocalizer();

public class MyGanttLocalizer : GanttLocalizer {
    public override string GetLocalizedString(GanttStringId id) {
        switch (id) {
            case GanttStringId.BothPanelsVisibilityCaption: return "Task List and Chart"; break;
            case GanttStringId.DayFormat: return "dddd, d"; break;
            default: return base.GetLocalizedString(id);
        }
    }
}
NOTE

You can also use satellite assemblies to localize WinForms controls. See Localizing WinForms Controls via Satellite Resource Assemblies for more information.