Skip to main content
.NET Framework 4.5.2+

CaptionHelper.GetLocalizedItems(String) Method

Returns the names and values of all the localization items for a particular LocalizationGroup.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public static Dictionary<string, string> GetLocalizedItems(
    string groupPath
)

Parameters

Name Type Description
groupPath String

A string representing the group path to the required LocalizationGroup.

Returns

Type Description
Dictionary<String, String>

A Dictionary<String, String> of localization item name/localization item value pairs.

Remarks

The Application Model has the Localization node, which allows localization of various constants. The Localization node is used to localize custom strings used in an XAF application. The node contains LocalizationGroup child nodes. Each LocalizationGroup child node contains a set of LocalizationItem child nodes. The GetLocalizedItems method allows you to retrieve the values of LocalizationItems belonging to a particular LocalizationGroup.

Each child LocalizationGroup node of the Localization node has a group path associated with it. This path is represented by a sequence of parent localization group names separated by a double backslash. Suppose, for example, that the Localization node has the Messages localization group, which in turn has the Custom child localization group. In this instance, the group path for the Custom group is “Messages\Custom”.

To see an example of localizing custom string constants, refer to the How to: Localize Custom String Constants help topic.

See Also