← Back to carmenta.com
Carmenta Engine SDK Documentation
×

View.GetLocalizedDescription Method

Gets a localized version of the view description in a specific language.

Thread safety: This property is not thread-safe.

GetLocalizedDescription(System.String language)

Gets a localized version of the view description in a specific language.

Syntax

C#
public System.String GetLocalizedDescription (
    System.String language
)

Parameters

language
Type: System.String
The requested language.

Return Value

Type: System.String
The description in the requested language or the default language.

Remarks

The value returned by this method will come from one of four different places:

  1. If an ISO metadata document is specified for the requested language (see the GetLocalizedIsoMetadataDocument method), and that document specifies an abstract, that abstract is returned.

  2. If a description in the requested language is specified in the configuration file or set by the SetLocalizedDescription method, that description is returned.

  3. If an ISO metadata document is specified for the default language (see the IsoMetadataDocument property), and that document specifies an abstract, that abstract is returned.

  4. If a description is still not found, the value of the Description property is returned. Note that even this may be omitted, in which case the method returns an empty string.

Tip

To find out which languages are available in a loaded configuration, use Configuration.DefaultLanguage and Configuration.AdditionalLanguages. You can also check if a value is actually set for a specific language or if the default value would be returned, see HasLocalizedDescription.

Platforms

Windows, Linux, Android

See Also

Reference

View Class
Core Module

By accessing the information on this site you accept our terms and conditions and privacy policy.
This site uses cookies to enhance your experience and provide additional functionality.

Accept