Internationalizing a rule label or category name

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

  1. 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>
  2. Define the variable in the plugin.properties file.
    For example:%myRuleLabel="My Rule Label".
  3. Build the project in the usual way.