Re: [xwiki-users] setting translation from groovy

2014-12-16 Thread David Delbecq
looking for. - Mail original - De: Clemens Klein-Robbenhaar c.robbenh...@espresto.com À: users users@xwiki.org Envoyé: Lundi 15 Décembre 2014 18:54:04 Objet: Re: [xwiki-users] setting translation from groovy Hi, just a quick response ... I have not really tried, but as far as I

[xwiki-users] setting translation from groovy

2014-12-15 Thread David Delbecq
Hello, say i want to create a new Xwikidocument in groovy, and i want this document to already have two languages. I tried to use this code in groovy and various other variants, but xwiki keep creating a single version of document, with content in last language of loop and default language in

Re: [xwiki-users] setting translation from groovy

2014-12-15 Thread Clemens Klein-Robbenhaar
Hi, just a quick response ... I have not really tried, but as far as I remember something like: translatedDoc = newDoc.getTranslatedDocument(language) should work. The explanation is that translations of given document are not completely different documents (so you do not have to make a