Removing a translation safely
This page is for administrators and lead editors. Two removals look alike and are very different (Content languages, section 9).
Contents
- Language versus translation
- Content in the wrong language
- Removing a language nobody uses
- Who should be allowed
Language versus translation
| Action | Where | Deletes | Undo |
|---|---|---|---|
| Remove a language | Setup > Languages | only the language row; refused while any object or class has a translation in it | add it again |
| Remove an item's translation | the item's Translations tab | all fields and names of the item in that language, in every version | only from a backup |
| Remove a class's translation | the class's Translations window | the class name and description in that language | translate the class again |
For a public body, removing a translation also removes the record of what was published in that language. Before removing, consider whether hiding or a notice serves better (see "Withdrawing and correcting published information" in the transparency section).
Content in the wrong language
When content was created in the wrong language (for example British instead of American English):
- Translate it into the right language: Edit, New translation (right language), Translate based on (wrong language), Send for publishing. Both translations exist now.
- Make the right language the main one: Translations tab, Main column, Set main.
- Remove the wrong translation: select it, Remove selected, confirm.
No shipped console command moves translations in bulk; for many items, a script against the kernel API tried on a copy of the database is the way.
Removing a language nobody uses
- On Setup > Languages, the card must say Unused and that it can be removed.
- Tick Select for removal, Remove selected, confirm.
- Take the locale out of every siteaccess's
SiteLanguageList[]; clear the INI andcontent_languagecaches (php bin/php/ezcache.php --clear-tag=ini,--clear-id=content_language), and Velocity's response cache.
Who should be allowed
Give the right to remove translations only to administrators or lead editors. Removals are recorded in the audit trail (Audit trail); the removed text itself is gone from the database.
Related pages
- Content languages
- Main language of an item
- Translator roles and permissions
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.