taylor      2004/08/08 21:35:58

  Modified:    applications/demo/src/webapp/WEB-INF/demo/simple
                        PickANumberHelp.jsp PickANumber.jsp
                        PickANumberEdit.jsp
               applications/demo project.xml
  Added:       applications/demo/src/java/org/apache/jetspeed/demo/simple/resources
                        PickANumberResources_en.properties
                        PickANumberResources.properties
                        PickANumberResources_fr.properties
                        PickANumberResources_ja.properties
  Log:
  example of using language resource property files in a portlet - here we have 
japanese, english and french for the pick a number portlet
  
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.1                  
jakarta-jetspeed-2/applications/demo/src/java/org/apache/jetspeed/demo/simple/resources/PickANumberResources_en.properties
  
  Index: PickANumberResources_en.properties
  ===================================================================
  # Copyright 2004 The Apache Software Foundation
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  # 
  #     http://www.apache.org/licenses/LICENSE-2.0
  # 
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  # $Id: PickANumberResources_en.properties,v 1.1 2004/08/09 04:35:57 taylor Exp $
  
  # PickANumber.jsp
  pickanumber.label.pickanumberguess=Pick a Number Guess Count Game
  pickanumber.label.guessthusfar=You have made {0} guess thus far.
  pickanumber.label.startnewgame=Start a new Game now!
  pickanumber.label.enternumber=Enter a number between 1 and {0}
  pickanumber.label.readytostartanewgame=Ready to start a New game.
  pickanumber.label.guessiscorrect={0} is correct! You have guessed the number in {1} 
guesses!!!!
  pickanumber.label.guessedtohigh=You have guessed to high.  Try a lower Number
  pickanumber.label.guessedtolow=You have guessed to low.  Try a higher Number
  pickanumber.label.guess=Guess
  
  # PickANumberEdit.jsp
  pickanumber.edit.label.highendofguessrange=High End of Guess Range: [2..]:
  pickanumber.edit.label.save=Save
  
  # PickANumberHelp.jsp
  pickanumber.help.label.thisishelppage=This is the Help Page for the PickANumber demo 
portlet
  pickanumber.help.label.instructions=Instructions
  pickanumber.help.label.thisportletsrunsthepopularguessinggame=This portlet runs the 
popular 'Pick A Number' guessing game.\
  The goal is to guess, in the least number of guesses, a number between [1..{Range}]:
  pickanumber.help.label.whererangeis=where {Range} is the highest possible number
  pickanumber.help.label.where1is=where '1' is always the lowest possible number.
  pickanumber.help.label.winning=Winning
  pickanumber.help.label.whoeverguesses=Who ever guesses in the lowest number of 
guesses wins.
  pickanumber.help.label.taketurnwithyourfriends= Take turns with your friends playing 
this action packed game.\
   This game is sure to provide endless hours of amusement! 
  pickanumber.help.label.preferences=Preferences
  pickanumber.help.label.thisportlethasonepreference=This portlet has one preference: 
the <b>Range</b>, which defaults to 100.\
  This default value can be overridden as a preference for each portlet entity.\
  Select Edit mode to change top range value.
  
  
  
  
  
  
  
  1.1                  
jakarta-jetspeed-2/applications/demo/src/java/org/apache/jetspeed/demo/simple/resources/PickANumberResources.properties
  
  Index: PickANumberResources.properties
  ===================================================================
  # Copyright 2004 The Apache Software Foundation
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  # 
  #     http://www.apache.org/licenses/LICENSE-2.0
  # 
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  # $Id: PickANumberResources.properties,v 1.1 2004/08/09 04:35:57 taylor Exp $
  
  # PickANumber.jsp
  pickanumber.label.pickanumberguess=Pick a Number Guess Count Game
  pickanumber.label.guessthusfar=You have made {0} guess thus far.
  pickanumber.label.startnewgame=Start a new Game now!
  pickanumber.label.enternumber=Enter a number between 1 and {0}
  pickanumber.label.readytostartanewgame=Ready to start a New game.
  pickanumber.label.guessiscorrect={0} is correct! You have guessed the number in {1} 
