User story: As a translator I want the Suggestions from the Translation Memory to highlight the differences with the current string so that I can view the part of the string which is an exact match to the string References: http://stackoverflow.com/questions/132478/how-to-perform-string-diffs-in-java http://code.google.com/p/google-diff-match-patch/
I've done some of the work here: https://github.com/zanata/zanata/tree/rhbz756264 The colour scheme still needs some work. I think we need an option (easily accessible, not buried in the options menu) to hide the deleted/missing text, which would switch from a diff view to highlighting the matching text.
Alex, could you please merge my changes into master?
Merged into Master. See https://github.com/zanata/zanata/commit/47fbc1d181848431064cb4f12427619faf1745d9
Verified against 1.5-SNAPSHOT.
Verified. Can the colour be enhanced slightly to highlight the contrast better? Thanks.
How about these Lokalize colours then? http://docs.kde.org/stable/en/kdesdk/lokalize/tm.html That's #99CCFF and #FF9999
These would be better. Thanks.
Colour change implemented in https://github.com/zanata/zanata/commit/fdd937a6ede956abf17d0650a4694d9c673a713c (master branch)