Home

Awesome

RubustringsXml

Check the format and consistency of the strings.xml files of Android Apps with multi-language support

Rubustrings is also available for iOS here

Usage

It only needs the base strings.xml file and a translated strings.xml file as arguments

./rubustringsxml ./res/values/strings.xml ./res/values-es/strings.xml

Validators

Currently Rubustrings validates:

It also warning on:

Example

dcordero@silver:~$ ./rubustringsxml res/values/strings.xml res/values-es/strings.xml

Processing files:
 - res/values/strings.xml
 - res/values-es/strings.xml
 
✘ Error, number of variables mismatch: "Phone %s" - "Teléfono"
✘ Error, special beginning mismatch: "\nWeb" - "Web"
⊗ Warning, translation significantly large: "Tubasa" - "Transportes Urbanos de Badajoz"

✘ Some errors detected
dcordero@silver:~$ ./rubustringsxml res/values/strings.xml res/values-es/strings.xml

Processing files:
 - res/values/strings.xml
 - res/values-es/strings.xml
 
✓ Strings files validated succesfully

Future validators

License

MIT License (MIT) Copyright (c) 2014 @dcordero