guesses!!!!
  pickanumber.label.guessedtohigh=You have guessed to high.  Try a lower Number
  pickanumber.label.guessedtolow=You have guessed to low.  Try a higher Number
  pickanumber.label.guess=Guess
  
  # PickANumberEdit.jsp
  pickanumber.edit.label.highendofguessrange=High End of Guess Range: [2..]:
  pickanumber.edit.label.save=Save
  
  # PickANumberHelp.jsp
  pickanumber.help.label.thisishelppage=This is the Help Page for the PickANumber demo 
portlet
  pickanumber.help.label.instructions=Instructions
  pickanumber.help.label.thisportletsrunsthepopularguessinggame=This portlet runs the 
popular 'Pick A Number' guessing game.\
  The goal is to guess, in the least number of guesses, a number between [1..{Range}]:
  pickanumber.help.label.whererangeis=where {Range} is the highest possible number
  pickanumber.help.label.where1is=where '1' is always the lowest possible number.
  pickanumber.help.label.winning=Winning
  pickanumber.help.label.whoeverguesses=Who ever guesses in the lowest number of 
guesses wins.
  pickanumber.help.label.taketurnwithyourfriends= Take turn with your friends playing 
this action packed game.\
   This game is sure to provide endless hours of amusement! 
  pickanumber.help.label.preferences=Preferences
  pickanumber.help.label.thisportlethasonepreference=This portlet has one preference: 
the <b>Range</b>, which defaults to 100.\
  This default value can be overridden as a preference for each portlet entity.\
  Select Edit mode to change top range value.
  
  
  
  
  
  
  
  1.1                  
jakarta-jetspeed-2/applications/demo/src/java/org/apache/jetspeed/demo/simple/resources/PickANumberResources_fr.properties
  
  Index: PickANumberResources_fr.properties
  ===================================================================
  # Copyright 2004 The Apache Software Foundation
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  # 
  #     http://www.apache.org/licenses/LICENSE-2.0
  # 
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  # $Id: PickANumberResources_fr.properties,v 1.1 2004/08/09 04:35:57 taylor Exp $
  
  # PickANumber.jsp
  pickanumber.label.pickanumberguess=Le Jeu du Devinette du Nombre Choisi 
  pickanumber.label.guessthusfar=Vous avez fait {0} choix jusqu'a present.
  pickanumber.label.startnewgame=Commencez un nouveau Jeu maintenant!
  pickanumber.label.enternumber=Introduisez un nombre entre 1 et {0}
  pickanumber.label.readytostartanewgame=Pret pour commencer un nouveau jeu.
  pickanumber.label.guessiscorrect={0} est correct! Vous avez devine le nombre en {1} 
essai(s)!!!!
  pickanumber.label.guessedtohigh=Vous avez devine trop haut.  Essayez un nombre plus 
petit.
  pickanumber.label.guessedtolow=Vous avez devine trop bas.  Essayez un nombre plus 
grande.
  pickanumber.label.guess=Deviner
  
  # PickANumberEdit.jsp
  pickanumber.edit.label.highendofguessrange=Nombre Maximum de la Ligne de Nombres: 
[2..]:
  pickanumber.edit.label.save=Sauvez
  
  # PickANumberHelp.jsp
  pickanumber.help.label.thisishelppage=Ceci est la Page pour Aider pour le 
ChoisissezUnNombre demo portlet
  pickanumber.help.label.instructions=Instructions
  pickanumber.help.label.thisportletsrunsthepopularguessinggame=Ce portlet execute le 
populaire 'Choisissez Un Nombre' le jeu de devinette.\
  Le but est de deviner, en un minimum de choix, un nombre entre [1..{Range}]:
  pickanumber.help.label.whererangeis=ou {Range} est le plus grande nombre possible.
  pickanumber.help.label.where1is=ou '1' est toujours le plus petit nombre possible.
  pickanumber.help.label.winning=Gagnant
  pickanumber.help.label.whoeverguesses=Celui qui devine en posant le plus petit 
