com.puppycrawl.tools.checkstyle.checks

Class TranslationCheck

public class TranslationCheck extends AbstractFileSetCheck

The TranslationCheck class helps to ensure the correct translation of code by checking property files for consistency regarding their keys. Two property files describing one and the same context are consistent if they contain the same keys.

An example of how to configure the check is:

 <module name="Translation"/>
 

Author: Alexandra Bunge lkuehne

Constructor Summary
TranslationCheck()
Creates a new TranslationCheck instance.
Method Summary
voidprocess(File[] aFiles)
This method searches for property files in the specified file array and checks whether the key usage is consistent.

Constructor Detail

TranslationCheck

public TranslationCheck()
Creates a new TranslationCheck instance.

Method Detail

process

public void process(File[] aFiles)
This method searches for property files in the specified file array and checks whether the key usage is consistent. Two property files which have the same prefix should use the same keys. If this is not the case the missing keys are reported.

Parameters: aFiles {@inheritDoc}

See Also: FileSetCheck