getAllLanguages();
The getAllLanguages method returns an array of all language codes available in the dialog including additional ones.
To execute the example, the HTML page must contain the TranslateDialog component (see Example of Creating the TranslateDialog Component) named translateDialog. Display available languages in the dialog box (including additional ones) and hide the Another Language button:
allLang = translateDialog.getAllLanguages(); translateDialog.beginUpdate(); translateDialog.setDisplayLanguages(allLang); translateDialog.setShowLanguagesButton(false); translateDialog.endUpdate();
After executing the example the dialog box displays all available languages, and the Another Language button is hidden.
See also: