AX#

Search Results for

    Show / Hide Table of Contents

    Class Translator

    Provides a translator for localized PLC strings

    Inheritance
    object
    Translator
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: AXSharp.Connector.Localizations
    Assembly: AXSharp.Connector.dll
    Syntax
    public class Translator

    Methods

    | Edit this page View Source

    Localize(string, ITwinElement, CultureInfo)

    Declaration
    public string Localize(string str, ITwinElement twinElement, CultureInfo culture)
    Parameters
    Type Name Description
    string str
    ITwinElement twinElement
    CultureInfo culture
    Returns
    Type Description
    string
    | Edit this page View Source

    SetLocalizationResource(Type)

    Sets the localization resource for this translator.

    Declaration
    public void SetLocalizationResource(Type resourceType)
    Parameters
    Type Name Description
    Type resourceType

    Type of resource to be used.

    | Edit this page View Source

    Translate(string, ITwinElement, CultureInfo)

    Translates localized string.

    Declaration
    public string Translate(string originalString, ITwinElement twin, CultureInfo culture = null)
    Parameters
    Type Name Description
    string originalString

    Localized string.

    ITwinElement twin

    Twin element to which the string is attached.

    CultureInfo culture
    Returns
    Type Description
    string
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFx. © MTS spol. s r.o., MTS spol. s r.o., and awesome contributors