This inspection reports problems in the properties files contained in the resource bundle.
- Report missing translation
option controls search for an untranslated properties.
It reports properties contained in parent properties file that are missing in inherited (unless it's a language dialect).
E.g. having this resource bundle:
messages.properties : abc=xxx
messages_fr.properties : empty
Property abc will be reported as untranslated.
-
Report inconsistent properties
option controls invalid resource bundle structure inspection.
It reports properties contained in inherited properties file that are missing in parent (or in sibling if there is no parent).
E.g. having this resource bundle:
messages.properties : empty
messages_fr.properties : abc=xxx
Property abc translation here is not available for any language except French,
and, thus, will be reported as missing in the (default) properties file messages.properties .
-
Report properties overridden with the same value
option checks for properties which are copy-pasted into several properties files verbatim.
E.g. in this resource bundle:
messages.properties : abc=xxx
messages_fr.properties : abc=xxx
Property abc will be reported as unnecessarily inherited in the file messages_fr.properties .
-
Report properties overridden with different placeholders
option checks for properties which are overridden for placeholders consistency.
E.g. in this resource bundle:
messages.properties :
qwe={0}xxx{1}
abc={0}yyy{1}
messages_fr.properties :
qwe={0}xxx{0}xxx{1}
abc={0}yyy
Property abc will be reported as property contains message format placeholders
with value not corresponding to messages.properties .
-
Report properties overridden with different values endings
option checks for properties which are overridden for endings consistency.
E.g. in this resource bundle:
messages.properties :
abc=xxxzzz
messages_fr.properties :
abc=xxx;
Property abc will be reported as property contains special signs
( '!' , '?' , '.' , ':' or ';' ) at the end of value but
value in messages.properties doesn't.