[seam-commits] Seam SVN: r13259 - in examples/trunk/booking-simplified/src/main: webapp and 1 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Jun 18 17:41:05 EDT 2010


Author: lincolnthree
Date: 2010-06-18 17:41:05 -0400 (Fri, 18 Jun 2010)
New Revision: 13259

Modified:
   examples/trunk/booking-simplified/src/main/resources/messages.properties
   examples/trunk/booking-simplified/src/main/resources/messages_de.properties
   examples/trunk/booking-simplified/src/main/webapp/WEB-INF/layout/template.xhtml
   examples/trunk/booking-simplified/src/main/webapp/home.xhtml
Log:
i18n'd the home page and template

Modified: examples/trunk/booking-simplified/src/main/resources/messages.properties
===================================================================
--- examples/trunk/booking-simplified/src/main/resources/messages.properties	2010-06-18 21:29:26 UTC (rev 13258)
+++ examples/trunk/booking-simplified/src/main/resources/messages.properties	2010-06-18 21:41:05 UTC (rev 13259)
@@ -13,3 +13,21 @@
 identity.loggedOut=You have successfully ended your session.
 identity.loggedIn=You're signed in as {0}.
 identity.loginFailed=Invalid username or password.
+
+home_header=About this example application
+home_body=This sample application demonstrates how easy it is to develop stateful web applications using Java EE 6 augmented with portable Seam modules. Just register, login, and book a room to see the future of Java EE in action. Throughout the application you'll see notes in the sidebar that explain how this platform helps you meet enterprise application requirements.
+home_note=Note: Please do NOT enter personal information or your credit card number in this sample application.
+home_usernameLabel=Username
+home_passwordLabel=Password
+home_loginAction=Login
+home_registerAction=Register New User
+home_useDemoAccount=Or use a demo account:
+
+template_linkHome=Home
+template_linkHotels=Find a Hotel
+template_linkLogin=Login
+template_linkAccount=Account
+template_linkLogout=Logout
+
+template_createdWith=Created with Seam 3.0, CDI 1.0, EJB 3.1, JSF 2.0 and PrettyFaces
+template_currentConversation=Current conversation

Modified: examples/trunk/booking-simplified/src/main/resources/messages_de.properties
===================================================================
--- examples/trunk/booking-simplified/src/main/resources/messages_de.properties	2010-06-18 21:29:26 UTC (rev 13258)
+++ examples/trunk/booking-simplified/src/main/resources/messages_de.properties	2010-06-18 21:41:05 UTC (rev 13259)
@@ -12,4 +12,20 @@
 registration.invalid=Ungültige Anmeldung. Bitte korrigieren Sie den Fehler und versuchen Sie es erneut.
 identity.loggedOut=Sie erfolgreich Ihre Sitzung beendet haben.
 identity.loggedIn=Du bist angemeldet als unterzeichneten {0}.
-identity.loginFailed=Ungültiger Benutzername oder Kennwort.
\ No newline at end of file
+identity.loginFailed=Ungültiger Benutzername oder Kennwort.
+
+home_header=Über dieses Beispiel-Anwendung
+home_body=Dieses Beispiel demonstriert, wie einfach es ist, EE-Module zu entwickeln stateful Web-Applikationen mit Java 6 mit tragbaren Augmented Seam.  Just register, login, and book a room to see the future of Java EE in action.  Einfach registrieren, einloggen, und buchen Sie ein Zimmer zum Handeln sieht die Zukunft von Java EE in. Throughout the application you'll see notes in the sidebar that explain how this platform helps you meet enterprise application requirements. Während der Anwendung, die Sie in der Seitenleiste sehen Noten, die erklären, wie diese Plattform hilft Ihnen, Enterprise Application Anforderungen.
+home_note=HINWEIS: Bitte keine persönlichen Daten oder Ihre Kreditkartennummer in dieser Beispielanwendung in Kraft.
+home_usernameLabel=Benutzername
+home_passwordLabel=Kennwort
+home_loginAction=Einloggen
+home_registerAction=Neuen Benutzer registrieren
+home_useDemoAccount=Oder verwenden Sie einen Demo-Account:
+
+template_linkHome=Home
+template_linkHotels=Suchen Sie ein Hotel
+template_linkLogin=Einloggen
+
+template_createdWith=Erstellt mit Seam 3.0, CDI 1.0, EJB 3.1, JSF 2.0 und PrettyFaces
+template_currentConversation=Aktuelle Gespräch

