[Yanel-dev] Sitetree translation

Evaldas Taroza etaroza at optaros.com
Tue Jan 15 19:09:27 CET 2008


I am creating a resource which should get the info in the sitetree and 
transform it with an XSLT. I have the sitetree in two languages: 
sitetree-de.xml and sitetree-en.xml. Together with translations.xml.

How do I programatically get a translated sitetree? Let's say that my 
resource is accessed through .../yanel/de/myresource.html, so in the 
implementation I would like to do something like
... getContentXML(...){
    return toView("yanelresource:/navigator"+"?"+getRequestedLanguage());
}

how do I do that? Can I somehow reuse some navigator resource which 
translates the sitetree?

Evaldas

-- 
+41 79 616 53 76
Optaros - www.optaros.com


More information about the Yanel-development mailing list