@bmat/translation-management
Version:
Manage Front-End translations from multiple sources
158 lines (157 loc) • 4.99 kB
TypeScript
/**
* Predefined data-types
*/
export declare enum DataType {
ASP = "asp",
C = "c",
CDF = "cdf",
CFM = "cfm",
CPP = "cpp",
CSHARP = "csharp",
CSTRING = "cstring",
CSV = "csv",
DATABASE = "database",
DOCUMENTFOOTER = "documentfooter",
DOCUMENTHEADER = "documentheader",
FILEDIALOG = "filedialog",
FORM = "form",
HTML = "html",
HTMLBODY = "htmlbody",
INI = "ini",
INTERLEAF = "interleaf",
JAVACLASS = "javaclass",
JAVAPROPERTYRESOURCEBUNDLE = "javapropertyresourcebundle",
JAVALISTRESOURCEBUNDLE = "javalistresourcebundle",
JAVASCRIPT = "javascript",
JSCRIPT = "jscript",
LAYOUT = "layout",
LISP = "lisp",
MARGIN = "margin",
MENUFILE = "menufile",
MESSAGEFILE = "messagefile",
MIF = "mif",
MIMETYPE = "mimetype",
MO = "mo",
MSGLIB = "msglib",
PAGEFOOTER = "pagefooter",
PAGEHEADER = "pageheader",
PARAMETERS = "parameters",
PASCAL = "pascal",
PHP = "php",
PLAINTEXT = "plaintext",
PO = "po",
REPORT = "report",
RESOURCES = "resources",
RESX = "resx",
RTF = "rtf",
SGML = "sgml",
SGMLDTD = "sgmldtd",
SVG = "svg",
VBSCRIPT = "vbscript",
WARNING = "warning",
WINRES = "winres",
XHTML = "xhtml",
XML = "xml",
XMLDTD = "xmldtd",
XSL = "xsl",
XUL = "xul",
}
export declare enum StateQualifier {
/**
* Indicates an exact match. An exact match occurs when a source text of a segment
* is exactly the same as the source text of a segment that was translated previously.
*/
EXACT_MATCH = "exact-match",
/**
* Indicates a fuzzy match. A fuzzy match occurs when a source text of a segment is
* very similar to the source text of a segment that was translated previously
* (e.g. when the difference is casing, a few changed words, white-space discripancy, etc.).
*/
FUZZY_MATCH = "fuzzy-match",
/**
* Indicates a match based on matching IDs (in addition to matching text).
*/
ID_MATCH = "id-match",
/**
* Indicates a translation derived from a glossary.
*/
LEVERAGED_GLOSSARY = "leveraged-glossary",
/**
* Indicates a translation derived from existing translation.
*/
LEVERAGED_INHERITED = "leveraged-inherited",
/**
* Indicates a translation derived from machine translation.
*/
LEVERAGED_MT = "leveraged-mt",
/**
* Indicates a translation derived from a translation repository.
*/
LEVERAGED_REPOSITORY = "leveraged-repository",
/**
* Indicates a translation derived from a translation memory.
*/
LEVERAGED_TM = "leveraged-tm",
/**
* Indicates the translation is suggested by machine translation.
*/
MT_SUGGESTION = "mt-suggestion",
/**
* Indicates that the item has been rejected because of incorrect grammar.
*/
REJECTED_GRAMMAR = "rejected-grammar",
/**
* Indicates that the item has been rejected because it is incorrect.
*/
REJECTED_INACCURATE = "rejected-inaccurate",
/**
* Indicates that the item has been rejected because it is too long or too short.
*/
REJECTED_LENGTH = "rejected-length",
/**
* Indicates that the item has been rejected because of incorrect spelling.
*/
REJECTED_SPELLING = "rejected-spelling",
/**
* Indicates the translation is suggested by translation memory.
*/
TM_SUGGESTION = "tm-suggestion",
}
export declare enum Purpose {
/**
* Indicates that the context is informational in nature, specifying for example,
* how a term should be translated. Thus, should be displayed to anyone editing the XLIFF document.
*/
INFORMATION = "information",
/**
* Indicates that the context-group is used to specify where the term was found in the
* translatable source. Thus, it is not displayed.
*/
LOCATION = "location",
/**
* Indicates that the context information should be used during translation memory lookups.
* Thus, it is not displayed.
*/
MATCH = "match",
}
/**
* The context-type attribute specifies the context and the type of resource or style of the data of a
* given element. For example, to define if it is a label, or a menu item in the case of resource-type
* data, or the style in the case of document-related data.
*/
export declare enum ContextType {
DATABASE = "database",
ELEMENT = "element",
ELEMENTTITLE = "elementtitle",
LINENUMBER = "linenumber",
NUMPARAMS = "numparams",
PARAMNOTES = "paramnotes",
RECORD = "record",
RECORDTITLE = "recordtitle",
/**
* Indicates the original source file in the case that multiple files are merged to form the original
* file from which the XLIFF file is created. This differs from the original <file> attribute in
* that this sourcefile is one of many that make up that file.
*/
SOURCEFILE = "sourcefile",
}