[stringtemplate-interest] Validating a translated template

Marziou, Gael gael.marziou at hp.com
Fri Jul 10 02:07:46 PDT 2009


Hello,

I am looking for a way to validate that a translated template is semantically equivalent to the master English template.
It means that:
 * "Bonjour $name$" is equivalent to "Hello $name$"
 * "Bonjour $nom$" is NOT equivalent to "Hello $name$"

So the validation phase must ensure that the translator did not translate an attribute or template reference or removed one.

My idea is to use StringTemplate.getChunks() on both master and translated templates and to run a comparison.
Is it feasible this way?

Thanks,

Gael 


More information about the stringtemplate-interest mailing list