Copyright (c) 2013 - 2014, Redmaner
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license
The license can be found at http://creativecommons.org/licenses/by-nc-sa/4.0/
This code is live on:
translators.xiaomi.eu
This website can be used to dermine the errors below, you also could use this code to do it on your local machine.
This will check a MIUIAndroid.com language repo for XML errors.
It checks the xmls for three things:
- Common XML errors, e.g. non closing tags <>, UTF8 encoding issues etc.
- Doubles
- A "+" before a tag
- Apostrophe syntax errors
- Untranslateable strings
- Array items
- Linux or Mac OSX
- Packages: libxml (xmllint), uniq, sort
./check.sh --help
Note: Sync repo's first before starting a check!