Skip to main content

How to Configure and Use Target Char Limit in wxrks

Set a per-segment character limit from an XLSX column or an XML string, choose how it's enforced, and find or report translations that go over it.

Some file types — subtitles, UI strings, app labels — have a hard character limit for every line: go over it and the text gets cut off or breaks the layout. Target Char Limit lets you set that limit per segment (or per group of segments) directly in wxrks, so translators see it while they work instead of finding out after delivery.

💡 Who is this for? This guide is for Project Managers and Vendors who need to set and work within character limits on translated segments, and for Account Admins who save XML filters that read the limit automatically.

How Target Char Limit Works

Target Char Limit is a per-segment character cap that comes from your source file, not a value you type into wxrks by hand. Each segment gets its own limit from the file:

  • In an XLSX spreadsheet, from a column you designate when the file is uploaded.

  • In an XML file, from an element or attribute of each string, such as segment_length="25", read with the XML filter's Record fields.

Once a file has limits, the Editor adds:

  • A live character counter on the segment you're translating, comparing the current translation length to its limit.

  • A highlight on the characters that go past the limit, while you type.

  • A visible warning on any segment whose translation goes over its limit.

  • A Target character limit exceeded filter, so you can pull up every over-limit segment in a file at once.

  • Two enforcement modes that decide whether an over-limit segment can still be confirmed.

The QA check Target exceeds the segment's character limit also reports every translation over its limit.

Setting Up Target Char Limit for an XLSX File

Target Char Limit is configured per file, in the same file-parameters panel used for other file upload parameters, during Step 2 of project creation.

Before you start

You'll need an XLSX spreadsheet with separate columns for:

  • The source text.

  • The target text for each language you're translating into.

  • A numeric character limit for that row.

Target Char Limit only works on a Multilingual File — a spreadsheet where the source text and every language's translation sit in their own columns of the same file, instead of one file per language. Multilingual File can't be combined with Data Transformation Parameters in the same file, so if that option is already turned on for your file, turn it off first.

Enable the limit and map the column

After uploading your file, click its row to expand the file parameters, then turn on Multilingual File under Multilingual Flags. Fill in the Source Column and each language's Target Column to match your spreadsheet, then turn on Enable Target Char Limit and enter the column that holds the character limit in Target Char Limit Column.

New Project wizard, Upload Files step: file parameters of an XLSX file with Multilingual File turned on under Multilingual Flags, Source Column A and Target Column (pt_br) B filled in. The Enable Target Char Limit toggle (on) and the Target Char Limit Column field (set to C) are highlighted.

ℹ️ Note: The Target Char Limit Column field only appears once Multilingual File and Enable Target Char Limit are both on, and the Source Column/Target Column fields must already be filled in for it to save.

Choose Soft or Hard Enforcement

Turning on Enable Target Char Limit also reveals two mutually exclusive toggles — while one is on, the other is grayed out until you turn the first one off:

Same file parameters panel with Enable Target Char Limit on. The Soft Enforcement and Hard Enforcement toggles below the Target Char Limit Column field are highlighted.

  • Soft Enforcement: a translator can still confirm an over-limit segment — it stays flagged with a visible warning afterward.

  • Hard Enforcement: an over-limit segment can't be confirmed or locked at all. Trying to shows "Oops, it's not possible to lock a segment that exceeds the character limit." The text has to come under the limit first.

Once everything is set, click Save in the file parameters panel — the worksheet settings aren't saved automatically as you change them.

Setting Up Target Char Limit for an XML File

For XML string files, the limit is read by the XML filter, so it's set once instead of on every upload:

  1. Account Admins: go to Settings > Translation > Filter settings, click Add filter (or Edit on your XML filter), choose XML in File type and Custom in Filter for XML. Mark the filter as Default for XML files so new projects use it, on the account or on one Organizational Unit (a group of clients or departments with its own settings). Project Managers can instead set the same options on one file in its Import settings while creating a project.

  2. Turn on Record fields, fill in Record XPath and Translatable text XPath, and point Character limit XPath to where each string keeps its limit (for example value/@segment_length).

  3. In Over the limit, choose what happens when a translation is too long:

XML filter option

Same as

What happens over the limit

Warn (default)

Soft Enforcement

The segment can be confirmed, with a warning.

Block