nombre de questions gagne.
  pickanumber.help.label.taketurnwithyourfriends= Prenez votre tour avec vos amis pour 
jouer ce jeu delirant.\
   Ce jeu est sur de pourvoir des heures entieres d'amusements! 
  pickanumber.help.label.preferences=Preferences
  pickanumber.help.label.thisportlethasonepreference=Ce portlet a un preference: le 
<b>Rang</b>, qui a le modele 100.\
  Cette valeur modele peut etre changer a votre preference pour chaque portlet entity.\
  Choisissez Edit mode pour changer le nombre maximum.
  
  
  
  
  
  
  
  1.1                  
jakarta-jetspeed-2/applications/demo/src/java/org/apache/jetspeed/demo/simple/resources/PickANumberResources_ja.properties
  
  Index: PickANumberResources_ja.properties
  ===================================================================
  # Copyright 2004 The Apache Software Foundation
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  # 
  #     http://www.apache.org/licenses/LICENSE-2.0
  # 
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  # $Id: PickANumberResources_ja.properties,v 1.1 2004/08/09 04:35:57 taylor Exp $
  
  # PickANumber.jsp
  
pickanumber.label.pickanumberguess=\u6570\u5F53\u3066\u30AB\u30A6\u30F3\u30C8\u30B2\u30FC\u30E0
  
pickanumber.label.guessthusfar=\u3053\u308C\u307E\u3067\u306E\u4E88\u60F3\u56DE\u6570\u306F
 {0} \u3067\u3059\u3002
  
pickanumber.label.startnewgame=\u3055\u3041\u3001\u65B0\u3057\u3044\u30B2\u30FC\u30E0\u3092\u306F\u3058\u3081\u307E\u3057\u3087\u3046\u3002
  pickanumber.label.enternumber=1 \u304B\u3089 {0} 
\u307E\u3067\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002
  
pickanumber.label.readytostartanewgame=\u65B0\u898F\u30B2\u30FC\u30E0\u306E\u6E96\u5099\u304C\u3067\u304D\u307E\u3057\u305F\u3002
  pickanumber.label.guessiscorrect={0} \u306F\u6B63\u89E3\u3067\u3059\u3002{1} 
\u56DE\u3067\u4E88\u60F3\u3057\u307E\u3057\u305F\u3002
  
pickanumber.label.guessedtohigh=\u305D\u306E\u4E88\u60F3\u306F\u5927\u304D\u3044\u3067\u3059\u3002\u3082\u3063\u3068\u5C0F\u3055\u3044\u5024\u3092\u8A66\u3057\u3066\u306D\u3002
  
pickanumber.label.guessedtolow=\u305D\u306E\u4E88\u60F3\u306F\u5C0F\u3055\u3044\u3067\u3059\u3002\u3082\u3063\u3068\u5927\u304D\u306A\u5024\u3092\u8A66\u3057\u3066\u306D\u3002
  pickanumber.label.guess=\u4E88\u60F3
  
  # PickANumberEdit.jsp
  
pickanumber.edit.label.highendofguessrange=\u4E88\u6E2C\u7BC4\u56F2\u306E\u6700\u5927\u5024:
 [2..]:
  pickanumber.edit.label.save=\u4FDD\u5B58
  
  # PickANumberHelp.jsp
  
pickanumber.help.label.thisishelppage=\u3053\u308C\u306F\u6570\u5F53\u3066\u30B2\u30FC\u30E0\u30C7\u30E2\u30DD\u30FC\u30C8\u30EC\u30C3\u30C8\u306E\u30D8\u30EB\u30D7\u30DA\u30FC\u30B8\u3067\u3059\u3002
  pickanumber.help.label.instructions=\u4F7F\u3044\u65B9
  
