Sub topic 13
Writing Text That Translates Well
This chapter assumes you understand common interface elements and can review copy in a product. You do not need to speak another language. You need to understand that translated text may change in length, word order, grammar, and tone.
Localization is the process of adapting a product for a specific language and region. Good localization starts with source text that translators can understand and safely adapt. English copy that looks clear in one interface can become ambiguous or unusable in another language.
Give translators enough context
A translator needs to know what a message means, where it appears, and who will read it. The string “Open” could describe a file, a menu, a status, or an action. Add a description, screenshot, or translation note when the meaning is not obvious.
Use complete messages instead of fragments that must be assembled by code.
messages = {
"en": "{count} comment(s) on {item}",
"fr": "{count} commentaire(s) sur {item}",
}
def comment_summary(language, count, item):
template = messages[language]
return template.format(count=count, item=item)
print(comment_summary("en", 3, "Q3 report"))This example still needs proper plural rules for production use, but the message gives translators one meaningful unit. Avoid code such as "Comments: " + count + " on " + item. Other languages may need a different order or a different form of the noun.
Design for different lengths and grammar
Translated text can be shorter or much longer than the source. A button that fits “Save” may not fit its translation. Test layouts with longer languages, and avoid fixed-width controls when text can expand.
Do not assume that every language uses the same grammar. Plan for:
- Singular, plural, and sometimes several plural forms.
- Gendered nouns or adjectives.
- Different word order.
- Formal and informal forms of “you.”
- Local date, time, number, currency, and measurement formats.
- Writing systems that use different directions, such as right-to-left scripts.
| Risky source text | Safer approach |
|---|---|
| `1 items` or `5 items` | Use a localization library with plural rules |
| `Hello, {firstName}!` | Confirm that the greeting and name order work in each language |
| `Save changes` | Provide context about whether “save” means store, submit, or download |
| `Valid from {date}` | Format the date for the user's locale |
Avoid idioms, ambiguity, and hidden meaning
Idioms, jokes, slang, and metaphors often do not translate directly. “That’s a piece of cake” may confuse a reader or require a costly rewrite. Prefer direct language such as “This is easy.”
Avoid putting meaning into capitalization, punctuation, or word fragments. Do not split a sentence across several separately translated strings. Keep placeholders stable and name them clearly, such as {accountName} rather than {x}.
Check layout and inclusive meaning
Review translated screens, not only translation files. Look for clipped buttons, broken line wrapping, unreadable messages, and incorrect reading order. Test right-to-left layouts if your product supports them.
Also check whether a phrase assumes a culture, gender, family structure, ability, or legal system. Write for the actual audience rather than treating one region as the default.
Exercise
Why should an interface avoid building a sentence by concatenating several translated fragments?
Show answer
The target language may require a different word order, grammar, or plural form, so translators need the complete message as one unit.