This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

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

    <wiki:InsertPage page="LeftMenu" />
    <wiki:NoSuchPage page="LeftMenu">
        <p align="center">
        <i><%= langNoLeftMenu %></i><br />
        <wiki:EditLink page="LeftMenu"><%= langYourTrail %></wiki:EditLink><br />
        <p><hr /></p>
<div align="center" class="username">

    <wiki:UserCheck status="known">
        <b><%= langGDay %>,</b><br />
        <wiki:Translate>[<wiki:UserName />]</wiki:Translate>

    <wiki:UserCheck status="unknown">
        <%= langSetYourNameIn %><br />
        <wiki:LinkTo page="UserPreferences"><%= langUserPreferences %></wiki:LinkTo>
<wiki:Include page="LoginBox.jsp" />

<!-- End of automatically generated page -->

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 27-Jun-2004 16:19 by HeinzJosefLücking.