Re: [xwiki-users] How to get the rendered content of a document with translations?

2012-02-16 Thread Guillaume Delhumeau
Hi. Thanks for your answers. Edo> > $xwiki.renderText(Document.getTranslatedContent(language), Document) > That doesn't work, I get the answer "Nested scripts are not allowed". (my document contains velocity scripts) Marius> but this won't fix the fact that $msg.get('key') takes into account

Re: [xwiki-users] How to get the rendered content of a document with translations?

2012-02-15 Thread Marius Dumitru Florea
On Wed, Feb 15, 2012 at 1:53 PM, Guillaume Delhumeau wrote: > Hi guys. > > Let met describe you my problem. > > I get the rendered content of a document on a velocity script : > > #set($newsletterContent = $newsletterContentDoc.getRenderedContent()) > > But I would like to specify the language I w

Re: [xwiki-users] How to get the rendered content of a document with translations?

2012-02-15 Thread Edo Beutler
Sorry, I was a bit to quick ;-) What I meant is: $xwiki.renderText(Document.getTranslatedContent(language), Document) On Wed, Feb 15, 2012 at 1:22 PM, Edo Beutler wrote: > Hi Guillaume > > "Shooting from the hip" I suppose > $xwiki.renderText(Document.getTranslatedDocument().getContent(), > Docu

Re: [xwiki-users] How to get the rendered content of a document with translations?

2012-02-15 Thread Edo Beutler
Hi Guillaume "Shooting from the hip" I suppose $xwiki.renderText(Document.getTranslatedDocument().getContent(), Document) should work. Regards Edo On Wed, Feb 15, 2012 at 12:53 PM, Guillaume Delhumeau wrote: > Hi guys. > > Let met describe you my problem. > > I get the rendered content of a doc

[xwiki-users] How to get the rendered content of a document with translations?

2012-02-15 Thread Guillaume Delhumeau
Hi guys. Let met describe you my problem. I get the rendered content of a document on a velocity script : #set($newsletterContent = $newsletterContentDoc.getRenderedContent()) But I would like to specify the language I want ('fr' or 'en') because my document contains translation keys. Of cours