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
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
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
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
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