1. Script object OG.Language

    Article: AN0002175Updated:

    This object offers functions for work with languages.

    Script functions

    Name Description
    string GetCodeById(int languageId) Function returns language code according to the input Id. If such a language does not exist, NULL is returned.
    LanguageList GetByCodes( string codes) Function returns list of objects Language according to input language codes. Separate particular codes by comma or semicolon.

    Object call

    OG.Language

    Call example

    var code = OG.Language.GetCodeById( 2);

    var ll = OG.Language.GetByCodes( 'en-US,de-DE');

×