Changing the default settings for localization rules in Analyzer


When you install the localization toolkit, the Developer Studio Analyzer option includes the Space between label and data box rule that can check the views you want to localize.

If you select this rule, the Analyzer reports any fields with inadequate space for translating labels. This means that the button or the space between the field label and the beginning of the field's data box is not long enough to accommodate translations to languages that require more space. The default amount of extra space required to pass the rule is 30% of the label name, which allows for translation from English to languages with longer translations.

For information about the Analyzer option, see Using-Analyzer-to-find-problems-in-your-applications.

To change the default settings for localization rules in Analyzer

  1. Create a file called SpaceAnalyzer.xml in the RemedyDeveloperStudioInstallDir\workspace folder.
    If the file is not in the workspace folder, all fields are checked on the base views and the 30% rule is used.
  2. Enter the following text in the file:

    <?xml version="1.0" encoding="UTF-8"?>
    <spaceanalyzer baseviewsonly="true">
    <ratio>30</ratio>
    <ignoredprefixes>
    <prefix>zTmp</prefix>
    </ignoredprefixes>
    </spaceanalyzer>
  3. To change the views that the Analyzer checks with the Space between label and data box rule, set the value of baseviewsonly.
    The options are true (the default) and false.
    If baseviewsonly is true, the Analyzer checks only English views or views with no locale property set. If baseviewsonly is false, all views are checked.
  4. To change the percentage of space required after the label name, change the number on the <ratio> line to a larger or smaller percentage than the default of 30.
  5. If you do not want to localize fields with specific prefixes in their field labels, enter a <prefix> line for each prefix you want to ignore.
  6. Save the file.
  7. Run Analyzer.
  8. Fix any issues that are found.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Helix Innovation Suite 25.1