com.puppycrawl.tools.checkstyle.checks
Class TranslationCheck
- Configurable, Contextualizable, FileSetCheck
public class TranslationCheck
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"/>
- Alexandra Bunge
- lkuehne
void | process(File[] aFiles) - This method searches for property files in the specified file array
and checks whether the key usage is consistent.
|
destroy , filter , fireErrors , getCharset , getMessageCollector , getMessageDispatcher , log , log , setCharset , setFileExtensions , setMessageDispatcher |
getMessageBundle , getSeverity , getSeverityLevel , log , log , log , log , log , log , log , log , log , log , log , setSeverity |
TranslationCheck
public TranslationCheck()
Creates a new TranslationCheck
instance.
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.
- process in interface FileSetCheck
FileSetCheck