Skip to content
Apps By Cube Localization Team 6 min read

UI Strings Without Context: How to Avoid Embarrassing Translations

most embarrassing UI translations happen because the translator never saw where the string appears. A word like "Open", "Post" or "Free" has several mea…

UI Strings Without Context: How to Avoid Embarrassing Translations

Short answer: most embarrassing UI translations happen because the translator never saw where the string appears. A word like "Open", "Post" or "Free" has several meanings, and a translator working from a bare list has to guess. Fix it by giving every string a clear key, a short developer comment, screenshots and length limits, and by never building sentences from fragments.

Every software team has a story. The "Back" button translated as the part of the body. "Order" translated as "command" on a checkout screen. "Close" translated as "nearby". None of these are failures of language skill. They are failures of context. Interface text is short, often a single word, and short text is ambiguous by nature. This guide explains why context-free strings go wrong, the specific patterns that cause the worst errors, and a practical checklist for developers and product managers who want translations to come back right the first time.

Why UI strings are so easy to mistranslate

A novel gives a translator pages of surrounding text. A resource file gives them a key and two words. Consider a few English UI words and how many directions they can go:

StringPossible meaningsWhat the translator needs to know
OpenVerb (open a file) or adjective (the store is open)Is it a button or a status label?
PostPublish a message, a noun for the message, or mailIs it an action or a content type?
FreeNo cost, or available, or unlockedIs it about price or availability?
SaveStore a file, or save money (a discount)Is it in an editor or on a pricing page?
HomeMain screen, house, or a home addressNavigation item or form field?
ClearDelete content, or transparent, or understandableIs it an action on a form?

In English, a verb and its imperative, the noun and the button label often look identical. In many target languages they do not. Arabic, for example, distinguishes between an imperative ("احفظ") and a verbal noun ("حفظ"), and products usually choose one style for buttons and apply it everywhere. A translator needs to know which they are looking at.

Flat lavender illustration of a translator puzzled by a single word on a list, while a developer beside her points to the same word as a button on an app screen
The same word means something different on a list and on the screen.

The patterns that cause the worst errors

Concatenated strings

Developers sometimes build a sentence from pieces to avoid duplication:

// Don't
label = t("you_have") + " " + count + " " + t("new_messages");

// Do
label = t("inbox.new_messages", { count });
// en: "{count, plural, one {You have # new message} other {You have # new messages}}"

The first version forces English word order on every language and makes plurals impossible. Arabic, Japanese and German will all need the parts in a different order. Always give translators the whole sentence with placeholders.

Reused strings

Using one key for "Open" everywhere saves a few bytes and costs a lot of quality. A button that opens a file and a label that says a ticket is open need different translations in many languages. Create separate keys whenever the meaning or the place differs, even if the English text is the same.

Unexplained placeholders

A string like "{0} by {1}" could be "Song by Artist", "Sorted by Date" or "3 by 4 grid". Without a comment, a translator cannot know which preposition to use. Name placeholders where your framework allows ({author} is clearer than {1}) and describe them in a comment.

Hidden length limits

A label that fits in English may be much longer in German or Finnish, while Arabic can be shorter or longer depending on the phrase. If a field can only hold a certain number of characters, say so. Otherwise translators write natural text and engineers find the overflow in testing.

Gender and formality

"Welcome back!" is neutral in English. In Arabic, French and many other languages, addressing the user requires choosing grammatical gender and a level of formality. Products need a policy (for example, a neutral construction or a gendered variant selected from the user profile), and translators need to be told what it is.

Same word, different meaning

What good context looks like

Six types of context that prevent UI translation errors: descriptive keys, developer comments, screenshots, length limits, placeholder notes and a glossary
Six kinds of context, from cheapest to most complete.

Context does not have to be expensive. Ranked roughly from cheapest to most complete:

  1. Descriptive keys. settings.notifications.toggle_label already says more than str_142.
  2. Developer comments. One line, written when the string is created: "Button that saves the draft. Imperative verb."
  3. Placeholder notes. What each variable contains and an example value.
  4. Length limits. A maximum character count where the layout is tight.
  5. Screenshots. Attached to keys in your translation management system. Several platforms can capture them automatically or link them to keys; check your tool's documentation.
  6. A glossary and style guide. Agreed translations for product terms, and rules for tone, formality and button style.

Here is what a well-documented string can look like in an Android resource file:

<!-- Button on the photo editor toolbar. Saves the edited
     image as a new file. Imperative verb. Max 12 characters. -->
<string name="editor_toolbar_save_copy">Save copy</string>

Fifteen seconds of writing prevents a support ticket in eleven languages.

Give translators a way to ask

Even with good comments, questions will come. A healthy process has:

  • A single place for questions, usually the comment feature of your TMS rather than email.
  • A named person on the product team who answers within an agreed time.
  • A habit of turning every answer into a permanent comment on the string, so the next translator does not ask again.

In a continuous localization setup, unanswered questions are the most common reason a language falls behind.

A situation we see often: a batch of short strings arrives with no comments, and several are ambiguous in Arabic, such as a status label and a button that share the same English word. Our linguists flag them in the translation platform with a short question and a proposed translation for each meaning. Once the product team confirms, we add the answer as a permanent note on the key, so the same question never comes up again.

Test in context before release

The final safety net is reviewing translations where users will see them. Linguistic testing on a real build, or on a staging environment, catches what no comment can: a correct translation that sounds wrong next to an icon, a truncated label, a message that appears in an unexpected place. Combine it with pseudo-localization early in development to catch hard-coded and concatenated strings before translators ever see them. Our guide to software localization testing explains how to organize it.

A checklist for product teams

  • One key per meaning, never per English word.
  • Whole sentences with named placeholders; no concatenation.
  • Plurals through ICU or your platform's plural mechanism.
  • A comment on every string shorter than about five words.
  • Length limits on buttons, tabs and notifications.
  • Screenshots attached for new screens.
  • A glossary and a decision on tone, gender and formality per language.
  • A clear owner for translator questions.

Our linguists and localization engineers work with product teams to set up this kind of context, from string comments and glossaries to in-build testing. See our software localization service, read how our engineering team prepares files with context, or ask for a quote.

Flat lavender illustration of a happy user tapping a clearly labelled Arabic button on a phone while a translator gives a thumbs up in the background
When translators see the screen, users get labels that make sense.

Frequently asked questions

Are screenshots really necessary for every string?

No. Comments and descriptive keys solve most ambiguity. Screenshots are most valuable for new screens, dense layouts and anything visual, such as charts or onboarding flows.

Who should write the string comments?

The developer who adds the string, because they know where it appears. Product managers or UX writers can review comments for important flows. Make it part of code review.

Can machine translation solve the context problem?

Not on its own. Machine translation sees even less context than a human translator, so ambiguous short strings are where it fails most. Context helps both machines and people.

How do we handle gender in Arabic UI text?

Decide on a policy first. Common options are neutral phrasing that avoids addressing the user directly, or separate masculine and feminine variants selected by the app. Your translators can suggest which works best for each string.

What if our existing app already has many reused or concatenated strings?

Fix them gradually. Start with the most visible screens, such as onboarding, checkout and settings, split reused keys and replace concatenation with full messages. Pseudo-localization helps find the worst cases quickly.