(This is a starter page on multilingual use of JSPWiki.)
Christian Fischer wrote into the Jspwiki-users mailing list
:
Unfortunately there is no built-in facility to do that.
However, it should be pretty easy to do by making a template, which would simply look at the browser properties and insert the proper page. The <wiki:InsertPage> tag allows you to specify the "page" parameter, which allows you to include something else than the current page.
For example
<% String language = MyBean.figureOutUserLanguage()
WikiContext ctx = WikiContext.findContext( pageContext );
String pageName = ctx.getPage().getName() + "_" + language;
%>
<wiki:InsertPage page="<%=pageName%>"/>
This would allow you to have pages such as "FooBar_en", "FooBar_de", etc. Just use JSP scriptlets creatively :)
Add safeties and checks as necessary. The WikiContext.findContext() is not available until 2.4, though — in 2.2 you have to examine the JSP pages on how it could be done.
(This example is totally untested and from memory, so you might want to use your own judgement when coding :)
/Janne
Discussion
...