jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r731826 - in /jakarta/taglibs/proper/i18n/trunk: ./ doc/ examples/ src/assembly/ src/changes/ src/main/ src/main/resources/ src/main/resources/META-INF/ xdocs/ xml/
Date Tue, 06 Jan 2009 04:37:09 GMT
Author: bayard
Date: Mon Jan  5 20:37:08 2009
New Revision: 731826

URL: http://svn.apache.org/viewvc?rev=731826&view=rev
Log:
Migrating to M2

Added:
    jakarta/taglibs/proper/i18n/trunk/LICENSE.txt
      - copied unchanged from r731456, jakarta/taglibs/proper/taglibs-parent/trunk/LICENSE.txt
    jakarta/taglibs/proper/i18n/trunk/NOTICE.txt   (with props)
    jakarta/taglibs/proper/i18n/trunk/examples/build.xml
      - copied unchanged from r731451, jakarta/taglibs/proper/i18n/trunk/build.xml
    jakarta/taglibs/proper/i18n/trunk/pom.xml   (with props)
    jakarta/taglibs/proper/i18n/trunk/src/assembly/
      - copied from r731451, jakarta/taglibs/proper/datetime/trunk/src/assembly/
    jakarta/taglibs/proper/i18n/trunk/src/changes/
    jakarta/taglibs/proper/i18n/trunk/src/changes/changes.xml   (with props)
    jakarta/taglibs/proper/i18n/trunk/src/main/
    jakarta/taglibs/proper/i18n/trunk/src/main/resources/
    jakarta/taglibs/proper/i18n/trunk/src/main/resources/META-INF/
    jakarta/taglibs/proper/i18n/trunk/src/main/resources/META-INF/taglibs-i18n.tld   (with props)
    jakarta/taglibs/proper/i18n/trunk/xdocs/
    jakarta/taglibs/proper/i18n/trunk/xdocs/index.xml   (with props)
Removed:
    jakarta/taglibs/proper/i18n/trunk/build.xml
    jakarta/taglibs/proper/i18n/trunk/doc/
    jakarta/taglibs/proper/i18n/trunk/xml/

Added: jakarta/taglibs/proper/i18n/trunk/NOTICE.txt
URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/i18n/trunk/NOTICE.txt?rev=731826&view=auto
==============================================================================
--- jakarta/taglibs/proper/i18n/trunk/NOTICE.txt (added)
+++ jakarta/taglibs/proper/i18n/trunk/NOTICE.txt Mon Jan  5 20:37:08 2009
@@ -0,0 +1,5 @@
+Apache Jakarta I18N Taglib
+Copyright 2001-2009 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).

Propchange: jakarta/taglibs/proper/i18n/trunk/NOTICE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jakarta/taglibs/proper/i18n/trunk/pom.xml
URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/i18n/trunk/pom.xml?rev=731826&view=auto
==============================================================================
--- jakarta/taglibs/proper/i18n/trunk/pom.xml (added)
+++ jakarta/taglibs/proper/i18n/trunk/pom.xml Mon Jan  5 20:37:08 2009
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
+-->
+<!-- TODO:
+    Generate the examples war
+-->
+<project
+    xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.taglibs</groupId>
+    <artifactId>taglibs-parent</artifactId>
+    <version>1-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>i18n-taglib</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <name>Jakarta I18N Taglib</name>
+
+  <inceptionYear>2001</inceptionYear>
+  <description>
+The i18n custom tag library contains tags that help manage the complexity of creating internationalized web applications. These tags provide similar (though not identical) functionality to the internationalization available in the struts framework, but do not require adopting the entire struts framework.
+  </description>
+
+  <url>http://jakarta.apache.org/taglibs/doc/i18n-doc/intro.html</url>
+
+  <scm>
+    <connection>scm:svn:http://svn.apache.org/repos/asf/jakarta/taglibs/proper/i18n/trunk</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/jakarta/taglibs/proper/i18n/trunk</developerConnection>
+    <url>http://svn.apache.org/viewvc/jakarta/taglibs/proper/i18n/trunk</url>
+  </scm>
+
+  <developers>
+    <developer>
+      <name>Time Dawson</name>
+    </developer>
+    <developer>
+      <name>James Strachan</name>
+      <id>glenn</id>
+    </developer>
+  </developers>
+
+  <dependencies>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>2.4</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.0</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies> 
+
+</project>