pickanumber.help.label.thisportletsrunsthepopularguessinggame=\u3053\u306E\u30DD\u30FC\u30C8\u30EC\u30C3\u30C8\u306F\u4E00\u822C\u7684\u306A\u300C\u6570\u5F53\u3066\u30B2\u30FC\u30E0\u300D\u3092\u5B9F\u884C\u3057\u307E\u3059\u3002\
  \u5C11\u306A\u3044\u56DE\u6570\u3067\u30011 \u304B\u3089 {Range} 
\u306E\u7BC4\u56F2\u306E\u5024\u3092\u4E88\u60F3\u3059\u308B\u30B2\u30FC\u30E0\u3067\u3059\u3002
  pickanumber.help.label.whererangeis=\u30FB{Range} 
\u306F\u4E88\u60F3\u7BC4\u56F2\u306E\u6700\u5927\u5024
  pickanumber.help.label.where1is=\u30FB'1' 
\u306F\u4E88\u60F3\u7BC4\u56F2\u306E\u6700\u5C0F\u5024
  pickanumber.help.label.winning=\u52DD\u6557
  
pickanumber.help.label.whoeverguesses=\u3082\u3063\u3068\u3082\u5C11\u306A\u3044\u56DE\u6570\u3067\u4E88\u60F3\u3057\u305F\u4EBA\u304C\u52DD\u3061\u3067\u3059\u3002
  
pickanumber.help.label.taketurnwithyourfriends=\u53CB\u9054\u3068\u9806\u756A\u3067\u3053\u306E\u30B2\u30FC\u30E0\u3092\u3057\u307E\u3057\u3087\u3046\u3002\
  
\u3053\u306E\u30B2\u30FC\u30E0\u3092\u3057\u3066\u3044\u308B\u3068\u6642\u9593\u304C\u305F\u3064\u306E\u3092\u5FD8\u308C\u3066\u3057\u307E\u3046\u3067\u3057\u3087\u3046\u266A
  pickanumber.help.label.preferences=\u8A2D\u5B9A
  
pickanumber.help.label.thisportlethasonepreference=\u3053\u306E\u30DD\u30FC\u30C8\u30EC\u30C3\u30C8\u3067\u306F\u8A2D\u5B9A\u5024\u304C\uFF11\u3064\u3042\u308A\u307E\u3059\u3002\u305D\u306E\u8A2D\u5B9A\u5024\u3001<b>\u7BC4\u56F2</b>\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u5024\u306F100\u3067\u3059\u3002\
  
\u3053\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u5024\u306F\u3001\u5404\u30DD\u30FC\u30C8\u30EC\u30C3\u30C8\u306E\u30A8\u30F3\u30C6\u30A3\u30C6\u30A3\u306E\u8A2D\u5B9A\u3068\u3057\u3066\u3001\u4E0A\u66F8\u304D\u3067\u304D\u307E\u3059\u3002\
  
\u7DE8\u96C6\u30E2\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u3001\u7BC4\u56F2\u306E\u4E0A\u9650\u5024\u3092\u5909\u66F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002
  
  
  
  1.4       +12 -14    
jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/demo/simple/PickANumberHelp.jsp
  
  Index: PickANumberHelp.jsp
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/demo/simple/PickANumberHelp.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PickANumberHelp.jsp       25 Jun 2004 07:22:09 -0000      1.3
  +++ PickANumberHelp.jsp       9 Aug 2004 04:35:57 -0000       1.4
  @@ -13,34 +13,32 @@
   See the License for the specific language governing permissions and
   limitations under the License.
   --%>
  +<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>
  +<fmt:setBundle 
