1. Okapi Framework
  2. Okapi and localization
  3. XLIFF Toolkit

Wiki

Clone wiki

XLIFF Toolkit / Getting_Started

Getting Started

<Table of Content>

The Okapi XLIFF Toolkit project provides a Java library to create, read, write and manipulate XLIFF 2 documents.

Getting the library

The library comes in the form of the Java jar file named okapi-lib-xliff2-<version>.jar where <version> is the version (e.g. 1.0). The latest development version has a '-SNAPSHOT' suffix, e.g: 1.1-SNAPSHOT. You can get the library:

<repositories>
 <repository>
  <id>okapi-xliff</id>
   <name>okapi-xliff-repository</name>
   <url>http://repository-okapi.forge.cloudbees.com/release/</url>                       
   <layout>default</layout>
 </repository>
</repositories>
...
<dependencies>
 <dependency>
  <groupId>net.sf.okapi.lib</groupId>
  <artifactId>okapi-lib-xliff2</artifactId>
  <version>1.1.5</version>
 </dependency>
</dependencies>

You need Java 7 or higher to use the library. Once the library in place, working with XLIFF 2 documents is quite easy. The library allows you to create new documents, read existing ones, modify them and re-write them as needed.

The current version of the library implements the Core, the Translation Candidates module, the Glossary module, the Metadata module and the Validation module. The modules not directly supported yet can be accessed like extensions.

Getting XLIFF 2.0 examples files

Updated