Zanata does not detect inconsistencies in Java-style variables between source strings and translated strings.
Translators may inadvertently enter translations that are not valid, causing compilation or runtime errors in localised builds of Java software projects.
Added a validator to the web editor that checks for Java style variables in the source and translated strings.
Java style variables use an index number and may have a format specifier. The validator checks that:
- all index numbers that are present in source are present in target
- all index numbers that are present in target are present in source
- each index number is present the same number of times in the source and target.
The validator does not yet perform any validation of format specifiers.
A validation error is displayed near the string currently being edited if the validator is active and any of the above conditions are not met.