Skip to content
No description or website provided.
Python Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
LICENSE.txt
README.rst
bootstrap-addons.sh
bootstrap.sh
test-generatesourcexliff.py
test-generatexliff.py
test-xlifftoxml.py
translationtool.py

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.