Files
openide/java/java-impl/resources/inspectionDescriptions/InconsistentResourceBundle.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

87 lines
2.6 KiB
HTML

<html>
<body>
Reports problems in the properties files contained in the resource bundle.
<ul>
<li><b>Report missing translations</b> <br><br>
Use this option to report properties contained in the parent properties file that are missing in inherited ones (unless it's a language dialect).
<br><br> <p>Example:</p>
<pre><code>
# messages.properties
abc=xxx
# messages_fr.properties
# Empty file
</code></pre>
Property <code>abc</code> will be reported as untranslated.
<br><br><br> </li>
<li><b>Report inconsistent properties</b> <br><br>
Use this option to report properties contained in inherited properties file that are missing in the parent one (or in siblings if there is no parent).
<br><br> <p>Example:</p>
<pre><code>
# messages.properties
# Empty file
# messages_fr.properties
abc=xxx
</code></pre>
Property <code>abc</code> translation is not available here for any language except French,
and, thus, will be reported as missing in the (default) properties file <code>messages.properties</code>.
<br><br><br> </li>
<li><b>Report properties overridden with the same value</b> <br><br>
Use this option to report properties copy-pasted into several properties files verbatim. <br>
<br><br> <p>Example:</p>
<pre><code>
# messages.properties
abc=xxx
# messages_fr.properties
abc=xxx
</code></pre>
Property <code>abc</code> will be reported as unnecessarily inherited in the file <code>messages_fr.properties</code> .
<br><br><br> </li>
<li><b>Report properties overridden with different placeholders</b> <br><br>
Use this option to check for placeholder consistency in overridden properties.
<br><br> <p>Example:</p>
<pre><code>
# messages.properties
qwe={0}xxx{1}
abc={0}yyy{1}
# messages_fr.properties
qwe={0}xxx{0}xxx{1}
abc={0}yyy
</code></pre>
Property <code>abc</code> will be reported as a property containing message format placeholders
not corresponding to <code>messages.properties</code>.
<br><br><br> </li>
<li><b>Report properties overridden with different values endings</b> <br><br>
Use this option to check for ending consistency in overridden properties.
<br><br> <p>Example:</p>
<pre><code>
# messages.properties
abc=xxxzzz
# messages_fr.properties
abc=xxx;
</code></pre>
Property <code>abc</code> will be reported as ending with special signs
(<code>!</code> / <code>?</code> / <code>.</code> / <code>:</code> / <code>;</code>) whereas
the parent value in <code>messages.properties</code> doesn't.
</li>
</ul>
</body>
</html>