I think, the use of string-variables on top of each jsp-file / template-file would make translations of templates into other languages much more easier.
This an example on how to use variable for making translations of template-files easier. The sample used the default LeftMenu.jsp file.
-- Heinz-Josef Lücking --
<% // Setting Language // =============== // // "No LeftMenu!" String langNoLeftMenu = new String("Es wurde noch kein Menü erstellt"); // "Please make one." String langPleaseMakeOne = new String("Bitte erstellen Sie ein Menü: "); // "G'day." String langGDay = new String("Herzlich wilkommen"); // "Set your name in" String langSetYourNameIn = new String("Wählen Sie einen Benutzernamen"); // "UserPreferences" String langUserPreferences = new String("Benutzereinstellungen"); %> <h3 class="leftmenuheading"><a href="<wiki:LinkTo page="SystemInfo" format="url"/>"><wiki:Variable var="ApplicationName" /></a></h3> <!-- LeftMenu is automatically generated from a Wiki page called "LeftMenu" --> <p> <wiki:InsertPage page="LeftMenu" /> <wiki:NoSuchPage page="LeftMenu"> <hr><p> <p align="center"> <i><%= langNoLeftMenu %></i><br /> <wiki:EditLink page="LeftMenu"><%= langYourTrail %></wiki:EditLink><br /> </p> <p><hr /></p> </wiki:NoSuchPage> </p> <p> <div align="center" class="username"> <wiki:UserCheck status="known"> <b><%= langGDay %>,</b><br /> <wiki:Translate>[<wiki:UserName />]</wiki:Translate> </wiki:UserCheck> <wiki:UserCheck status="unknown"> <tt> <%= langSetYourNameIn %><br /> <wiki:LinkTo page="UserPreferences"><%= langUserPreferences %></wiki:LinkTo> </tt> </wiki:UserCheck> </div> <wiki:Include page="LoginBox.jsp" /> </p> <!-- End of automatically generated page -->
Add new attachment
Only authorized users are allowed to upload new attachments.