basename="org.apache.jetspeed.demo.simple.resources.PickANumberResources" />
   <hr/>
  -<h2>This is the Help Page for the PickANumber demo portlet</h2>
  +<h2><fmt:message key="pickanumber.help.label.thisishelppage"/></h2>
   <hr/>
  -<h3>Instructions</h3>
  +<h3><fmt:message key="pickanumber.help.label.instructions"/></h3>
   <p>
  -This portlet runs the popular 'Pick A Number' guessing game.
  -The goal is to guess, in the least number of guesses, a number between [1..{Range}]:
  +<fmt:message key="pickanumber.help.label.thisportletsrunsthepopularguessinggame"/>
   </p>
   <p>
  -where {Range} is the highest possible number<br/>
  -where '1' is always the lowest possible number.<br/>
  +<fmt:message key="pickanumber.help.label.whererangeis"/><br/>
  +<fmt:message key="pickanumber.help.label.where1is"/><br/>
   </p>
  -<h4>Winning</h4>
  +<h4><fmt:message key="pickanumber.help.label.winning"/></h4>
   <p>
  - Who ever guesses in the lowest number of guesses wins.
  +<fmt:message key="pickanumber.help.label.whoeverguesses"/>
   </p>
   <p> 
  - Take turn with your friends playing this action packed game.
  - This game is sure to provide endless hours of amusement! 
  +<fmt:message key="pickanumber.help.label.taketurnwithyourfriends"/>
   </p>
   <p>
   <hr/>
   <h3>
  -Preferences
  +<fmt:message key="pickanumber.help.label.preferences"/>
   </h3>
   <p>
  -This portlet has one preference: the <b>Range</b>, which defaults to 100.
  -This default value can be overridden as a preference for each portlet entity.
  -Select Edit mode to change top range value.
  +<fmt:message key="pickanumber.help.label.thisportlethasonepreference"/>
   </p>
   
  
  
  
  1.6       +15 -11    
jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/demo/simple/PickANumber.jsp
  
  Index: PickANumber.jsp
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/demo/simple/PickANumber.jsp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PickANumber.jsp   25 Jun 2004 07:22:09 -0000      1.5
  +++ PickANumber.jsp   9 Aug 2004 04:35:57 -0000       1.6
  @@ -15,9 +15,11 @@
   --%>
   <%@ page language="java" session="true" %>
   <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
  +<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>
   <%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
   <%@ page import="javax.portlet.PortletSession"%>
   <portlet:defineObjects/>
  +<fmt:setBundle 
basename="org.apache.jetspeed.demo.simple.resources.PickANumberResources" />
   
   <portlet:actionURL var="myAction">
        <portlet:param name="myParam" value="testParam"/>
  @@ -40,7 +42,7 @@
   <c:set var="topRange" scope="session" value="${TopRange}"/>
   
   <h2>
  -Pick a Number Guess Count Game 
  +<fmt:message key="pickanumber.label.pickanumberguess"/>
   </h2>
   
   <c:choose>
  @@ -49,19 +51,21 @@
   <c:when test="${targetValue == lastGuess}">
   </c:when>
   <c:otherwise>
  -You have made <c:out value="${guessCount}"/> guess thus far.
  +<fmt:message key="pickanumber.label.guessthusfar">
  +     <fmt:param><c:out value="${guessCount}"/></fmt:param>
  +</fmt:message>
   </c:otherwise>
   </c:choose>
   
   <c:choose>
   <c:when test="${targetValue == lastGuess}">
   <p>
  -Start a new Game now!<br/>Enter a number between 1 and <c:out value="${TopRange}"/>
  +<fmt:message key="pickanumber.label.startnewgame"/><br/><fmt:message 
key="pickanumber.label.enternumber"><fmt:param><c:out 
value="${TopRange}"/></fmt:param></fmt:message>
   </p>
   </c:when>
   <c:otherwise>
   <p>
  -Enter a number between 1 and <c:out value="${TopRange}"/>
  +<fmt:message key="pickanumber.label.enternumber"><fmt:param><c:out 
