BaseForm.setLanguage

Sets the language code for the user session. Language codes must be defined in the Internationalization dialog. See Tools > System Preferences > Internationalization.

The language is used to:

  • Display language sensitive items: texts, messages and static lists
  • Control the formatting of numeric and date fields when data is presented to the user or entered by the user
  • Set the character encoding (optional)
Further documentation.

Example:

 form.setLanguage("es_US");
 

Parameters

java.lang.String  language,