On Thu, May 2, 2013 at 4:54 PM, Bert Leunis <
b.le...@onehippo.com> wrote:
>
> On Tue, Apr 30, 2013 at 12:52 AM, James <
james....@ec.gc.ca> wrote:
>>
>> Ok, so I followed the instructions in the following link for adding a
>> document.
>>
>>
>>
http://www.onehippo.org/7_8/library/concepts/component-development/hstcomponent-persistable-annotation-and-workflow.html
>>
>> This works great and I can now programmatically add a document. The site
>> is configured to have English and French, and I can go into the CMS editor
>> and manually add a translation of the document that I added. However, I want
>> this to also be done programmatically in the HST when I first add the
>> document.
>>
>> Basically when I add a new document (English) in the HST, I would like the
>> translation node (French) to be created at the same time, just as it was
>> done manually in the CMS.
>>
>> Any ideas or pointers?
>
>
> Two nodes that are translations of each other have the same value in the
> hippotranslation:id property. The hippotranslation:locale properties will be
> different for each node of course. The node should have the
> hippotranslation:translated mxin added. The value of the hippotranslation:id
> property can be any string. As long as you make sure that they are unique
> within your repository you can set it yourself.
operation as the cms uses for creating a translation. So I guess he