Checks the validity of your TMX files
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings
lib
src
.classpath
.gitattributes
.gitignore
.project
LICENSE
README.md
build.bat
build.sh
tmxvalidator.bat
tmxvalidator.sh

README.md

alt text

TMXValidator

Check the validity of your TMX documents in any platform with TMXValidator.

Source code of TMXValidator is available under Eclipse Public License 1.0.

Most CAT (Computer Aided Translation) tools rely on TMX (Translation Memory eXchange) standard to exchange translation memory data. Unfortunately, some tools produce files that are not valid and others do not accept TMX documents that are correctly formatted.

TMXValidator checks your documents against TMX DTD and also verifies if they follow the requirements described in TMX specifications.

TMXValidator supports TMX versions 1.1 , 1.2 , 1.3 and 1.4

Source code of TMXValidator was published originally on SourceForge at http://sourceforge.net/p/tmxvalidator/code/

The original version of TMXValidator loaded the TMX file in memory for validation. Validation of very big TMX files was limited by the amount of available memory.

This version of TMXValidator does not need to load the complete file in memory and does not have size limitations.

Build Requirements

  • JDK 11 or newer.

Building

  • Checkout this repository.
  • Point your JAVA_HOME variable to JDK 11
  • Use buid.bat or build.sh to generate a binary distribution in ./tmxvalidator

Validating TMX files

You can use the library in your own Java code. Validation of TMX files is handled by the class com.maxprograms.tmxvalidation.TMXValidator.

If you use binaries from the command line, running .\tmxvalidator.bat or ./tmxvalidator.sh without parameters displays help for TMX validation.

Usage:

   tmxvalidator.bat [-help] [-version] -tmx tmxFile

Where:

   -help:       (optional) Display this help information and exit
   -version:    (optional) Display version & build information and exit
   -tmx:        TMX file to validate

Graphical User Interface (GUI)

Installers that provide a graphical user interface (GUI) for TMXValidator are available at https://www.maxprograms.com/products/tmxvalidator.html

alt text