#496 Translation check: Allow checkstyle:off in properties file

open
nobody
Check (274)
5
2012-10-10
2008-10-04
evernat
No

This is a feature enhancement request.
ResourceBundle are chained with parents as said in http://java.sun.com/j2se/1.5.0/docs/api/java/util/ResourceBundle.html#getString(java.lang.String).
For example, messages_fr.properties is chained with messages.properties.
So, all messages are not always in messages_fr.properties and default ones in message.properties are used if it is the case.

The problem is that the translation check of checkstyle (http://checkstyle.sourceforge.net/config_misc.html#Translation) does not like chaining and gives a lot of warnings wich are false positives in this file.
I would like to keep this check as I also have files that I would want to verify for correct translation.

My enhancement request is to be able to write a comment in my particular messages_fr.properties to disable check for this file. The comment could be # CHECKSTYLE:OFF

Thank you

Discussion