Commits

Anonymous committed c4a5561

i18n now looks for hierarchy of package.properties as well

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@396573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (3)

src/example/com/opensymphony/webwork/example/counter/SimpleCounter.java

 package com.opensymphony.webwork.example.counter;
 
 import com.opensymphony.xwork.Action;
+import com.opensymphony.xwork.ActionSupport;
 
 
 /**
  * @author $Author$
  * @version $Revision$
  */
-public class SimpleCounter implements Action, CounterAware {
+public class SimpleCounter extends ActionSupport implements CounterAware {
     //~ Instance fields ////////////////////////////////////////////////////////
 
     private Counter counter;

src/example/com/opensymphony/webwork/example/counter/package.properties

+packageLevelKey = This is a package-level resource bundle!

src/webapp/success.jsp

 <%@ taglib uri="webwork" prefix="ww" %>
 <%@ taglib uri="c" prefix="c" %>
 
-This url is: <ww:url/>
+This url is: <ww:url/> <br/>
+A package-level i18n key is: <ww:text name="'packageLevelKey'"/>
 
 <hr>