Skip to content
Novus Examples
tmx2.3 KB

TMX — UI Strings (en + FR/DE/PT-BR/KO)

A Translation Memory eXchange (TMX 1.4) file with English source and four target locales — for CAT tool and TMX parser tests.

Preview — first 50 linestmx
<?xml version="1.0" encoding="UTF-8"?>
<tmx version="1.4">
  <header creationtool="NovusExamples" creationtoolversion="1.0" segtype="sentence" o-tmf="plaintext" adminlang="en" srclang="en" datatype="plaintext"/>
  <body>
    <tu tuid="greeting">
      <tuv xml:lang="en"><seg>Hello</seg></tuv>
      <tuv xml:lang="fr"><seg>Bonjour</seg></tuv>
      <tuv xml:lang="de"><seg>Hallo</seg></tuv>
      <tuv xml:lang="pt-BR"><seg>Olá</seg></tuv>
      <tuv xml:lang="ko"><seg>안녕하세요</seg></tuv>
    </tu>
    <tu tuid="welcome">
      <tuv xml:lang="en"><seg>Welcome, {name}</seg></tuv>
      <tuv xml:lang="fr"><seg>Bienvenue, {name}</seg></tuv>
      <tuv xml:lang="de"><seg>Willkommen, {name}</seg></tuv>
      <tuv xml:lang="pt-BR"><seg>Bem-vindo, {name}</seg></tuv>
      <tuv xml:lang="ko"><seg>환영합니다, {name}</seg></tuv>
    </tu>
    <tu tuid="save">
      <tuv xml:lang="en"><seg>Save</seg></tuv>
      <tuv xml:lang="fr"><seg>Enregistrer</seg></tuv>
      <tuv xml:lang="de"><seg>Speichern</seg></tuv>
      <tuv xml:lang="pt-BR"><seg>Salvar</seg></tuv>
      <tuv xml:lang="ko"><seg>저장</seg></tuv>
    </tu>
    <tu tuid="cancel">
      <tuv xml:lang="en"><seg>Cancel</seg></tuv>
      <tuv xml:lang="fr"><seg>Annuler</seg></tuv>
      <tuv xml:lang="de"><seg>Abbrechen</seg></tuv>
      <tuv xml:lang="pt-BR"><seg>Cancelar</seg></tuv>
      <tuv xml:lang="ko"><seg>취소</seg></tuv>
    </tu>
    <tu tuid="search">
      <tuv xml:lang="en"><seg>Search</seg></tuv>
      <tuv xml:lang="fr"><seg>Rechercher</seg></tuv>
      <tuv xml:lang="de"><seg>Suchen</seg></tuv>
      <tuv xml:lang="pt-BR"><seg>Buscar</seg></tuv>
      <tuv xml:lang="ko"><seg>검색</seg></tuv>
    </tu>
    <tu tuid="settings">
      <tuv xml:lang="en"><seg>Settings</seg></tuv>
      <tuv xml:lang="fr"><seg>Paramètres</seg></tuv>
      <tuv xml:lang="de"><seg>Einstellungen</seg></tuv>
      <tuv xml:lang="pt-BR"><seg>Configurações</seg></tuv>
      <tuv xml:lang="ko"><seg>설정</seg></tuv>
    </tu>
    <tu tuid="logout">
      <tuv xml:lang="en"><seg>Log out</seg></tuv>
      <tuv xml:lang="fr"><seg>Déconnexion</seg></tuv>
      <tuv xml:lang="de"><seg>Abmelden</seg></tuv>
56 lines total — download for the full file.

Specifications

Format
TMX 1.4
Source
en
Targets
fr,de,pt-BR,ko
Tus
7

What is a .tmx file?

TMX (Translation Memory eXchange) is an XML standard for exchanging translation-memory segments between CAT tools. A TMX file holds translation units with aligned source and target segments plus metadata.

How to use this file

Use an example .tmx file to test translation-memory importers, TMX validators, and converters to/from XLIFF or gettext catalogs.

How to use this file for testing

“TMX — UI Strings (en + FR/DE/PT-BR/KO)” is a deterministic Novus Examples fixture for Internationalization, Localization catalogs. Parallel text and accented, multi-script content — for testing translation pipelines, Unicode handling, and localization tooling.

Documented properties for this file: TMX 1.4. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Translation-catalog fixtures carry the same message set across formats, each with its native placeholder syntax. Test your i18n loader, catalog converter, or translation-memory tool, and use the RTL and CJK variants to check bidirectional text and Unicode handling.

Load the catalog with your i18n framework and verify placeholder interpolation and plural handling; the RTL and CJK variants exercise bidirectional text and font fallback.

Code examples

from translate.storage.tmx import tmxfile

store = tmxfile.parsefile("ui-strings.tmx")
for unit in store.units[:5]:
    print(unit.source, "->", unit.target)

Generated by generation/localization_wave_c.py. Free for any use, no attribution required — license.