Description of problem: Add validator for matching Java style (e.g. "{0}") variables.
Current implementation checks that all indices that are present in source are present in target, all indices present in target are present in source, and that each index is accessed the same number of times in the source and target. This should cover the majority of strings. Yet to add checks that the same format specifiers are used between source and target.
verified in Zanata version 1.6-SNAPSHOT (20120329-1642).
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause Zanata does not detect inconsistencies in Java-style variables between source strings and translated strings. Consequence Translators may inadvertently enter translations that are not valid, causing compilation or runtime errors in localised builds of Java software projects. Change 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. Result 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.