value="${TopRange}"/></fmt:param></fmt:message>
   </p>
   </c:otherwise>
   </c:choose>
  @@ -69,29 +73,29 @@
   <p>
     <c:choose>
       <c:when test="${empty targetValue}">
  -       Ready to start a New game.
  +       <fmt:message key="pickanumber.label.readytostartanewgame"/>
       </c:when>  
       <c:when test="${empty lastGuess}">
  -       Ready to start a New game.
  +       <fmt:message key="pickanumber.label.readytostartanewgame"/>
       </c:when>      
       <c:when test="${targetValue == lastGuess}">
  -      <center><strong><%=lastGuess%> is correct! You have guessed the number in 
<c:out value="${guessCount}"/> guesses!!!!</strong></center>
  +      <center><strong><fmt:message 
key="pickanumber.label.guessiscorrect"><fmt:param><%=lastGuess%></fmt:param><fmt:param><c:out
 value="${guessCount}"/></fmt:param></fmt:message></strong></center>
         <c:remove var="targetValue" scope="session"/> 
       </c:when>
       <c:when test="${targetValue < lastGuess}">
  -      You have guessed to high.  Try a lower Number 
  +      <fmt:message key="pickanumber.label.guessedtohigh"/>
       </c:when>
       <c:when test="${targetValue > lastGuess}">
  -      You have guessed to low.  Try a higher Number
  +      <fmt:message key="pickanumber.label.guessedtolow"/>
       </c:when>
       <c:otherwise>
  -       Ready to start a New game.    
  +       <fmt:message key="pickanumber.label.readytostartanewgame"/>
       </c:otherwise>
     </c:choose>
   </p>
   <p>
     <form action="<%=myAction%>" method="POST">
       <input type="text" name="Guess" value="<%=lastGuess%>"/>
  -    <input type="submit" value='Guess'/>
  +    <input type="submit" value='<fmt:message key="pickanumber.label.guess"/>'/>
     </form>
   </p>
  
  
  
  1.2       +4 -2      
jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/demo/simple/PickANumberEdit.jsp
  
  Index: PickANumberEdit.jsp
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/demo/simple/PickANumberEdit.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PickANumberEdit.jsp       25 Jun 2004 07:22:09 -0000      1.1
  +++ PickANumberEdit.jsp       9 Aug 2004 04:35:57 -0000       1.2
  @@ -15,9 +15,11 @@
   --%>
   <%@ page language="java" session="true" %>
   <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
  +<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>
   <%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
   <%@ page import="javax.portlet.PortletSession"%>
   <portlet:defineObjects/>
  +<fmt:setBundle 
basename="org.apache.jetspeed.demo.simple.resources.PickANumberResources" />
   
   <portlet:actionURL var="editAction">
   </portlet:actionURL>
  @@ -29,9 +31,9 @@
   <div>
     <br/>
     <form action="<%=editAction%>" method="POST">  
  -    High End of Guess Range: [2..]:
  +    <fmt:message key="pickanumber.edit.label.highendofguessrange"/>
       <input type="text" name="TopRange" value="<%=topRange%>">
  -    <input type="submit" value='Save'> 
  +    <input type="submit" value='<fmt:message key="pickanumber.edit.label.save"/>'> 
     </form>  
   </div>
   
  
  
  
  1.16      +10 -2     jakarta-jetspeed-2/applications/demo/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/demo/project.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- project.xml       24 Jul 2004 11:13:36 -0000      1.15
  +++ project.xml       9 Aug 2004 04:35:58 -0000       1.16
  @@ -32,7 +32,7 @@
       </dependency>
       <dependency>
         <id>taglibs:standard</id>
  -      <version>1.0.2</version>
  +      <version>1.0.4</version>
         <properties>
           <war.bundle>true</war.bundle>
         </properties>
  @@ -98,6 +98,14 @@
   
     <build>
       <sourceDirectory>src/java</sourceDirectory>
  +    <resources>
  +      <resource>
  +        <directory>${basedir}/src/java/</directory>
  +        <includes>
  +          <include>**/*.properties</include>
  +        </includes>
  +      </resource>
  +    </resources>
     </build>
   
     <reports>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to