You can internationalize the rule names and category labels
to make your plug-in translatable.
About this task
You can internationalize the rule names and category labels
to make your plug-in translatable. The method is described in the
Eclipse documentation. See the link at the end of the topic. The following
steps provide an overview:
Procedure
- In the rule extension that is created in the plugin.xml,
use a %variable instead of a character string. For example, for the rule label, you can substitute the variable %myRuleLabel:
<analysisRule
category="category_id"
class="rule_class"
id="rule_class"
label="%myRuleLabel"
severity="1">
</analysisRule>
- Define the variable in the plugin.properties file, for example, %myRuleLabel="My Rule Label".
- Build the project in the usual way.