Supported formats

Weblate supports any format understood by Translate-toolkit, however each format being slightly different, there might be some issues with not well tested formats.

Weblate does support both monolingual and bilingual formats. Bilingual formats store two languages in single file - source and translation (typical examples is GNU Gettext, XLIFF or Apple OS X strings). On the other side, monolingual formats identify the string by ID and each language file contains only mapping of those to given language (typically Android string resources). Some file formats are used in both variants, see detailed description below.

For correct use of monolingual files, Weblate requires access to file containing complete list of strings to translate with their source - this file is called Monolingual base language file within Weblate, though the naming might vary in your application.

GNU Gettext

Most widely used format in translating free software. This was first format supported by Weblate and still has best support.

Weblate supports contextual information stored in the file, adjusting it’s headers or linking to corresponding source files.

Monolingual Gettext

Some projects decide to use Gettext as monolingual formats - they code just IDs in their source code and the string needs to be translated to all languages, including English. Weblate does support this, though you have to choose explicitely this file format when importing resources into Weblate.

XLIFF

XML based format created to standardize translation files, but in the end it is one of many standards in this area.

XLIFF is usually used as bilingual.

Java properties

Native Java format for translations.

Java properties are usually used as bilingual.

Qt Linguist .ts

Translation format used in Qt based applications.

Qt Linguist files are used as both bilingual and monolingual.

Android string resources

Android specific file format for translating applications.

Android string resources are monolingual, the Monolingual base language file file being stored in different location than others res/values/strings.xml.

Note

This format is not yet supported by Translate-toolkit (merge request is pending), but Weblate includes own support for it.

Apple OS X strings

Apple specific file format for translating applications, used for both OS X and iPhone/iPad application translations.

Apple OS X strings are usually used as bilingual.

Note

Apple OS X strings are half broken in translate-toolkit 1.9.0 (it will generate corrupted files while saving), please use Git snapshot for handling these.

PHP files

PHP files can be processed directly, though currently Translate-toolkit has some problems writing them properly, so please double check that your files won’t get corrupted.

PHP translations are usually monolingual, so it is recommended to specify base file with English strings.

Sample file which should work:

<?php

$string['foo'] = 'This is foo string';

Others

As already mentioned, all Translate-toolkit formats are supported, but they did not (yet) receive deeper testing.

Read the Docs v: weblate-1.8
Versions
weblate-1.8
weblate-1.7
weblate-1.6
weblate-1.5
weblate-1.4
weblate-1.3
weblate-1.2
weblate-1.1
weblate-1.0
latest
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.