Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
README.rst

Tools for XBMC translations and integration with Transifex

translationtool.py

translationtool.py is a simple tool to check if XBMC addons strings.xml files of different languages are in sync.

It parses all the files given as arguments, loops through the files and stores all IDs it finds, then loops through the IDs and checks if all files have all the IDs. Any number of files can be compared.

For example, if you have these two language files:

$ cat English/strings.xml
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
    <string id="1">Foo</string>
    <string id="2">Bar</string>
</strings>

$ cat Backwardslanguage/strings.xml
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
    <string id="1">Foo</string>
    <string id="3">Baz</string>
</strings>

Running the tool will give you:

$ translationtool.py English/strings.xml Backwardslanguage/strings.xml
Using base: English/strings.xml
Backwardslanguage/strings.xml
<string id="2">Bar</string>
not in base:3

test-generatexliff.py and bootstrap.sh

test-generatexliff.py and bootstrap.sh are for setting up xbmc to use Transifex.

See also

Something went wrong with that request. Please try again.