String Length Check

 

Maximum String Length Check

This function checks to see if a string exceeds a specified maximum string length.  The Maximum String Length dialog box (Figure 3) is used to specify the maximum string length and to enable the check for a string item.

 

There are three different units that can be used when defining the maximum string length:

1.

Number of characters:  The total number of characters allowed for the target text.

2.

Expansion percentage:  Given amount (expressed in a percentage) of extra length allowed for the target text.

3.

Dialog units (Win32):  The maximum length of the target text expressed in (Win32) dialog units (DLUs).

 

Run the check using the Maximum String Length Check button in the Checks toolbar (Figure 1) or by selecting the same command from the Checks menu.  As for all check functions, the results of a maximum string length check are displayed in the Check Results view.

 

 

Figure 1: The Maximum String Length Check button in the Checks toolbar.

 

 

Figure 2: The Edit menu and the command (Settings...) for opening the Maximum String Length dialog box (for one or a number of selected items).

 

 

You can determine/locate all strings that have a maximum string length defined and that are enabled for the check with the following two commands from the Edit menu (see Figure 2):

 

·

Set Temporary Marker for All Check-Enabled Items

Sets a temporary (blue dot) marker next to all items that have been enabled for the maximum string length check.

 

·

Select All Check-Enabled Items

Selects all items (in the Text Table view) that have been enabled for the maximum string length check.

 

 

Enabling the Maximum String Length Check

 

1.

Select the item(s)  (translation unit(s)) in the Text Table view.

2.

Open the Edit menu and select the Maximum String Length Check  |  Settings command (Figure 2).

3.

In the Maximum String Length dialog box, enable the check for the translation unit by checking the Enable maximum string length check option and specify the width value to check the target text against.

 

 

Maximum String Length Dialog Box

Use the Maximum String Length dialog box to enable or disable the maximum string length check for a translation unit(s).

 

 

Figure 3: The Maximum String Length dialog box used to specify the maximum string length and enable the maximum string length check function for one or a number of selected target texts. Open the dialog box by selecting the Maximum String Length Check  |  Settings command from the Edit menu (Figure 2).

 

 

Adjust String Width Dialog Box

Use the Adjust String Width dialog box to specify the width (in DLUs) of a string.  The dialog box shows the source and target texts of the current translation unit.

 

Note that a string source text that fits is indicated by a green dot whereas one that does not fit is indicated by a red dot.

 

 

Figure 4: The Adjust String Width dialog box.