Hard Enforcement

The segment can't be confirmed, and the file can't be delivered.

A string without a positive whole number gets no limit. Account Admins can save this setup as a filter so new projects use it automatically. For the full setup, including the string's context and reference images, see How to read character limits, context and reference images from XML string files.

If the file changes the limit later, update the project's source file: the new limit replaces the old one, and a confirmed translation that no longer fits a lower Block limit goes back to unconfirmed.

Working With the Limit in the Editor

Selecting a segment that has a limit shows a character counter labeled Max, for example Max 26 / 20, comparing its current translation length to the configured limit. When the translation goes over, the counter turns into a warning color and the characters beyond the limit are highlighted in the text as you type, so you can see exactly how much to cut. Shorten the translation and the highlight disappears. This works the same for XLSX and XML files.

Editor with an active segment whose translation is over its limit. A red box highlights the target: its header shows Max 35 / 25 in warning color, and the last characters of the translation, past the 25th, are highlighted.

On segments you aren't editing, an over-limit translation shows a warning under it, such as Char limit 35 / 25. Confirming it then follows the enforcement mode: allowed with a warning under Soft Enforcement (Warn), blocked under Hard Enforcement (Block).

Editor with segment 2 (Save changes) selected and the translation Salvar todas as alterações typed in. The character counter in the segment header, Max 26 / 20, is highlighted and shown in warning color because the translation exceeds the 20-character limit.

Finding over-limit segments

Rather than scrolling through a file looking for warnings, open the Filter panel and turn on Target character limit exceeded to show only the segments currently over their limit.

Editor with the Filter panel open on the right. Under Metadata filters, the Target character limit exceeded toggle is highlighted.

When one cell or string becomes several segments

If a single cell (or XML string) contains multiple sentences that wxrks splits into separate segments (for example, at each period), the character limit applies to their combined length, not to each one on its own. Confirming any one of those segments checks the total of the whole group against the shared limit — so translating one sentence more concisely can bring the whole group back under the limit, and one long addition anywhere in the group can push all of them over.

ICU plural and select messages are the exception. When an XML filter reads ICU MessageFormat, each branch of a message (one, other…) is its own segment, but the app only ever shows one branch at a time. So the limit applies to the sentence around the plural plus its longest branch, not to the sum of all branches, and every segment of the message shows that same total. See How to translate ICU plural and select messages in XML files.

Reporting Over-Limit Translations in QA

The QA check Target exceeds the segment's character limit flags every translation longer than its segment's limit, whether the limit came from an XLSX column or an XML string. It uses the same count as the Editor counter, and it's on by default.

Account Admins set it for the account or for one Organizational Unit in Settings > Translation > Quality & Review: open the Length group, where the check is listed first. Click Ignorable next to it to switch it to Must fix. Project Managers can adjust it for one project.

Quality & Review settings with the Length group open: badge 1 on the Target exceeds the segment's character limit switch, turned on, and badge 2 on its Ignorable button, which switches the check to Must fix.

  • Must fix off (default): the issue is a regular QA issue that a reviewer can ignore and still deliver.

  • Must fix on: the issue can't be ignored, and a delivery set to block Must fix issues doesn't go through while one is open.

Including Tags in the Character Count

By default, only the translatable text counts toward the limit — inline tags (formatting, placeholders, etc.) don't. If your limit needs to account for those too in an XLSX file — for example, because the destination system counts raw markup toward its own display limit — turn on Include Tags in the Char count next to Enable Target Char Limit. With it on, the text each tag is represented by in your file also counts toward the segment's total, so the same segment can show a higher count than it does with tags excluded.

ℹ️ Note: Include Tags in the Char count can't be used together with the HTML Subfilter Break at <br> Tags setting — turning one on turns the other off.

Good Practices

  • Set the character limit while creating the project, not after — reworking the file parameters mid-project means re-mapping columns on every file. For XML files, save the setup in a filter once.

  • Use Hard Enforcement (Block) when a system genuinely can't accept over-limit text (subtitle players, fixed-width UI fields); use Soft Enforcement (Warn) when you want translators to see the warning but keep some flexibility.

  • Lean on the Target character limit exceeded filter for review passes instead of scanning the file visually, and turn on Must fix for the QA check when nothing over the limit may ship.

Related Articles

Did this answer your question?