Set Translation Character Limit
Smartling allows you to set a character limit on a string’s translation to help ensure translations are kept to a certain length. This is particularly useful when translated content that will be seen somewhere with limited space, such as app push notifications or email subject lines. Setting a character limit warns translation resources when a translation exceeds your limit. (You can configure the severity of this warning in your Quality Checks setting.)
Character limits are set on the source string and apply to all target languages.
Spaces are counted as characters.
Set a Character Limit (New Experience)
- To add character limits to strings, enter the Strings View to find the string
- From a Project, click the Strings tab
- From a Job, click View Strings
- You can use search or filters to locate the string
- Select the string(s) to apply the character limit to
- Click Actions > Edit Character Limit
- Under Add Limit, enter a character limit number
- Click Add
From here, you can choose to remove any existing character limits by click Remove Limit and check "Remove character limit from the selected strings", and click Remove.
You do not need to remove a character limit before applying another character limit. Adding subsequent character limits to a string will overwrite any existing character limits.
Set a Character Limit (Classic)
- From within a Project, click Content > Translations.
- Mouse over a string and click the T icon.
- Enter a numeric character limit and click Submit.
Set a Character Limit in the CAT Tool
Account Owner, Project Manager, and Requester users can set character limits to strings from the CAT Tool.
- In the Additional Details panel, click Set Character Limit
- Insert the character limit number, and click Submit
Viewing Character Limits in the Strings View of the Dashboard
You can view character limits in the Strings View via the Strings Detail dialog.
- Navigate to the Strings View of the Job
- From the Job, click View Strings, or click the Strings tab and filter for the Job or search for the source keyword.
- On the string, click the 3 dots under Actions > View String Details
This will open the String Details dialog where you can view all string details, including Issues, Instructions, History. IN the Source String Metadata panel, you'll see the character limit under Max length.
Viewing Character Limits in the CAT Tool
Users in the CAT Tool can view character limits set on each string in the target language panel. The number reduces with each character input.
Users in the CAT Tool can also view character limits under the Additional Details panel. This will change depending on which string you are on.
Considerations when using Character Limits
Source vs Target
As mentioned above, character limits are set to the source string and apply to all target languages. It is important to take into consideration the typical amount of character used by all target languages in translation. For example, Spanish may typically use fewer characters than Russian. It is also important to take into consideration the character count of the source copy and ensure that the limit applied is greater than the character count of the source string. This will undoubtedly reduce the number of source Issues you may have to address.
Characters vs Bytes
The number of bytes a character uses depends on the character itself. A character limit is a character count, not a byte count. The purpose of setting character limits is really just a guide for translators. It’s meant to convey, for example, that this string is used in the application with a very limited and inflexible amount of space - keep the translation character count as short as linguistically possible.
Placeholders & HTML
Any dynamic content that has been secured in a placeholder, will not be counted in the character limit. The same applies to HTML.
Set Character Limits within the source file
You can set a character limit to a string directly from within the source file by using a character limit directive. For CSV, the character limit is noted in the column before the source string - left to the string it is applied to. For other file types, such as iOS Strings, iOS StringsDict, Android XML, and Custom XML, setting a string translation character limit in the file is supported. The limits apply for the specific string they are configured, not the entire file. If you are using the Strings API, you can set character limits for the translations when creating the string.