Manage Character Restrictions on the Dashboard

Add character restrictions to your keys

GL Strings allows users to set a character restriction or Max Length for a string value, be it in the Base language or in any target language inside a project.

Character restrictions can be added through the dashboard or via API. In this article, we explain how to manage character restrictions from the dashboard.

Set character restrictions in the Base language

  1. Open the Editor in the Base language
  2. Ensure the Base language is selected as both source and target (top right corner of the Editor).
  3. Hover over the entry and click the information icon to the right of the key to open the Details View.

  1. By default, character restriction is disabled. Use the Max length dropdown menu to select the manually set to option and enter the character limit in the textbox.
  2. Click Save.

📝 Note: For a given key, if there is no restriction on the target language, but there is a restriction on the base language, the target language will inherit the base language restriction.

Set character restrictions in the target language

  1. Open the Editor.
  2. On the top right corner of the Editor, select the Base language and the target language you want to set the restriction for.
  3. Hover over the entry and click the information icon to the right of the key to open the Details View.

  1. By default, character restriction in the target language is set to equals base language, but it's only enforced when the character restriction in the base language has been manually set.

    • As is the case with the Base language, users can also enforce a character restriction in any target language by selecting the option manually set to and entering the character limit in the textbox.
    • Alternatively, users can disable character restrictions by selecting the disabled option from the dropdown menu. This option can be used to deactivate the equals base language restriction that has been manually set and inherited from the base language.
  2. Click Save.

Work with character restrictions in the Editor

When translating or reviewing content in GL Strings, users can view the character limit for a given string value to the right of the character count. If the limit is exceeded, a warning will display next to the string value.

This is what it will look like in the Base language;

and in the target language:

Warnings and filters

When a character limit is exceeded, a yellow warning will display next to the string value. Hovering over the warning will show how much the string value exceeds the max length.

Additionally, users can easily filter for keys that exceed a character limit by clicking Filters > With Issues > Exceeds Max Length.

The Longer Than Base String filter option allows users to filter for keys where the translation length exceeds the Base language length. This option will include all keys that meet this condition, even if there are no manually set restrictions.

Character restrictions and translation orders

When creating a new translation order, users can select All with translations exceeding Max Length in the Scope panel. This way, only keys that exceed a manually set character limit will be included in the order’s scope.

This is helpful when translations delivered via the order interface are deemed too long after review. Users can send those translations back to TransPerfect for another review round and the production of shorter translations.