Working with translations
Translations of an object are created, edited and removed in the administration interface. Your policies decide which languages you may edit and add (see Language-based permissions).
Editing a translation
Press Edit on an object, in its full view, in the sub-items list or in the context menu of the content tree (Edit in and the language). When the object can be edited in more than one language, the page Edit <name> opens first:
- Existing languages: "Select the translation you want to edit". Choose one and press Edit.
- New translation: "Select the translation you want to add", with Translate based on: "Select the language the added translation will be based on", or None to start empty.
Only the languages you may edit or add are offered. The Translations window of the full view also has an edit link per language ("Edit in <language>").
Adding a translation
- Press Edit on the object.
- Under New translation, choose the language to add. Under Translate based on, choose the translation to start from: its fields are copied into the new one.
- Press Edit, translate the fields and Publish.
The object now has one more translation. The languages offered are the content languages of Setup > Languages the object does not have yet.
Several translations at the same time
A draft holds the fields of one language. Editing two translations of the same object creates two drafts, which can be edited at the same time, by one user or by several. Each one is published as a new version of the object with that language changed. My drafts (/content/draft) lists your open drafts with their language.
Removing a translation
In the object's Translations window, select the translations to remove and press Remove selected, then confirm. The main translation cannot be removed; make another one the main one first (Set main).
Removing a translation deletes the object's fields in that language, in every version, for good. Translate the content into another language first if you need to keep it.
Moving content to another language
To move an object from one language to another (for example content created in British English on a site that shows American English): add a translation in the new language based on the old one, make it the main one with Set main, then remove the old translation. Section 8 of Content languages walks through it, classes included. No shipped command moves translations in bulk.
More
- Multi-lingual objects: main language and availability.
- Content languages, sections 7 to 9.
Contributors
- Geir Arne Waaler Maintainer
- Andrea Melo Maintainer
- phpBoy Commenter
- Graham Brookins Updated Maintainer
Comments (1 historical)
Written by readers of the earlier documentation sites, kept as they were.
and in PHP?
phpBoy ·
Hi!
And is there anywhere some help on how to do that using PHP?
Thanks!