Locale Property

Description

Explicitly sets the locale that EditLive! for XML should use for the interface translation, date formats and other locale dependant properties. If this property is not set the locale for EditLive! for XML will be set according to the locale of the client's system properties.

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

Valid locales for EditLive! for XML include:

  • EN - English

  • ES - Spanish

  • DE - German

  • IT - Italian

  • KO - Korean

  • FR - French

  • CS - Czech

  • ZH - Simplified Chinese

  • DA - Danish

  • JP - Japanese

  • AR - Arabic

Syntax

JavaScript

setLocale(strLocale);

Parameters

strLocale

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

By default, if the interface translation is available for a client's locale the interface appears in this translation unless explicitly set. If there is no translation available for a client's locale then the English interface translation is used.

Examples

Example 16.20. Locale Property Example Scripting

The following code would set the locale of EditLive! for XML to German. This means that EditLive! for XML will run with the German interface translation.

JavaScript

editlivejs.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 XML will default to the English interface translation.

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

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

  • AR - Arabic

  • CS - Czech

  • DA - Danish

  • DE - German

  • EN - English

  • ES - Spanish

  • FR - French

  • IT - Italian

  • JA - Japanese

  • KO - Korean

  • ZH - Simplified Chinese