Propchange: jakarta/taglibs/proper/i18n/trunk/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jakarta/taglibs/proper/i18n/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/i18n/trunk/src/changes/changes.xml?rev=731826&view=auto
==============================================================================
--- jakarta/taglibs/proper/i18n/trunk/src/changes/changes.xml (added)
+++ jakarta/taglibs/proper/i18n/trunk/src/changes/changes.xml Mon Jan  5 20:37:08 2009
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<document>
+  <properties>
+    <title>DateTime Taglib changes</title>
+  </properties>
+  <body>
+
+<release version="Development" date="01/11/2003" description="Fixed a NullPointerException in MessageTag which occured sometimes when gettting the ResourceBundle. "/>
+
+<release version="Development" date="12/16/2002" description="Went through all the bugzilla bug reports and applied patches and fixed bugs in the message, bundle, and locale tags.  Many of the bug fixes were related to this taglib working in JSP containers which implement custom tag pooling. No new features or enhancement requests were worked on. "/>
+
+<release version="Development" date="5/14/2001" description="The i18n tag library is still considered in development, but no changes have been made since the above date. "/>
+
+</body>
+</document>
+  

Propchange: jakarta/taglibs/proper/i18n/trunk/src/changes/changes.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jakarta/taglibs/proper/i18n/trunk/src/main/resources/META-INF/taglibs-i18n.tld
URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/i18n/trunk/src/main/resources/META-INF/taglibs-i18n.tld?rev=731826&view=auto
==============================================================================
--- jakarta/taglibs/proper/i18n/trunk/src/main/resources/META-INF/taglibs-i18n.tld (added)
+++ jakarta/taglibs/proper/i18n/trunk/src/main/resources/META-INF/taglibs-i18n.tld Mon Jan  5 20:37:08 2009
@@ -0,0 +1,1076 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-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.
+-->
+<taglib>
+  <tlib-version>1.0</tlib-version>
+  <jsp-version>1.1</jsp-version>
+  <short-name>i18n</short-name>
+  <uri>http://jakarta.apache.org/taglibs/i18n-1.0</uri>
+  <display-name>i18n Tag library</display-name>
+
+  <description>
+<p>
+The i18n custom tag library contains tags that help manage the complexity of creating internationalized web applications. These tags provide similar (though not identical) functionality to the internationalization available in the struts framework, but do not require adopting the entire struts framework.
+</p>
+<p>
+"i18n" is a common abbreviation for internationalization, because there are 18
+letters between the first "i" and the last "n".
+</p>
+
+<p>
+For more information on internationalization with Java, the java.sun.com site
+contains a good <a href="http://java.sun.com/docs/books/tutorial/i18n/">
+tutorial</a> written by Dale Green.
+</p>
+  </description>
+
+    <tag>
+      <name>bundle</name> 
+      <tag-class>org.apache.taglibs.i18n.BundleTag</tag-class>
+      <tei-class>org.apache.taglibs.i18n.BundleTEI</tei-class>
+      <body-content>JSP</body-content>
+      <display-name>bundle</display-name>
+      <description>
+        Establishes the ResourceBundle to use for other i18n tags on the page.
+        Also determines the most appropriate Locale to use based on browser
+        settings if a locale is not provided.
+      </description>
+      <summary>Define a resource bundle for use by other i18n tags.</summary>
+      <availability>1.0</availability>
+      <restrictions>
+        This tag must be placed early in the page (before any HTML) in order
+        for the output stream's content type to be set from the selected locale.
+        If a locale (or localeRef) is not provided, the "best" locale
+        will be determined from the browser settings and available locales
+        for the requested bundle.
+      </restrictions>
+      
+      <variable>
+        <name-from-attribute>id</name-from-attribute>
+        <variable-class>java.util.ResourceBundle</variable-class>
+        <declare>true</declare>
+        <scope>AT_BEGIN</scope>
+        <description>
+          The scripting variable declared allows other tags or scriptlets
+          to access the ResourceBundle defined by this tag. This is useful
+          for allowing multiple bundle declarations per page or for creating
+          localization debug pages by listing all key/value pairs in a bundle.
+        </description>
+        <availability>1.0</availability>
+      </variable>
+
+      <attribute>
+        <name>id</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Script variable id for use with standard <b>jsp:getProperty</b>
+          tag and as an attribute to other tags in this tag library.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <attribute>
+        <name>baseName</name>
+        <required>true</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Used along with the provided (or auto-sensed) locale to locate the
+          desired ResourceBundle.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <attribute>
+        <name>changeResponseLocale</name>
+        <required>false</required>
+        <rtexprvalue>false</rtexprvalue>
+        <description>
+          Specifies whether or not the response locale should be changed to
+          match the locale used by this tag.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <attribute>
+        <name>scope</name>
+        <required>false</required>
+        <rtexprvalue>false</rtexprvalue>
+        <description>
+          Specifies the scope (application, session, request, page) that
+          this bundle will be made available to message and other tags.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <attribute>
+        <name>locale</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Allows the page developer to provide a direct object reference to
+          the user's preferred locale.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <attribute>
+        <name>localeAttribute</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          DEPRECATED - use localeRef
+          Allows the page developer to provide the name of an attribute
+          whose value is the user's preferred locale. This attribute may
+          exist in the page, request, session, or application scope.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <attribute>
+        <name>localeRef</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Allows the page developer to provide the name of an attribute
+          whose value is the user's preferred locale. This attribute may
+          exist in the page, request, session, or application scope.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <attribute>
+        <name>debug</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          The debug flag. Logs debugging information of the bundle
+          to the ServletContext.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      
+      <example>
+Define a bundle using browser preference to determine locale.
+<![CDATA[<i18n:bundle baseName="org.apache.taglibs.i18n.i18n-test"/>]]>
+Define a bundle using browser preference to determine locale, and declaring the scripting variable "bundle".
+<![CDATA[<i18n:bundle baseName="org.apache.taglibs.i18n.i18n-test"
+             id="bundle"/>]]>
+Define a bundle using a scriptlet variable to specify the locale.
+<![CDATA[<i18n:bundle baseName="org.apache.taglibs.i18n.i18n-test"
+             locale="<%= localeVar %>"/>]]>
+Define a bundle using a page, request, session, or application attribute to specify the locale.
+<![CDATA[<i18n:bundle baseName="org.apache.taglibs.i18n.i18n-test"
+             localeRef="userLocale"/>]]>
+      </example>
+    </tag>
+
+    <tag>
+      <name>message</name>
+      <tag-class>org.apache.taglibs.i18n.MessageTag</tag-class>
+      <tei-class>org.apache.taglibs.i18n.MessageTEI</tei-class>
+      <body-content>JSP</body-content>
+      <display-name>message</display-name>
+      <description>
+        Format a message (using java.text.MessageFormat) from the value
+        resulting from looking up the provided key within the default or
+        specified resource bundle. Arguments to MessageFormat can be
+        supplied as an object array or as subtags within the message tag body.
+      </description>
+      <summary>  
+        Displays internationalized text from a resource bundle.
+      </summary>       
+      <availability>1.0</availability>
+      <restrictions>
+        Message tags require that a default bundle be provided (by placing
+        a bundle tag prior to the message tag) or that a bundle or bundleRef
+        attribute be supplied to the tag.
+      </restrictions>
+
+      <variable>
+        <name-from-attribute>id</name-from-attribute>
+        <variable-class>java.lang.String</variable-class>
+        <declare>true</declare>
+        <scope>NESTED</scope>
+        <description>
+          The scripting variable declared allows other tags or scriptlets
+          to access the String created by this tag.  If id is specified the
+          String will not be printed by this tag, just stored into the id.
+        </description>
+        <availability>1.0</availability>
+      </variable>
+
+      <attribute>
+        <name>id</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Script variable id for use with standard <b>jsp:getProperty</b>
+          tag and as an attribute to other tags in this tag library.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <attribute>
+        <name>key</name>
+        <required>true</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          The key to use when retrieving the display message format from the
+          ResourceBundle.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      
+      <attribute>
+        <name>args</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Provides an array of args for use with java.text.MessageFormat when
+          formatting the display text. This is an alternative to using arg
+          subtags.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      
+      <attribute>
+        <name>bundle</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          An object reference to the ResourceBundle in which the key can
+          be found.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <attribute>
+        <name>bundleRef</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          The name of an attribute that contains a resource bundle. This
+          attribute is usually defined/populated by BundleTag's id attribute.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <attribute>
+        <name>debug</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Set to "true" to log debugging messages.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <example>
+Display a plain message using the default (first defined) bundle.
+<![CDATA[<i18n:message key="column1.header"/>]]>
+Display a plain message using a specified bundle.
+<![CDATA[<i18n:bundle baseName="org.apache.taglibs.i18n.i18n-test"
+             id="bundle"/> <!-- the default -->
+<i18n:bundle baseName="org.apache.taglibs.i18n.i18n-test2"
+             id="bundle2"/> <!-- the alternate -->
+<i18n:message key="column1.header" bundle="<%= bundle2 %>" />]]>
+Display a message with arguments. In the example below, the English value for the key "datetxt" is "Welcome, today is {0,date,short}."
+<![CDATA[<%
+  Object msgArgs[] = {new Date()};
+%>
+<i18n:message key="datetxt" args="<%= msgArgs %>"/>]]>
+      </example>
+
+    </tag>
+
+    <tag>
+      <name>messageArg</name>
+      <tag-class>org.apache.taglibs.i18n.MessageArgumentTag</tag-class>
+      <body-content>empty</body-content>
+      <display-name>messageArg</display-name>
+      <description>
+        The messageArg tag is a simpler (and usually more readable) alternative
+        to using the Message tag's args attribute for specifying arguments to
+        MessageFormat. Note that if you use arguments for your message tags,
+        java.util.MessageFormat puts some restrictions on the characters you
+        are allowed to use.  The one that is most likely to affect you is the
+        requirement that single apostrophies should be escaped by another
+        apostrophe (so, you replace ' with '' in your resource bundle
+        properties file).
+      </description>
+      <summary>
+        Specifies arguments to be used by the message tag's MessageFormat.
+      </summary>
+      <availability>1.0</availability>
+      <restrictions>
+        Must reside inside the body of a message tag.
+      </restrictions>
+
+      <attribute>
+        <name>value</name>
+        <required>true</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          This attribute is to replace a positional variable in the message
+          text. See the javadoc api for java.text.MessageText
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <example>
+Provide a date and number to be formatted in the message in the right location and according to the user's locale.
+<![CDATA[<i18n:message key="test2"> 
+   <i18n:messageArg value="<%= dateArg %>" /> 
+   <i18n:messageArg value="<%= numberArg %>" /> 
+</i18n:message>]]>
+      </example>
+
+    </tag>
+
+    <tag>
+      <name>ifdef</name>
+      <tag-class>org.apache.taglibs.i18n.IfdefTag</tag-class>
+      <body-content>JSP</body-content>
+      <display-name>ifdef</display-name>
+      <description>
+        This tag processes the JSP contained in its body if the given key
+        is defined in the given (or default if not specified) bundle.
+      </description>
+      <summary>
+        Allows jsp to be evaluated (or not) on a per locale basis.
+      </summary>
+      <availability>1.0</availability>
+      <restrictions>
+        ifdef tags require that a default bundle be provided (by placing
+        a bundle tag prior to the message tag) or that a bundle or bundleRef
+        attribute be supplied to the tag.
+      </restrictions>
+
+      <attribute>
+        <name>key</name>
+        <required>true</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          The name of the key whose value (or lack thereof) will determine
+          whether the body of this tag is processed.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      
+      <attribute>
+        <name>bundle</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          An object reference to the ResourceBundle in which the key can
+          be found.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <attribute>
+        <name>bundleRef</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          The name of an attribute that contains a resource bundle. This
+          attribute is usually defined/populated by BundleTag's id attribute.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <example>
+Display a special disclaimer if there is one to display.
+<![CDATA[   <i18n:ifdef key="specialDisclaimer"> 
+     <H3>DISCLAIMER</H3> 
+     <i18n:message key="specialDisclaimer" /> 
+     Only those locales that have a specialDisclaimer key in 
+     their ResourceBundle will see the special disclaimer text. 
+   </i18n:ifdef>]]>
+      </example>
+
+    </tag>
+
+    <tag>
+      <name>ifndef</name>
+      <tag-class>org.apache.taglibs.i18n.IfndefTag</tag-class>
+      <body-content>JSP</body-content>
+      <display-name>ifndef</display-name>
+      <description>
+        This tag processes the JSP contained in its body if the given key
+        is NOT defined in the given (or default if not specified) bundle.
+      </description>
+      <summary>
+        Allows jsp to be evaluated (or not) on a per locale basis.
+      </summary>
+      <availability>1.0</availability>
+      <restrictions>
+        ifndef tags require that a default bundle be provided (by placing
+        a bundle tag prior to the message tag) or that a bundle or bundleRef
+        attribute be supplied to the tag.
+      </restrictions>
+
+      <attribute>
+        <name>key</name>
+        <required>true</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          The name of the key whose value (or lack thereof) will determine
+          whether the body of this tag is processed.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      
+      <attribute>
+        <name>bundle</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          An object reference to the ResourceBundle in which the key can
+          be found.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <attribute>
+        <name>bundleRef</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          The name of an attribute that contains a resource bundle. This
+          attribute is usually defined/populated by BundleTag's id attribute.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+
+      <example>
+Display a special disclaimer if there is one to display.
+<![CDATA[   <i18n:ifndef key="specialDisclaimer"> 
+     <H3>DISCLAIMER</H3> 
+     <i18n:message key="specialDisclaimer" /> 
+     Only those locales that do NOT have a specialDisclaimer key in 
+     their ResourceBundle will see the special disclaimer text. 
+   </i18n:ifndef>]]>
+      </example>
+    </tag>
+
+    <tag>
+      <name>locale</name>
+      <tag-class>org.apache.taglibs.i18n.LocaleTag</tag-class>
+      <tei-class>org.apache.taglibs.i18n.LocaleTEI</tei-class>
+      <body-content>JSP</body-content>
+      <display-name>locale</display-name>
+      <description>
+        Defines a locale context. This is either sepecified using the 
+        locale property, the combination of 'language', 'country' and 
+        the optional 'variant' property or the current HTTP request is used.
+        If no other locale can be found then the default JVM locale is used.
+        Other sub-tags will use this locale if no other locale is specified.
+      </description>
+      <summary>
+        Defines a locale context.
+      </summary>
+      <availability>1.0</availability>
+      <restrictions>
+      </restrictions>
+      <variable>
+        <name-from-attribute>id</name-from-attribute>
+        <variable-class>java.util.Locale</variable-class>
+        <declare>true</declare>
+        <scope>AT_BEGIN</scope>
+        <description>
+          The scripting variable declared allows other tags or scriptlets
+          to access the Locale defined by this tag.
+        </description>
+        <availability>1.0</availability>
+      </variable>
+
+      <attribute>
+        <name>id</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Script variable id for use with standard <b>jsp:getProperty</b>
+          tag and as an attribute to other tags in this tag library.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>locale</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>localeRef</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Allows the page developer to provide the name of an attribute
+          whose value is the user's preferred locale. This attribute may
+          exist in the page, request, session, or application scope.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>language</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>country</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>variant</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+    </tag>
+
+    <tag>
+      <name>formatString</name>
+      <tag-class>org.apache.taglibs.i18n.FormatStringTag</tag-class>
+      <tei-class>org.apache.taglibs.i18n.FormatStringTEI</tei-class>
+      <body-content>JSP</body-content>
+      <display-name>formatString</display-name>
+      <description>
+        Outputs a String value or displays the defaultText property if the 
+        String is null. The defaultText defaults to "".
+      </description>
+      <summary>
+        Formats a string.
+      </summary>
+      <availability>1.0</availability>
+      <restrictions>
+      </restrictions>
+      <variable>
+        <name-from-attribute>id</name-from-attribute>
+        <variable-class>java.util.Locale</variable-class>
+        <declare>true</declare>
+        <scope>AT_BEGIN</scope>
+        <description>
+          The scripting variable declared allows other tags or scriptlets
+          to access the Locale defined by this tag.
+        </description>
+        <availability>1.0</availability>
+      </variable>
+      <attribute>
+        <name>id</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Script variable id for use with standard <b>jsp:getProperty</b>
+          tag and as an attribute to other tags in this tag library.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>value</name>
+        <required>true</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>defaultText</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+    </tag>
+
+    <tag>
+      <name>formatNumber</name>
+      <tag-class>org.apache.taglibs.i18n.FormatNumberTag</tag-class>
+      <tei-class>org.apache.taglibs.i18n.FormatNumberTEI</tei-class>
+      <body-content>JSP</body-content>
+      <display-name>formatNumber</display-name>
+      <description>
+        Formats a number using a locale. A pattern can be specified such as
+        '##,###.##'.
+
+        If the value is null then the default text is used. If no locale is
+        specified then the parent &lt;i18n:locale&gt; tag is used. If no
+        parent &lt;i18n:locale&gt; tag exists then the locale is taken from
+        the current request. If still no locale could be found then the current
+        JVM locale is used.
+      </description>
+      <summary>
+        Formats a number.
+      </summary>
+      <availability>1.0</availability>
+      <restrictions>
+      </restrictions>
+      <variable>
+        <name-from-attribute>id</name-from-attribute>
+        <variable-class>java.util.Locale</variable-class>
+        <declare>true</declare>
+        <scope>AT_BEGIN</scope>
+        <description>
+          The scripting variable declared allows other tags or scriptlets
+          to access the Locale defined by this tag.
+        </description>
+        <availability>1.0</availability>
+      </variable>
+      <attribute>
+        <name>id</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Script variable id for use with standard <b>jsp:getProperty</b>
+          tag and as an attribute to other tags in this tag library.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>value</name>
+        <required>true</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>pattern</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>locale</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>defaultText</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute> 
+    </tag>
+
+    <tag>
+      <name>formatCurrency</name>
+      <tag-class>org.apache.taglibs.i18n.FormatCurrencyTag</tag-class>
+      <tei-class>org.apache.taglibs.i18n.FormatCurrencyTEI</tei-class>
+      <body-content>JSP</body-content>
+      <display-name>formatCurrency</display-name>
+      <description>
+        Formats a number as a currency using a locale.
+
+        If the value is null then the default text is used. If no locale is
+        specified then the parent &lt;i18n:locale&gt; tag is used. If no
+        parent &lt;i18n:locale&gt; tag exists then the locale is taken from
+        the current request. If still no locale could be found then the current
+        JVM locale is used.
+      </description>
+      <summary>
+        Formats currency.
+      </summary>
+      <availability>1.0</availability>
+      <restrictions>
+      </restrictions>
+      <variable>
+        <name-from-attribute>id</name-from-attribute>
+        <variable-class>java.util.Locale</variable-class>
+        <declare>true</declare>
+        <scope>AT_BEGIN</scope>
+        <description>
+          The scripting variable declared allows other tags or scriptlets
+          to access the Locale defined by this tag.
+        </description>
+        <availability>1.0</availability>
+      </variable>
+      <attribute>
+        <name>id</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Script variable id for use with standard <b>jsp:getProperty</b>
+          tag and as an attribute to other tags in this tag library.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>value</name>
+        <required>true</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>locale</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>defaultText</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>      
+    </tag>
+
+    <tag>
+      <name>formatPercent</name>
+      <tag-class>org.apache.taglibs.i18n.FormatPercentTag</tag-class>
+      <tei-class>org.apache.taglibs.i18n.FormatPercentTEI</tei-class>
+      <body-content>JSP</body-content>
+      <display-name>formatPercent</display-name>
+      <description>
+        Formats a number as a percentage using a locale.
+
+        If the value is null then the default text is used. If no locale is
+        specified then the parent &lt;i18n:locale&gt; tag is used. If no
+        parent &lt;i18n:locale&gt; tag exists then the locale is taken from
+        the current request. If still no locale could be found then the current
+        JVM locale is used.
+      </description>
+      <summary>
+        Formats a percentage.
+      </summary>
+      <availability>1.0</availability>
+      <restrictions>
+      </restrictions>
+      <variable>
+        <name-from-attribute>id</name-from-attribute>
+        <variable-class>java.util.Locale</variable-class>
+        <declare>true</declare>
+        <scope>AT_BEGIN</scope>
+        <description>
+          The scripting variable declared allows other tags or scriptlets
+          to access the Locale defined by this tag.
+        </description>
+        <availability>1.0</availability>
+      </variable>
+      <attribute>
+        <name>id</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Script variable id for use with standard <b>jsp:getProperty</b>
+          tag and as an attribute to other tags in this tag library.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>value</name>
+        <required>true</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>locale</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>defaultText</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>      
+    </tag>
+
+    <tag>
+      <name>formatDateTime</name>
+      <tag-class>org.apache.taglibs.i18n.FormatDateTimeTag</tag-class>
+      <tei-class>org.apache.taglibs.i18n.FormatDateTimeTEI</tei-class>
+      <body-content>JSP</body-content>
+      <display-name>formatDate</display-name>
+      <description>
+        Formats a Date value as a date-time using a locale.
+
+        A dateStyle and a timeStyle (short/medium/long/full) can be specified.
+
+        If the value is null then the default text is used. If no locale is
+        specified then the parent &lt;i18n:locale&gt; tag is used. If no
+        parent &lt;i18n:locale&gt; tag exists then the locale is taken from
+        the current request. If still no locale could be found then the current
+        JVM locale is used.
+      </description>
+      <summary>
+        Formats a date/time.
+      </summary>
+      <availability>1.0</availability>
+      <restrictions>
+      </restrictions>
+      <variable>
+        <name-from-attribute>id</name-from-attribute>
+        <variable-class>java.util.Locale</variable-class>
+        <declare>true</declare>
+        <scope>AT_BEGIN</scope>
+        <description>
+          The scripting variable declared allows other tags or scriptlets
+          to access the Locale defined by this tag.
+        </description>
+        <availability>1.0</availability>
+      </variable>
+      <attribute>
+        <name>id</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Script variable id for use with standard <b>jsp:getProperty</b>
+          tag and as an attribute to other tags in this tag library.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>value</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>locale</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>dateStyle</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>timeStyle</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>defaultText</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>      
+    </tag>
+
+    <tag>
+      <name>formatDate</name>
+      <tag-class>org.apache.taglibs.i18n.FormatDateTag</tag-class>
+      <tei-class>org.apache.taglibs.i18n.FormatDateTEI</tei-class>
+      <body-content>JSP</body-content>
+      <display-name>formatDate</display-name>
+      <description>
+        Formats a Date value as a date using a locale.
+
+        A style (short/medium/long/full) can be specified
+        or a pattern such as 'YYYY MMM ddd'.
+
+        If the value is null then the default text is used. If no locale is
+        specified then the parent &lt;i18n:locale&gt; tag is used. If no
+        parent &lt;i18n:locale&gt; tag exists then the locale is taken from
+        the current request. If still no locale could be found then the current
+        JVM locale is used.
+      </description>
+      <summary>
+        Formats a date.
+      </summary>
+      <availability>1.0</availability>
+      <restrictions>
+      </restrictions>
+      <variable>
+        <name-from-attribute>id</name-from-attribute>
+        <variable-class>java.util.Locale</variable-class>
+        <declare>true</declare>
+        <scope>AT_BEGIN</scope>
+        <description>
+          The scripting variable declared allows other tags or scriptlets
+          to access the Locale defined by this tag.
+        </description>
+        <availability>1.0</availability>
+      </variable>
+      <attribute>
+        <name>id</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Script variable id for use with standard <b>jsp:getProperty</b>
+          tag and as an attribute to other tags in this tag library.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>value</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>locale</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>pattern</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>style</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>defaultText</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>      
+    </tag>
+
+    <tag>
+      <name>formatTime</name>
+      <tag-class>org.apache.taglibs.i18n.FormatTimeTag</tag-class>
+      <tei-class>org.apache.taglibs.i18n.FormatTimeTEI</tei-class>
+      <body-content>JSP</body-content>
+      <display-name>formatTime</display-name>
+      <description>
+        Formats a Date value as a time using a locale.
+
+        A style (short/medium/long/full) can be specified.
+
+        If the value is null then the default text is used. If no locale is
+        specified then the parent &lt;i18n:locale&gt; tag is used. If no
+        parent &lt;i18n:locale&gt; tag exists then the locale is taken from
+        the current request. If still no locale could be found then the current
+        JVM locale is used.
+      </description>
+      <summary>
+        Formats a time.
+      </summary>
+      <availability>1.0</availability>
+      <restrictions>
+      </restrictions>
+      <variable>
+        <name-from-attribute>id</name-from-attribute>
+        <variable-class>java.util.Locale</variable-class>
+        <declare>true</declare>
+        <scope>AT_BEGIN</scope>
+        <description>
+          The scripting variable declared allows other tags or scriptlets
+          to access the Locale defined by this tag.
+        </description>
+        <availability>1.0</availability>
+      </variable>
+      <attribute>
+        <name>id</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+          Script variable id for use with standard <b>jsp:getProperty</b>
+          tag and as an attribute to other tags in this tag library.
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>value</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>locale</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>style</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>
+      <attribute>
+        <name>defaultText</name>
+        <required>false</required>
+        <rtexprvalue>true</rtexprvalue>
+        <description>
+        </description>
+        <availability>1.0</availability>
+      </attribute>      
+    </tag>
+
+</taglib>

