continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r357003 - in /maven/continuum/trunk/continuum-webapp: pom.xml src/main/resources/localization/ src/main/resources/localization/Continuum.properties src/main/webapp/about.jsp src/main/webapp/summary.jsp
Date Thu, 15 Dec 2005 11:00:21 GMT
Author: evenisse
Date: Thu Dec 15 03:00:15 2005
New Revision: 357003

URL: http://svn.apache.org/viewcvs?rev=357003&view=rev
Log:
Add i18n

Added:
    maven/continuum/trunk/continuum-webapp/src/main/resources/localization/
    maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
  (with props)
Modified:
    maven/continuum/trunk/continuum-webapp/pom.xml
    maven/continuum/trunk/continuum-webapp/src/main/webapp/about.jsp
    maven/continuum/trunk/continuum-webapp/src/main/webapp/summary.jsp

Modified: maven/continuum/trunk/continuum-webapp/pom.xml
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/pom.xml?rev=357003&r1=357002&r2=357003&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/pom.xml (original)
+++ maven/continuum/trunk/continuum-webapp/pom.xml Thu Dec 15 03:00:15 2005
@@ -9,6 +9,23 @@
   <name>Continuum Web APP</name>
   <version>1.1-SNAPSHOT</version>
   <packaging>war</packaging>
+  <build>
+    <resources>
+      <resource>
+        <filtering>true</filtering>
+        <directory>src/main/resources</directory>
+        <includes>
+          <include>**/*.properties</include>
+        </includes>
+      </resource>
+      <resource>
+        <directory>src/main/resources</directory>
+        <excludes>
+          <exclude>**/*.properties</exclude>
+        </excludes>
+      </resource>
+    </resources>
+  </build>
   <dependencies>
     <dependency>
       <groupId>org.apache.maven.continuum</groupId>

Added: maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties?rev=357003&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
(added)
+++ maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
Thu Dec 15 03:00:15 2005
@@ -0,0 +1,23 @@
+// ----------------------------------------------------------------------
+// COMMONS
+// ----------------------------------------------------------------------
+message.success = Success
+message.failed = Failed
+message.error = Error
+
+// ----------------------------------------------------------------------
+// Page: About
+// ----------------------------------------------------------------------
+about.page.title = Continuum - About
+about.section.title = About Continuum
+about.version = Version : ${project.version}
+
+// ----------------------------------------------------------------------
+// Page: Summary
+// ----------------------------------------------------------------------
+summary.page.title = Continuum - Summary
+summary.section.title = Continuum Projects
+summary.projectTable.name = Name
+summary.projectTable.version = Version
+summary.projectTable.build = Build
+summary.projectTable.group = Group

Propchange: maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/about.jsp
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/about.jsp?rev=357003&r1=357002&r2=357003&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/about.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/about.jsp Thu Dec 15 03:00:15 2005
@@ -1,11 +1,16 @@
+<%@ taglib uri="webwork" prefix="ww" %>
 <html>
+  <ww:i18n name="localization.Continuum">
     <head>
-        <title>Continuum - About</title>
+        <title><ww:text name="about.page.title"/></title>
     </head>
     <body>
       <div id="axial" class="h3">
-        <h3>About Continuum</h3>
-        <p> Version: ${project.version}
+        <h3><ww:text name="about.section.title"/></h3>
+        <p>
+            <ww:text name="about.version"/>
+        </p>
       </div>
     </body>
+  </ww:i18n>
 </html>

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/summary.jsp
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/summary.jsp?rev=357003&r1=357002&r2=357003&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/summary.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/summary.jsp Thu Dec 15 03:00:15
2005
@@ -1,28 +1,30 @@
 <%@ taglib uri="webwork" prefix="ww" %>
 <html>
+  <ww:i18n name="localization.Continuum">
     <head>
-        <title>Continuum - Summary</title>
+        <title><ww:text name="summary.page.title"/></title>
     </head>
     <body>
       <div id="h3">
-        <h3>Continuum Projects</h3>
+        <h3><ww:text name="summary.section.title"/></h3>
         <table border="1" cellspacing="2" cellpadding="3" width="100%" id="projectSummaryTable">
     
           <!-- i18n -->
           <tbody><tr>
             <th>&nbsp;</th>
-            <th width="100%">Name</th>
-            <th>Version</th>
-            <th>Build</th>
-            <th>Group</th>
+            <th width="100%"><ww:text name="summary.projectTable.name"/></th>
+            <th><ww:text name="summary.projectTable.version"/></th>
+            <th><ww:text name="summary.projectTable.build"/></th>
+            <th><ww:text name="summary.projectTable.group"/></th>
             <th colspan="7"></th>
           </tr>
         </table>
         <div class="functnbar3">
-          <img src="<ww:url value="/images/icon_success_sml.gif"/>" alt="Success"
title="Success"/> <font color="red">TODO</font>
-          <img src="<ww:url value="/images/icon_warning_sml.gif"/>" alt="Failed"
title="Failed"/> <font color="red">TODO</font>
-          <img src="<ww:url value="/images/icon_error_sml.gif"/>" alt="Error" title="Error"/>
<font color="red">TODO</font>
+          <img src="<ww:url value="/images/icon_success_sml.gif"/>" alt="<ww:text
name="message.success"/>" title="<ww:text name="message.success"/>"/> <font
color="red">TODO</font>
+          <img src="<ww:url value="/images/icon_warning_sml.gif"/>" alt="<ww:text
name="message.failed"/>" title="<ww:text name="message.failed"/>"/> <font color="red">TODO</font>
+          <img src="<ww:url value="/images/icon_error_sml.gif"/>" alt="<ww:text
name="message.error"/>" title="<ww:text name="message.error"/>"/> <font color="red">TODO</font>
         </div>
       </div>
     </body>
+  </ww:i18n>
 </html>



Mime
View raw message