Every file type you can upload, what comes back, and format-specific notes.
You can upload the file types below to a project. The system splits each file into segments, and after translation it rebuilds the file in its original format. For the upload and download steps themselves see Projects and files.
| Format | Extensions | What is translated | Notes |
|---|---|---|---|
| Word document | .docx |
Paragraphs in the body, tables, headers and footers, split into sentences. Rows follow the file: a table's cells come where the table sits, headers and footers come last. | Bold, italic and links inside a paragraph become tags in the editor; a link is a tag pair around its text. The translated Word file puts bold, italic and links back where the tags are in the translation, and a link keeps its target. Text outside any tag gets the paragraph's normal formatting, and a link tag you remove leaves that text without a link. Other formatting, such as a colour change inside a paragraph, is not a tag. |
| PowerPoint | .pptx |
Text on every slide, hidden slides included: text boxes, placeholders, tables, grouped shapes and SmartArt diagrams. Also the speaker notes and the alt text of pictures and shapes. Long text is split into sentences. Text without letters or digits, such as a lone bullet or arrow, stays as it is. | Text formatted differently from the rest of its paragraph (bold, italic, a link, another colour or size), line breaks and fields such as the slide number become tags. Text boxes keep their size and fonts, so check long translations in PowerPoint. Translated text that PowerPoint has marked as the source language is marked as the target language, so spell-check uses the right one. A PowerPoint 97–2003 file (.ppt) is refused: save it as .pptx and upload it again. |
.pdf |
Text blocks from the text layer, split into sentences; each table cell is split on its own. A scanned PDF without a text layer is read with OCR (text recognition from the image). | Import only. There is no translated PDF; download the Bilingual XLIFF instead. | |
| XLIFF | .xliff, .xlf, .sdlxliff, .mxliff, .mqxliff |
Every translation unit that is not marked "do not translate". Trados files are split at their own segment marks. | XLIFF 1.2 and the Trados, Phrase and memoQ variants, and XLIFF 2.0, 2.1 and 2.2. Inline tags become tags in the editor and are written back on export. In a 2.x file every segment of every unit is one segment, and a file, group or unit marked translate="no" is skipped. When the source holds escaped HTML (<b>) instead of XLIFF inline elements, the HTML also becomes tags, and export writes it back as escaped text, not as elements. A segment that holds only tags is imported too (see Segments with only tags). Existing target text is imported into the project target language the file names in its target-language (trgLang in XLIFF 2.x); a file that names none goes to a project with one target language. In any other case the text is not imported and the upload shows a warning. The import also keeps what the file records for each target: its status and lock (see Status in a bilingual XLIFF) and its origin. A target the file marks as a TM match shows the TM origin with its match percentage (a Trados context match, CM, shows as 101%), a machine translation shows the MT origin, a translator's own text shows no origin, and a file that says nothing shows File. A Trados target a translator edited after a TM or machine fill keeps that fill's match percentage or MT origin, marked as edited. A Trados target filled by auto-propagation shows the match percentage Trados recorded for it, as a TM match; with no percentage it shows no origin. On download, a Trados match someone edited in OpenLoc is written the same way, as an edit of that match, so Trados shows it as edited too. Edited files can be brought back with Update from file. |
| Excel | .xlsx |
Without language codes in row 1 of the first sheet: the sheets you choose at upload, and on each the columns you choose or every text cell, row by row (see Choose the columns of an Excel file; a file configuration can hold these rules so the upload does not ask); uploaded without that choice, through the API for example, every text cell of every visible sheet, sheet by sheet and row by row. Either way, numbers, dates, true/false values, formulas and text without a letter are left out. With language codes in row 1, such as en, fr or pt-BR, where a heading that names no language, such as SKU, is not a code: the rows of the first sheet, where the first language column is the source and the rest are targets. A header that starts with "Source" also marks the source column. |
In a sheet with language codes, text already in a target column is imported with the File origin into each target language's job, from the column the download writes for that language (see What you download): a fr column fills a fr-CA job. The same holds for the language columns of a workbook read with target columns. The columns do not decide how many jobs there are — the project's target languages do. An Excel 97–2003 file (.xls) is refused: save it as .xlsx and upload it again. |
| JSON | .json |
Every non-empty string value, including nested objects, in file order, split into sentences. The key path becomes the segment key; the sentences of one value get #1, #2… after it. |
Lists (arrays) are not translated. A key that appears twice is one segment. HTML inside a value becomes tags unless Strings contain HTML is off in the file's file configuration. The translated file differs from the upload only in the translated values; key order, indentation and numbers are untouched. |
| Gettext | .po, .pot |
Every entry's source string. Each msgstr[N] of a plural entry is its own segment: form 0 shows the singular source, every other form the plural source. |
Entries marked "fuzzy" are skipped and kept as they are. Existing translations are imported with the File origin into the project target language named in the file's Language header; a file that names none goes to a project with one target language. In any other case they are not imported and the upload shows a warning. |
| HTML | .html, .htm |
Text in paragraphs, headings, list items, table cells, captions, quotes and the page title, wherever it sits in a block. Also the page's meta description and, by default, the alt and title of images, the title of links and abbreviations, the alt, value, title and placeholder of inputs (not file, hidden, image or password inputs) and the abbr of table cells, each as its own segment. Each of these is split into sentences. |
Which attributes are translated, the meta description and <pre> blocks are set in the file's file configuration. Scripts and styles are skipped, and so are <pre> code blocks unless the configuration translates them (their spacing is then kept). Every inline element inside a block (links, bold, italic, spans, line breaks and any other) becomes a tag. A block inside another block ends the outer segment: the text before it, the nested block and the text after it are separate segments. On export a tag is written as an element only when the source block has it; links, spans and other elements come back exactly as in the source. Formatting you add in the editor (bold, italic, subscript, superscript, underline, strikethrough, code, line breaks) and links with an http, https or mailto address are also written as elements. Any other markup typed into a translation is written as text. |
| Markdown | .md |
Headings, paragraphs and list items, split into sentences. | Code blocks and horizontal rules are skipped. Inline markup such as **bold**, links and images stays inside the segment text. The file's file configuration holds its tag patterns; the Default configuration protects template code in {% … %} and {{ … }} (Liquid, Jekyll) and HTML tags such as <b> as tags; a tag's attributes, such as an image's alt text, are part of it and not translated. |
| MDX | .mdx |
The title and description of the front matter, headings, paragraphs, list items, quotes, table cells and the titles of :::note-style admonitions, the text inside JSX elements such as <Card> or <h1>, and the text attributes of JSX elements: title, description, subtitle, alt, aria-label, placeholder, label, caption, successMessage and messagePlaceholder. Split into sentences. |
Imports and exports, code blocks, <style> and <script> elements, { } expressions and comments, and every other attribute (href, src, className and so on) stay as they are. The Default file configuration protects HTML and JSX tags, { } expressions and HTML entities such as inside text as tags. The translated file is the original page with only the text replaced; a tag or a { } expression in a translation is written as code only when the source text has it (a tag together with its closing tag), and any other < or brace is written as text, so the page still builds. |
| Plain text | .txt |
Every non-empty line, split into sentences. | HTML inside a line becomes tags unless Strings contain HTML is off in the file's file configuration. |
| Apple strings | .strings |
The value of every "key" = "value"; line. |
The translated file keeps the keys and comments. |
| Android resources | .xml with a <resources> root |
Strings, string arrays and plurals. | Items, string arrays and plurals marked as not translatable are skipped. The editor shows the text as the app shows it: &, <, ' and " appear as characters, not as entities, CDATA or backslash escapes, and quotes wrapping a whole string are not shown. Export writes them back escaped the Android way. HTML in a string, as real tags or as escaped markup (<b>), becomes tags. On export a tag is written as an element only when the source string has that exact tag; any other tag, such as bold added in the editor or a changed link, is written as escaped text. The rest of the file is unchanged. |
| Generic XML | any other .xml |
Text inside elements, CDATA sections included. Long text is split into sentences, but never inside a CDATA section. | A translation of text that came from CDATA is written back inside CDATA. Works for DocBook, DITA, SCHEMA ST4 and in-house schemas. Inline elements become tags. Elements to skip, do-not-translate markers, inline elements and cross-reference elements are set in the file's file configuration. The translated file is the original document with only the text replaced; comments, declarations and attributes are untouched. |
Most formats cut long text into one segment per sentence, so the editor and the translation memory work sentence by sentence. Where a sentence ends is decided by the project's segmentation profile. See Segmentation profiles, which also covers importing and exporting rules as SRX. A sentence never ends inside a tag or inside {…}: when bold text or a link runs across two sentences, they stay one segment. In the translated file the sentences are put back together with the spacing of the original.
At upload the system also reads what the file says about each string and shows it in the Context section of the editor's Resources sidebar. A comment separated from its string by a blank line is not read. Each segment keeps up to 500 characters of key, 1,000 of context, and 20 notes of 4,000 characters in all, file notes and its own notes counted apart, with at most 10 of its own notes taken from enclosing groups or the slide; longer text is cut, and further notes are left out. A file uploaded earlier shows only the context it already had. Download is not affected.
A segment with a note from the file shows a grey note chip in its row; the notepad filter pill in the editor lists only those segments. A File note is about the whole file, so it shows in the Context section of every segment of that file but sets no chip and does not count for that filter. Notes are read-only and are not editor comments.
An XLIFF unit's maxwidth shows as Max length when its size-unit is char; a width in pixels or bytes is not shown. In XLIFF 2.x the limit comes from slr:sizeRestriction counted in characters. An Excel file read by columns can have a context column: its cell shows as the context of the text in its row.
| Format | Key | Notes |
|---|---|---|
| JSON | The dotted key path. | None. |
| Android resources | The string name; name[0] for an item of a string array, name[quantity] for a plural. |
The <!-- --> comments right above the string. For an array or plural item, the comment above the whole group comes first. |
| Apple strings | The key. | The /* */ and // comments right above the entry. Xcode's "No comment provided by engineer." is left out. |
| Gettext | None: the source text is the msgid. | The #. comment for the translators, with its wrapped lines. The msgctxt shows as the context. |
| XLIFF | The resname, otherwise the unit id, unless the id is a number or a GUID (the numbering of translation tools). In XLIFF 2.x, the unit name, otherwise its id. |
The notes of each enclosing group from the outside in, then the unit's own <note> elements, not those inside an alternative translation; the notes of the file header show as File note. In XLIFF 2.x, the notes of the groups and the unit; the file's notes show as File note. |
| Excel | The source cell, such as Sheet1!A2, with or without language codes in row 1. |
The comments on the cell, as "Author: text" (the text alone when there is no author). A threaded comment and each reply is its own note; resolved threads are left out. In a sheet with language codes, only comments on the source cell count. |
| Word | None. | The comments on the paragraph, in the body, tables, headers and footers, as "Author: text"; replies follow in file order. A comment across several paragraphs is a note on each, and on every sentence of a split paragraph. |
| PowerPoint | None. | A comment on a shape goes on every segment of that shape, alt text included, as "Author: text"; replies follow. A comment on the slide goes on all of the slide's own text as "Slide comment (Author): text". Resolved threads and speaker notes are left out. |
How to split and join a segment is in the CAT editor guide. What each format allows and writes back:
The CAT editor can show the document next to the segments for HTML, Markdown, MDX, plain text, Word, Excel and PowerPoint files. An MDX preview shows the front matter title and description at the top, then the page with each component, such as <Card>, as a plain box holding its text and its text attributes; imports, exports and { } expressions are left out. A PowerPoint preview draws each slide with its shapes, pictures, tables, text styles, theme colours, SmartArt and speaker notes; charts and embedded objects appear as empty boxes. JSON, Gettext, XLIFF, generic XML, Android resources, Apple strings and PDF show the Document preview tab with "Preview is not supported for this file type." An Excel preview shows one sheet at a time, up to its first 2,000 rows and 100 columns; a PowerPoint file larger than 50 MB, or any other file larger than 20 MB, has no preview.
The file extension decides the format. The only exception is .xml: a file whose first element is <resources> is read as Android resources, everything else as generic XML. A file with an extension that is not in the table is refused at upload.
XLIFF 1.2 (with the Trados, Phrase and memoQ variants) and XLIFF 2.0, 2.1 and 2.2 share the same extensions; the file's own version decides how it is read.
A tag is a placeholder in a segment for something that is not text: a link, a line break, a bold span. The editor shows tags as chips you can move but not edit. DOCX, PPTX, XLIFF, HTML, generic XML and Android resources produce tags. JSON, PO, TXT and XLSX produce them when a value contains simple HTML (<b>, <i>, <u>, <a>, <span>, <br>) and Strings contain HTML is on in the file's file configuration (the default). Every tag in the source should also be in the target; the QA tag checks report when one is missing. See Work with tags.
With it on, a translation in a JSON, PO, TXT or XLSX file may hold only the tags its source has. A tag the source does not have cannot be confirmed (see Why "Confirm" can be refused), and the translated file writes it as text, not as markup.
With it off (the built-in Plain text strings configuration), strings are plain text: no tags from HTML, no tag check for them, and the translation is exported exactly as typed.
Tag patterns in a file configuration work for JSON, PO/POT, plain text, Excel, Markdown and MDX files. Each pattern is a regular expression, optionally named; text it matches, such as %s, {name} or {{ title }}, becomes a tag in the editor. The translated file writes the source's original text back in its place. HTML and generic XML files have no tag patterns.
Bold, italic, superscript and subscript that you add yourself in the editor (see Format text) are kept only in HTML, the one format that can hold them. Every other format receives the plain text; in generic XML and PowerPoint the editor formatting is dropped, while the document's own tags still come back.
In HTML and Android resources the editor shows &, < and > as the characters themselves, and the translated file escapes them again. Type &, not &.
An XLIFF file can hold a segment with tags and no text, such as a page-number field or an image anchor. It is imported like any other segment: it shows in the editor, and you can edit, confirm and lock it. It keeps the lock and status the file gives it. When the file gives it no target, its source tags become the target and the segment is Pretranslated, with the origin File. In a Trados file, tags that Trados left outside its segments are not a segment, so OpenLoc shows the same number of segments as Trados.
There is no text to translate, so machine translation, the translation memory and AI steps leave such a segment out, confirming it writes nothing to the memory, and it never counts as a repetition. If its target is cleared, the next pre-translation gives it its source tags again. The QA checks it gets are in Quality assurance.
The Download menu offers Translated file, Bilingual XLIFF, Bilingual SDLXLIFF, Review file (Word) and Source file. See Download translated files.
| Format | Translated file |
|---|---|
| DOCX, PPTX, HTML, Markdown, MDX, TXT, JSON, PO/POT, Apple strings, Android resources, generic XML | The original file with the translated text in place. Untranslated segments keep their source text. Word and PowerPoint comments are kept as they are, never translated; a Word comment stays on its translated paragraph. |
| XLIFF | The same XLIFF with the target elements filled in. An XLIFF 2.x file keeps its version and inline markup, and its trgLang is set to the job's language. A Trados SDLXLIFF also records each segment's status: confirmed segments are Translated (a reviewer's approval or sign-off stays), the others Draft, and locked segments are locked. A confirmation or lock already in the file is removed only from segments whose status was read from a file, at upload or by Update from file. An SDLXLIFF or XLIFF 2.x file also notes on each unit who confirmed it: a person, the AI assistant, or an automatic approval (the most cautious one when a unit holds several segments), so a translation memory import leaves the automatic and assistant approvals out. |
| XLSX | The workbook with the translations written into the column for the job's language, on the first sheet. The column is the one headed with the job's exact language code, or with the bare base code of a regional variant: a fr column takes a fr-CA job, and a fr-CA column takes a fr job. Anything else stops the download with a message that names the columns: no column for the language, a column of a different language, a sibling variant (a zh-Hans column for a zh-Hant job), or two columns that both fit. Add the column to the workbook, or download the Bilingual XLIFF. A workbook without language codes in row 1 gets each translation written into the cell its source came from, which keeps its formatting; untranslated cells keep their source text. With target columns in its file configuration, each translation goes into its language's column on the same row instead, and the source stays; downloading several of its languages together gives one workbook with all of them, and a language with no column stops the download with a message that names the columns. For a workbook uploaded without a column choice, a row 1 with one language code among other headings stops the download: head every language column with a code written like fr or pt-BR. Cell comments are kept as they are, never translated. |
| Not available. Use Bilingual XLIFF. |
Translated file is offered once the job has at least one Approved or Auto-approved segment. Bilingual XLIFF works as soon as the file has segments; how it writes each segment's status is below. Review file (Word) also works as soon as the file has segments: a Word table of source and target for a reviewer without a CAT tool, brought back with Update from file (how).
Bilingual SDLXLIFF works as soon as the file has segments, whatever its format.
Trados opens and saves a generated SDLXLIFF but cannot write the final document from it. Download the Translated file from OpenLoc.
The Bilingual XLIFF download writes each segment's status in the standard XLIFF fields that other translation tools read:
Uploading a bilingual file (.xliff, .xlf, .sdlxliff, .mqxliff, .mxliff) and Update from file with an XLIFF read the status back: from the status the file's own format carries (.sdlxliff, .mqxliff, .mxliff), or from the standard XLIFF state and approved:
| The file says | The segment becomes |
|---|---|
Confirmed at any level: by the translator or a reviewer in an .sdlxliff or .mqxliff, at any workflow level in an .mxliff, or XLIFF translated, reviewed, final, signed-off or approved="yes" |
Approved. Completing the task does not save a confirmation from a file to the translation memory; a person's confirm in OpenLoc or Save to TM does. |
| Confirmed, with the auto-approval marker the download writes | Auto-approved |
| Confirmed, with the assistant's marker the download writes | Approved as the assistant's |
Not confirmed (not translated, a draft, rejected), or XLIFF new, needs-translation or needs-review-translation |
Not approved. An upload gives Pretranslated. |
| No status information | An upload gives Pretranslated. An XLIFF brought back with Update from file leaves the status of an unchanged segment as it is. |
| Locked: the other tool's lock, or the lock marker the download writes | Locked, whatever its status. A review level alone does not lock. |
An XLIFF 2.x file has no lock and no review levels beyond its state: initial or no state gives a draft, translated, reviewed and final give Approved. On download, a segment confirmed in OpenLoc whose file said initial or nothing is written translated; a segment whose status came from the file and went back to draft is written initial; reviewed and final stay as they are. The Bilingual XLIFF download is always XLIFF 1.2.
Update from file with an XLIFF applies the status in both directions: a confirmation raises a segment, and an unconfirmed target lowers an Approved one. Text the file changes is an edit made outside OpenLoc: Approved when the file confirms it, even under the auto-approval marker, and Draft otherwise. The preview shows an Approved segment whose text or status the file changes, and Import overwrites it. A segment locked in OpenLoc changes only when the file unlocks it, by giving the segment a status without a lock; a file downloaded before a segment was locked does that too, so the preview says how many segments the file unlocks. Import unlocks them and applies the file's text and status, unless you tick Keep locked segments locked: then it imports the rest of the file and leaves those segments locked and unchanged. When the file keeps the lock, or gives no status, the segment stays locked and unchanged.
A lock in the file applies when an owner, admin or project manager uploads or imports it. In an import by a linguist the status applies and the lock does not. Unlocking through an import is open to anyone who may edit the file, like Unlock in the editor.