Propchange: jakarta/taglibs/proper/i18n/trunk/src/main/resources/META-INF/taglibs-i18n.tld
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jakarta/taglibs/proper/i18n/trunk/xdocs/index.xml
URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/i18n/trunk/xdocs/index.xml?rev=731826&view=auto
==============================================================================
--- jakarta/taglibs/proper/i18n/trunk/xdocs/index.xml (added)
+++ jakarta/taglibs/proper/i18n/trunk/xdocs/index.xml Mon Jan  5 20:37:08 2009
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-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.
+-->
+<document url="./intro.xml">
+
+  <properties>
+    <title>The Jakarta-Taglibs Project: I18N Tag Library</title>
+  </properties>
+
+  <body>
+
+
+  <section name="I18N Tag Library" href="Welcome">
+  <p>The I18N custom tag library contains tags that help manage
+     the complexity of creating internationalized web applications.
+     For those not familiar with the term "i18n", it is a standard
+     abbreviation for "internationalization", which starts with the
+     letter I, ends with the letter N, and contains a total of 18
+     letters in between.<br/>
+     While some may see similarity with the struts message tag, these
+     tags have several advantages, particularly with respect to
+     message arguments, not to mention the fact that its a standalone
+     tag library and doesn't require the user to adopt (or rip
+     components out of) struts.
+  </p>
+
+  </section>
+
+  <section name="Download" href="Download">
+    <p>Not currently possible - instead you will have to build from source. </p>
+  </section>
+
+  </body>
+</document>

Propchange: jakarta/taglibs/proper/i18n/trunk/xdocs/index.xml
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message