Search Results for

    Show / Hide Table of Contents

    Class TMXTools

    Inheritance
    System.Object
    TMXTools
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.IO.TMX
    Assembly: Sdl.LanguagePlatform.IO.dll
    Syntax
    public static class TMXTools

    Methods

    GetLanguageDirection(String, out CultureInfo)

    Attempts to obtain the language direction from a TMX file which must be bilingual. The method reads the first couple of TUs from the input file and determines the language direction. If not null, the result's languages will be set to the source and target language. If a language in the result is null, it was not present in any TUs in the sample. If a language is the InvariantCulture, it was inconsistent within the sample (as is the case with multi-target-language TUs).

    Declaration
    public static LanguagePair GetLanguageDirection(string fileName, out CultureInfo headerSourceLanguage)
    Parameters
    Type Name Description
    System.String fileName

    The input file name

    System.Globalization.CultureInfo headerSourceLanguage

    The source language as it is specified in the TMX header, or null if not set

    Returns
    Type Description
    LanguagePair

    The language direction or null on errors or if the language direction cannot be determined or invalid input is encountered. No exceptions are returned.

    GetLanguages(String, Int32, out Int32)

    Gets the languages from the given TMX filename.

    Declaration
    public static IList<CultureInfo> GetLanguages(string fileName, int limit, out int scannedTUs)
    Parameters
    Type Name Description
    System.String fileName

    file name

    System.Int32 limit

    limit on scanned TUs; if 0 then no limit

    System.Int32 scannedTUs

    scanned TUs; if limit 0 then this corresponds to TU count

    Returns
    Type Description
    System.Collections.Generic.IList<System.Globalization.CultureInfo>

    languages

    On this page

    Back to top Generated by DocFX