Modified: examples/trunk/booking-simplified/src/main/webapp/WEB-INF/layout/template.xhtml
===================================================================
--- examples/trunk/booking-simplified/src/main/webapp/WEB-INF/layout/template.xhtml	2010-06-18 21:29:26 UTC (rev 13258)
+++ examples/trunk/booking-simplified/src/main/webapp/WEB-INF/layout/template.xhtml	2010-06-18 21:41:05 UTC (rev 13259)
@@ -21,18 +21,18 @@
                <div id="status">
                   <h:outputText value="(#{currentUser.name})" rendered="#{identity.loggedIn}" styleClass="user"/>
                   #{' '}
-                  <pretty:link mappingId="home">Home</pretty:link>
+                  <pretty:link mappingId="home">#{bundles.messages.template_linkHome}</pretty:link>
                   #{' | '}
-                  <h:link id="search" outcome="/search.xhtml" value="Find a Hotel"/>
+                  <h:link id="search" outcome="/search.xhtml" value="#{bundles.messages.template_linkHotels}"/>
                   <h:panelGroup rendered="#{not identity.loggedIn}">
                      #{' | '}
-	                  <pretty:link mappingId="home">Login</pretty:link>
+	                  <pretty:link mappingId="home">#{bundles.messages.template_linkLogin}</pretty:link>
                   </h:panelGroup>
                   <h:panelGroup rendered="#{identity.loggedIn}">
                      #{' | '}
-                     <pretty:link mappingId="account">Account</pretty:link>
+                     <pretty:link mappingId="account">#{bundles.messages.template_linkAccount}</pretty:link>
                      #{' | '}
-                     <pretty:link mappingId="logout">Logout</pretty:link>
+                     <pretty:link mappingId="logout">#{bundles.messages.template_linkLogout}</pretty:link>
                   </h:panelGroup>
                </div>
             </h:form>
@@ -46,8 +46,8 @@
             </div>
          </div>
          <div id="footer">
-            Created with Seam 3.0, CDI 1.0, EJB 3.1 and JSF 2.0<br/>
-            Current conversation: #{conversation.transient ? 'transient' : 'long-running, id: '.concat(conversation.id)}
+            #{bundles.messages.template_createdWith}<br/>
+            #{bundles.messages.template_currentConversation}: #{conversation.transient ? 'transient' : 'long-running, id: '.concat(conversation.id)}
          </div>
       </div>
    </h:body>

Modified: examples/trunk/booking-simplified/src/main/webapp/home.xhtml
===================================================================
--- examples/trunk/booking-simplified/src/main/webapp/home.xhtml	2010-06-18 21:29:26 UTC (rev 13258)
+++ examples/trunk/booking-simplified/src/main/webapp/home.xhtml	2010-06-18 21:41:05 UTC (rev 13259)
@@ -11,18 +11,11 @@
    <ui:define name="content">
       <div class="section">
 
-         <h1>About this example application</h1>
+         <h1>#{bundles.messages.home_header}</h1>
 
-         <p>
-            This sample application demonstrates how easy it is to develop stateful web applications using Java EE 6
-            augmented with portable Seam modules. Just register, login, and book a room to see the future of Java EE in
-            action. Throughout the application you'll see notes in the sidebar that explain how this platform helps you
-            meet enterprise application requirements.
-         </p>
+         <p>#{bundles.messages.home_body}</p>
 
-         <p>
-            Note: Please do NOT enter personal information or your credit card number in this sample application.
-         </p>
+         <p>#{bundles.messages.home_note}</p>
 
          <!--
          <p>
@@ -45,19 +38,19 @@
       <h:form id="login" rendered="#{not identity.loggedIn}">
          <fieldset>
             <div>
-               <h:outputLabel for="username" value="Username"/>
+               <h:outputLabel for="username" value="#{bundles.messages.home_usernameLabel}"/>
                <h:inputText id="username" value="#{credentials.username}" style="width: 175px;"/>
                <div class="errors"><h:message for="username"/></div>
             </div>
             <div>
-               <h:outputLabel for="password" value="Password"/>
+               <h:outputLabel for="password" value="#{bundles.messages.home_passwordLabel}"/>
                <h:inputSecret id="password" value="#{credentials.password}" style="width: 175px;"/>
             </div>
             <div class="errors"><h:messages id="messages" globalOnly="true"/></div>
-            <div class="buttonBox"><h:commandButton id="login" action="#{identity.login}" value="Login"/></div>
-            <div class="notes"><h:link id="register" outcome="/register.xhtml" value="Register New User"/></div>
+            <div class="buttonBox"><h:commandButton id="login" action="#{identity.login}" value="#{bundles.messages.home_loginAction}"/></div>
+            <div class="notes"><h:link id="register" outcome="/register.xhtml" value="#{bundles.messages.home_registerAction}"/></div>
             <div class="subnotes">
-               Or use a demo account:
+               #{bundles.messages.home_useDemoAccount}
                <ul>
                   <li>gavin/mexico</li>
                   <li>pete/edinburgh</li>



More information about the seam-commits mailing list