Localization
This tutorial describes the localization support implemented in RadDiagram.
Localizing RadDiagramRibbonBar
To localize RadDiagramRibbonBar to display control text and messages in a specific language:
1. Start by creating a descendant of the DiagramRibbonBarLocalizationProvider class.
2. Override the GetLocalizedString(string id) method and provide a translation for the texts. If a translation is not provided, the default value will be returned. This behavior is guaranteed by the call to the base GetLocalizedString method in the default clause of the switch statement in the example. Below is a sample implementation of a custom localization provider:
3. To apply the custom localization provider, instantiate and assign it to the current localization provider:
Localizing SettingsPane
To localize RadDiagramSettingsPane to display control text and messages in a specific language:
1. Start by creating a descendant of the DiagramSettingsPaneLocalizationProvider class.
2. Override the GetLocalizedString(string id) method and provide a translation for the texts. If a translation is not provided, the default value will be returned. This behavior is guaranteed by the call to the base GetLocalizedString method in the default clause of the switch statement in the example.
3. To apply the custom localization provider, instantiate and assign it to the current localization provider: