Resourcelanguageid – Echelon OpenLNS User Manual

Page 725

Advertising
background image

OpenLNS Programmer's Reference

688

ResourceLanguageId

Summary

Controls which language should be used when displaying

descriptive type information stored in device resource files.

This property can contain one or more language codes that

identify the language that should be used when displaying

type information stored in resource files. When you pass

multiple language codes to this property, they must be

comma-separated, as in the following example: "frc, enz, rus."
The language files will be searched for in the order that the

codes are supplied. For example, if this property is set to

"frc,enz,rus", OpenLNS will first look for the .frc (French

Canadian) language files, and then the .enz and .rus

language files when it searches the resource files. If none of

the values in the list are found, the default of "enu" (U.S.

English) will be used.
All language codes are three characters long. See the

LonMark Device Resource File Developer's Guide for

information on resource language IDs and a partial list of the

language codes you can pass to this property.
Setting this property in the ObjectServer

object overrides the

value in the System

object. It also allows this property to be

set when the System

object is not available (i.e. when

performing standalone monitor and control).
The default value for this property is "enu" (U.S. English).
You can only access this property after you have opened the

Object Server.
Note: The FormatLocale object contains a LanguageId

property. This property determines what language file

OpenLNS will use to display data stored in the

FormattedValue properties of DataPoint objects when the

FormatLocale is being used by an application. See the

FormatLocale object for more information on this.

Availability

Local, full, lightweight, and independent clients.

Syntax

languageId = systemObject.

ResourceLanguageId

Element

Description

languageId

A comma-separated list of one or more

language codes identifying the

languages that should be used when

displaying type information.

systemObject

The

System

object to be acted on.

Data Type

String.

Read/Write

Read/write.

Added to API

LNS Release 3.0.

Advertising