setLocale Property

Description

Explicitly sets the locale that EditLive! for Java should use for the interface translation.  If this property is not set the locale for EditLive! for Java will be set according to the locale of the client's system properties.

If the set locale of the locale of the client's system is not supported by EditLive! for Java the English translation of the user interface is used by default.

Syntax

JavaScript object.setLocale(strSetLocale)

Parameters

strSetLocale Required.  Two letter ISO-369 compliant string representing the locale for the interface translation.

Example

The following code creates an instance of EditLive! for Java and sets the locale of EditLive! for Java to German.  This means that EditLive! for Java will run with the German interface translation. 

var editlivejava1;
editlivejava1 = new EditLiveJava("ELJApplet1","600","400");
editlivejava1.setLocale("DE");

Remarks

If the locale is not set then the locale used by the client will be as specified by their system properties.  If the locale of the client machine is not supported EditLive! for Java will default to the English interface translation.  

If the specified locale is not supported EditLive! for Java will default to the English interface translation.

The EditLive! for Java interface has been translated into the following languages for the listed locales:

See Also