VintaSoft Twain .NET SDK 15.1: Документация для Веб разработчика
Vintasoft.Shared Namespace / VintasoftLocalizationJS type
    VintasoftLocalizationJS Тип
    В этом разделе
    Provides functionality for localization DOM elements and constant strings.
    Синтаксис
    var instance = new Vintasoft.Shared.VintasoftLocalizationJS();
    
    
    function VintasoftLocalizationJS;
    
    Ремарки

    For using localization functionality is necessary to do the following steps:

    • Create folder, for example "locales", which will store files necessary for localization.
    • In folder "locales" create a JSON file, for example "settings.json", which will store information about supported localization languages.
    • In folder "locales" for each supported localization language add dictionary file. File name must be in the following format: "{locale}.txt", for example "en.txt".
    • In "head" section of HTML page, which must be localized, add a "link" element with attribute "rel='localization'". Here is example: "<link rel='localization' href='/locales/settings.json'>".
    • In footer of HTML page create instance of this class.

    Иерархия наследования

    Object
       Vintasoft.Shared.VintasoftLocalizationJS

    Смотрите также