Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-18) was last changed on 11-Oct-2006 16:10 by NascifAbousalhNeto  

This page was created on 27-Jun-2004 16:18 by HeinzJosefLücking

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 changed 84 lines
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.
eg: the former string "__{{No LeftMenu!}}__" was replaced by "__{{<%= langNoLeftMenu %>}}__".\\ The result will be "__{{Es wurde noch kein Menü erstellt}}__".
-- [Heinz-Josef Lücking] --
{{{
<%
// Setting Language
// ================
//
// Setting a language or translating templates can be made much more easier by
// using string-variables.
// ---------------------------------------------------------------------------
//
// "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">
}}}__{{{
//Just a comment.
//The line
//<I>No LeftMenu!</I><BR>
//has been replaced by
<i><%= langNoLeftMenu %></i><br />
}}}__{{{
<wiki:EditLink page="LeftMenu"><%= langNoLeftMenu%></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 -->
}}}
CategoryTemplates
Wiki Lammah
Wiki Lammah
Wiki Lammah
Wiki Lammah
Wiki Lammah
Wiki Lammah
Wiki Lammah
Wiki Lammah
Wiki Lammah
Wiki Lammah
Wiki Lammah
Wiki Lammah
Version Date Modified Size Author Changes ... Change note
18 11-Oct-2006 16:10 2.496 kB NascifAbousalhNeto to previous
17 11-Oct-2006 09:09 2.69 kB dresses to previous | to last
16 02-Oct-2006 11:45 2.494 kB JanneJalkanen to previous | to last
15 01-Oct-2006 23:33 2.731 kB Henry to previous | to last
14 28-Sep-2006 18:11 2.494 kB JanneJalkanen to previous | to last
13 28-Sep-2006 13:20 2.567 kB ali to previous | to last
12 04-Nov-2004 09:34 2.494 kB MinusDee to previous | to last
11 04-Nov-2004 07:16 0.156 kB 200.147.102.22 to previous | to last
10 14-Jul-2004 21:49 2.494 kB HeinzJosefLücking to previous | to last
9 14-Jul-2004 21:44 2.275 kB HeinzJosefLücking to previous | to last
8 14-Jul-2004 21:42 2.275 kB HeinzJosefLücking to previous | to last
7 27-Jun-2004 20:27 2.277 kB HeinzJosefLücking to previous | to last
6 27-Jun-2004 16:42 2.256 kB HeinzJosefLücking to previous | to last
5 27-Jun-2004 16:38 2.252 kB HeinzJosefLücking to previous | to last
4 27-Jun-2004 16:33 2.111 kB HeinzJosefLücking to previous | to last
3 27-Jun-2004 16:32 1.947 kB HeinzJosefLücking to previous | to last
2 27-Jun-2004 16:19 1.79 kB HeinzJosefLücking to previous | to last
1 27-Jun-2004 16:18 1.742 kB HeinzJosefLücking to last
« This page (revision-18) was last changed on 11-Oct-2006 16:10 by NascifAbousalhNeto