How to Prevent Translation Bugs When Updating Product Versions
Translation bugs after a version update are regressions against the last approved file: a key that used to display is missing or still showing old copy, or a placeholder no longer matches the code. Prevent them by diffing keys before merge, failing the build when placeholder names or ICU arguments differ, and giving a changed meaning a new string ID so the old translation cannot ship. In a gettext catalog, msgmerge marks a slightly changed msgid fuzzy, and msgfmt leaves that entry out of the compiled catalog unless the build passes --use-fuzzy.
Translated strings revert after an update when pre-translation writes over a target that was already filled, not when a key goes missing. Phrase Strings replaces unverified translations only if “Overwrite translations when source text changes” is on and the main-language source changed; verified translations are not overwritten. Phrase TMS overwrites existing targets only when that pre-translation option is on, and a source update otherwise leaves confirmed segments unchanged unless the source text itself changed.
Why translation bugs appear after a version push
A push changes the source. The previous translation is then reused or dropped. Four mechanical failures cover the reports that show up after the deploy:
- Missing key. The key is in the source locale and absent from a target file. At runtime the app falls back to the source language or shows an empty string. GetTranslated’s pre-merge checklist treats that missing key, and the opposite case, as the first structural check.
- Surplus key. The source deleted the string and the locale file still has it, so 1.2 copy stays on a screen whose English is gone.
- Placeholder identity. The translation renamed, translated, reordered, or dropped a token (
{name}became{naam}, or%1$smoved). A key-set diff still passes. Shipi18n’s placeholder write-up separates those three breaks from a missing key. The same GetTranslated check requires the same placeholder type, count, and positional index as the source. - Same string ID, new meaning or new ICU arguments. Mozilla’s string-change guidance says a meaning change needs a new string ID; an English-only typo generally does not. Changing the ICU argument set is a breaking change for the code that calls the string. Changing wording under a stable ID is not a code break, and it is how the old translation ships again.
Gettext drops a slightly changed string unless the build uses fuzzy entries
A key-file diff does not describe a PO catalog. GNU gettext’s fuzzy-entry rules say msgmerge marks an entry fuzzy when it cannot find an exact msgid and pairs a slightly changed one with the old translation. The translator is supposed to revise that entry. Fuzzy entries are not validated translations.
msgfmt --use-fuzzy (also -f) puts those entries in the binary catalog. The same manual says using the option is usually wrong, because fuzzy messages have not been validated by a human translator. Without -f, fuzzy entries are not included in the output. The bug after a small English edit is then a missing translation: the program shows the msgid. The old translation ships on the new English only if the build passes --use-fuzzy. Update the translation and clear the fuzzy flag. Do not turn the flag on to make the release look complete.
This is not paying twice for unchanged strings, and it is not 1.3 shipping a different approved word than 1.2. Those are inherit, lock, and namespace. This page is the string that fails at runtime or shows the wrong generation of copy.
Why translated strings keep reverting after updates
A revert is the previous wording coming back in the product. A missing key is the opposite: the locale file has no target, and the app shows the source language or nothing. Check which one you have before you change a build flag.
Phrase Strings pre-translation fills empty targets and skips keys that already have a translation, unless the project enables “Overwrite translations when source text changes.” That option replaces unverified translations with machine translation when the main-language source changes. Phrase says it cannot be undone. It requires a main language on the project. A setting that prevents or skips unverification also prevents the overwrite. Verified translations are not overwritten. If the string that came back was still unverified, this option is the first place to look. If it was verified, Phrase Strings did not replace it.
Phrase TMS pre-translation has a separate option, “Overwrite existing translations in target segments.” The pre-translate job API leaves overwriteExistingTranslations off unless the request sets it, and then it re-translates targets that already have content. Update source does not do that by itself: translated and confirmed segments stay unless the source text changed. A continuous job clears the target when the source changed. If the memory is attached in write mode, the previous confirmed translation is saved in the memory rather than left on the segment. An empty target is a clear. The old sentence on screen again is an overwrite.
In gettext the two outcomes split on one flag. msgmerge attaches the old msgstr to a slightly changed msgid and marks it fuzzy. msgfmt --use-fuzzy compiles that old translation, which is the revert. Without the flag, fuzzy entries are left out of the catalog and the program shows the msgid. That is a missing string, not a reverted one. Do not turn the flag on to stop the disappearance.
1. Detect changed, new, and obsolete strings automatically
Change control is impossible without a known baseline. Comparing a new source against whichever old file is easiest to find labels previously approved edits as new, misses changes that were already integrated, or updates from the wrong generation.
Establish the approved baseline first
Record the authoritative source version, target version, release identifier, approval date, and storage location. If the project uses Git, capture the commit or tag. If it uses documents, use revision IDs or controlled filenames. Before you calculate a delta, prove what the baseline is.
Generate a machine-assisted diff
Use stable keys, not just text comparison. Strict duplicate detection matches source text and key. A renamed key is a new string even when the English is identical. Version the branch or the job, not the string IDs.
Classify changes as additions (new keys or new text), deletions (keys removed from source), edits (same key, changed source text or meaning), moves (structural changes), and formatting-only changes (whitespace, case, punctuation where meaning is unchanged).
Route only affected content for translation
A translation update is a delta against an explicit approved source-target pair. Pre-translate exact matches from the previous-release TM, then send only new and meaning-changed strings. Translating every development commit creates unnecessary work when strings are still experimental.
2. Validate placeholders, markup, and file structure before merge
Translations should pass automated validation before they are merged or deployed. Technical validation runs before linguistic review.
Automated structural checks
- Missing translations. Untranslated text, empty values, keys present in source but missing in target.
- Broken placeholders. Variables, placeholders, or markup altered, removed, or reordered (
{0},%s,[[name]]). - Malformed ICU MessageFormat. Invalid syntax, mismatched braces, undefined plural categories, incorrectly nested structures.
- Invalid file structures. Duplicate keys, malformed JSON/XML/YAML, incorrect encoding, damaged nested objects.
- Tag integrity. Inline formatting tags missing, duplicated, or in wrong order.
- Length violations. Character-limit overruns where hard limits apply (UI labels, database fields).
Invalid content should be blocked with clear, actionable error messages. A linguistically correct translation can create technical problems if it contains an altered variable, malformed markup, an unsupported character, or an incorrect file path.
Linguistic quality gates
Use localized builds, previews, and in-context review to assess clarity, accuracy, and user experience. This is especially true for high-risk flows: registration, checkout, payments, account recovery, safety messaging, and legal consent.
Pseudo-localization uncovers layout, text expansion, concatenation, encoding, and hard-coded-string issues before translation begins.
3. Run regression checks on unchanged strings
A source update can break target content that nobody intended to edit. Global find-and-replace, file conversion, merging, and re-import can alter previously approved strings.
Compare unchanged target segments
Where possible, diff unchanged target content between the approved baseline and the new release candidate. Validate that placeholders, tags, and formatting remain intact.
Inspect affected layouts
A global feature-name replacement can accidentally alter a historical quote that should retain the old name. A merge can drop a paragraph from an otherwise untouched page. A file-format conversion can normalize quotes or alter whitespace in ways that break placeholder matching.
Regression QA asks: what evidence shows that material we did not intend to change actually stayed unchanged?
4. Freeze strings before release and gate on completion
String freeze
A string freeze is a defined point in the release cycle after which no new translatable strings are added or modified in the source. It gives the localization team a stable target and prevents the costly churn of re-translating strings that changed after translation was completed.
Best practices:
- Announce the freeze date at sprint planning, not the day before release. Freeze the source before linguistic QA on that named candidate.
- Enforce the freeze through branch protection rules or TMS configuration.
- Allow only critical bug-fix string changes after the freeze, with an explicit approval process and a controlled hotfix translation path.
- Use named change batches or release candidates. Changes after RC1 can become Batch B with their own diff and status. Freeze a candidate before final QA so the review is testing a specific artifact rather than a moving target.
Release gates
Define required pass criteria before allowing deployment:
- Content completion. Required strings for the languages you are shipping are translated and approved. Do not deploy a locale file that is missing keys the source still has.
- High-risk review. In-context validation of registration, checkout, payments, account recovery, safety messaging, and legal consent flows.
- Terminology compliance. Forbidden-term checks passed, preferred terms used, glossary alignment confirmed.
- Critical defect resolution. No open P0/P1 localization bugs (broken placeholders, missing strings, truncated UI, garbled text).
- Localized build availability. Deployable artifacts exist for all target languages and pass smoke tests.
For software localization, a pull-request workflow keeps translation changes visible within the existing development process. Developers can run the same technical and build checks used for other product changes before merging the localized resources. Avoid sending translations directly into production without validation.
Version control for translation resources
Localized resource files should be version-controlled alongside application code. This enables:
- Diffing. Identifying exactly which strings changed between releases.
- Rollback. Reverting to a previous set of translations if a quality issue is discovered post-launch.
- Branching. Supporting parallel localization for feature branches and hotfixes.
The rule is simple: before you calculate a delta, prove what the baseline is. After you ship, tag the release and record which source state the target represents.
What this is not
- Paying twice for unchanged strings. That is duplicate work across releases — version-branch duplicate hiding, file namespaces, and a shared TM.
- Shipping different approved wording than last version. That is version inconsistency — partial inherit, a glossary change that never rewrote the TM, or an unlocked override.
- Translators missing context from the last release. That is also duplicate work — usually because this job does not share string IDs with that job, or the previous-release TM was not attached.
- Two different translations of the same source after a platform switch. That is a conflict the import kept. It is not a string that reverted on this release.
A repeatable update workflow
- Identify the approved source-target baseline and assign the new source version.
- Generate a machine-assisted or document-level diff by stable key.
- Classify additions, deletions, edits, moves, and formatting-only changes.
- Assess semantic impact and risk, especially for small logical or factual changes.
- Route only affected content for translation or review. Pre-translate exact matches from the previous-release TM.
- Check terminology, cross-references, numbers, and dependent assets.
- Run automated structural checks: missing translations, broken placeholders, malformed ICU, invalid files, tag integrity, length violations.
- Apply approval rules proportionate to the change. High-risk flows get in-context validation.
- Integrate changes in named batches and freeze a release candidate.
- Run regression checks on changed and unchanged target content. Compare unchanged segments, validate placeholders, inspect affected layouts.
- Define and enforce release gates: content completion, high-risk review, terminology compliance, critical defect resolution, localized build availability.
- Reconcile the final target to one declared source release and record material linguistic changes. Tag the release in version control.
Frequently Asked Questions
How do we prevent translation bugs when updating product versions?
Treat the update as a regression against the last approved file. A key present in source and missing in a locale falls back to English or an empty string. A key removed from source but left in the locale file is leftover copy. Placeholders must keep the source name, count, and order. A meaning change needs a new string ID so the old translation cannot ship on the old ID.
Why do translation bugs appear after we push version updates?
The push changed the source and the previous translation was reused or dropped. A removed key falls back to the source language or an empty string. A key deleted in source but left in the locale file still displays. A placeholder that was renamed, translated, or dropped looks finished until runtime. A meaning change that kept the same string ID ships the previous translation. In gettext, msgmerge marks a slightly changed msgid fuzzy, and msgfmt leaves that entry out of the compiled catalog unless the build passes --use-fuzzy.
Why do our translated strings keep reverting after updates?
A revert means a tool wrote over a target that was already filled. Phrase Strings does that when “Overwrite translations when source text changes” is on: unverified translations are replaced after the main-language source changes, and verified translations are not. Phrase TMS overwrites existing targets only when that pre-translation option is on. A source update otherwise leaves confirmed segments unchanged unless the source text changed, and a continuous job clears a changed segment instead of restoring the old line. In gettext, the old translation ships only if msgfmt is run with --use-fuzzy. Without it, the fuzzy entry is omitted.
Why does a gettext string disappear after a small English edit?
msgmerge pairs a slightly changed msgid with the old translation and marks the entry fuzzy. Fuzzy entries are not validated translations. msgfmt includes them only with --use-fuzzy, and the gettext manual says that option is usually wrong. Without it, the changed string is omitted from the .mo and the program shows the msgid. Update the translation and clear the fuzzy flag. Do not pass --use-fuzzy to make the release look complete.
What are the most common translation bugs in version updates?
A missing key, a surplus key left behind after the source deleted it, a placeholder whose name, count, or order no longer matches the code, an ICU argument set that changed under the same ID, and a meaning change that reused the old string ID.
How do I run regression checks on unchanged translations?
Compare unchanged target segments between the approved baseline and the new release candidate. Validate that placeholders, tags, and formatting remain intact. Inspect affected layouts where global find-and-replace or file conversion may have altered strings that were not intended to change.
When should we freeze strings before a product release?
Freeze the source before linguistic QA on that release candidate, and announce the date when the sprint is planned. After the freeze, allow only an approved hotfix string, with its own diff. The gate is a named candidate, not a fixed number of days.
Related guides
- How to Prevent Duplicate Translation Work Across Product Releases — stop paying twice for unchanged strings
- How to Prevent Translation Inconsistencies Across Product Releases — stop shipping different wording for unchanged strings
- How to Audit Translation Memory Quality — when the reused units should not be trusted
- Why a Translation Memory Has Conflicting Entries — two targets for one source after a platform switch, which is not a string that reverted
- Your Translation Memory Is Faithfully Preserving Your Mistakes — why TM reuse can perpetuate errors