I would like to link one item as the translation of another item, programmatically, in LinguaPlone. What's the API?
What is the LinguaPlone API to link an existing content item as the translation of another content item?
229 Views Asked by joeforker At
2
You need to make sure you have the canonical object first:
You can then link your translation by calling
addTranslationReference
on the translation:That's all. The LinguaPlone API is rather under-documented, your best bet is to look at the I18NBaseObject source code. The most important thing to remember is that there is always one canonical object, with any translations linked to it via references, where the reference points from translations to the canonical object.