dflorey 2004/10/04 06:41:11 Added: i18n/lib xml-im-exporter1.1.jar xml-im-exporter.license i18n/src/java/org/apache/commons/i18n MessageManager.java MessageNotFoundException.java LocalizedBundle.java LocalizedText.java LocalizedMessage.java LocalizedException.java LocalizedError.java i18n project.properties project.xml LICENSE.txt NOTICE.txt build.xml i18n/xdocs navigation.xml index.xml downloads.xml i18n/xdocs/images i18n-logo-white.png Log: Extracted i18n-package from SlideProjector to commons-sandbox Revision Changes Path 1.1 jakarta-commons-sandbox/i18n/lib/xml-im-exporter1.1.jar <<Binary file>> 1.1 jakarta-commons-sandbox/i18n/lib/xml-im-exporter.license Index: xml-im-exporter.license =================================================================== XML Im-/Exporter: Copyright 2002-2004, Oliver Zeigermann ([EMAIL PROTECTED])
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - Neither the name of the Oliver Zeigermann nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ORTORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1.1 jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/MessageManager.java Index: MessageManager.java =================================================================== /* * $Header: /home/cvs/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/MessageManager.java,v 1.1 2004/10/04 13:41:09 dflorey Exp $ * $Revision: 1.1 $ * $Date: 2004/10/04 13:41:09 $ * * ==================================================================== * * 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. * */ package org.apache.commons.i18n; import java.io.InputStream; import java.text.MessageFormat; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.Locale; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import org.xml.sax.InputSource; import org.xml.sax.helpers.AttributesImpl; import de.zeigermann.xml.simpleImporter.DefaultSimpleImportHandler; import de.zeigermann.xml.simpleImporter.SimpleImporter; import de.zeigermann.xml.simpleImporter.SimplePath; public class MessageManager { private static Logger logger = Logger.getLogger(MessageManager.class.getName()); private static Map installedMessages = new HashMap(); private static Map messages = new HashMap(); public static String getText(String id, String entry, Object[] arguments, Locale locale, String defaultText) { Message message = findMessage(id, locale); try { return format(message.getEntry(entry), arguments); } catch ( MessageNotFoundException exception ) { return defaultText; } } public static String getText(String id, String entry, Object[] arguments, Locale locale) throws MessageNotFoundException { Message message = findMessage(id, locale); return format(message.getEntry(entry), arguments); } public static Map getEntries(String id, Locale locale) throws MessageNotFoundException { Message message = findMessage(id, locale); return message.getEntries(); } public static void install(String id, InputStream inputStream) { logger.log(Level.FINE, "Installing messages '"+id+"'"); try { Map applicationMessages = new HashMap(); SimpleImporter importer = new SimpleImporter(); importer.setIncludeLeadingCDataIntoStartElementCallback(true); ConfigurationHandler handler = new ConfigurationHandler(); importer.addSimpleImportHandler(handler); importer.parse(new InputSource(inputStream)); Map parsedMessages = handler.getMessages(); applicationMessages.putAll(parsedMessages); messages.putAll(applicationMessages); installedMessages.put(id, applicationMessages.keySet()); } catch (Exception exception) { logger.log(Level.SEVERE, "Error while parsing messages", exception); } } public static void uninstall(String id) { logger.log(Level.FINE, "Uninstalling messages '"+id+"'"); Collection messageKeys = (Collection)installedMessages.get(id); for ( Iterator i = messageKeys.iterator(); i.hasNext(); ) { String messageKey = (String)i.next(); messages.remove(messageKey); logger.log(Level.FINE, "Removing message with key '"+messageKey+"'"); } installedMessages.remove(id); } public static void update(String id, InputStream inputStream) { uninstall(id); install(id, inputStream); } private static String format(String formatString, Object[] arguments) { if (formatString == null) return null; return MessageFormat.format(formatString, arguments); } private static Message findMessage(String id, Locale locale) { Message message = lookupMessage(id, locale); if (message == null) { message = lookupMessage(id, Locale.getDefault()); } if (message == null ) throw new MessageNotFoundException("Message with id "+id+" not found"); return message; } private static Message lookupMessage(String id, Locale locale) { StringBuffer keyBuffer = new StringBuffer(64); keyBuffer.append(id); if (locale.getLanguage() != null) keyBuffer.append("_" + locale.getLanguage()); if (locale.getCountry() != null) keyBuffer.append("_" + locale.getCountry()); if (locale.getVariant() != null) keyBuffer.append("_" + locale.getVariant()); String key = keyBuffer.toString(); if (messages.containsKey(key)) return (Message)messages.get(key); while (key.lastIndexOf('_') > 0) { key = key.substring(0, key.lastIndexOf('_')); if (messages.containsKey(key)) return (Message)messages.get(key); } return null; } static class ConfigurationHandler extends DefaultSimpleImportHandler { private Map messages = new HashMap(); private String id; private Message message; public void startElement(SimplePath path, String name, AttributesImpl attributes, String leadingCDdata) { if (path.matches("message")) { id = attributes.getValue("id"); } else if (path.matches("message/locale")) { message = new Message(id); message.setLanguage(attributes.getValue("language")); message.setCountry(attributes.getValue("country")); message.setVariant(attributes.getValue("variant")); } else if (path.matches("message/locale/entry")) { String key = attributes.getValue("key"); message.addEntry(key, leadingCDdata); } } public void endElement(SimplePath path, String name) { if (path.matches("message/locale")) { messages.put(message.getKey(), message); } } Map getMessages() { return messages; } } static class Message { private String id, language, country, variant; private Map entries = new HashMap(); public Message(String id) { this.id = id; } public void addEntry(String key, String value) { entries.put(key, value); } public String getEntry(String key) { return (String)entries.get(key); } public Map getEntries() { return entries; } public void setLanguage(String language) { this.language = language; } public void setCountry(String country) { this.country = country; } public void setVariant(String variant) { this.variant = variant; } public String getKey() { StringBuffer key = new StringBuffer(64); key.append(id); if (language != null) key.append("_" + language); if (country != null) key.append("_" + country); if (variant != null) key.append("_" + variant); return key.toString(); } } } 1.1 jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/MessageNotFoundException.java Index: MessageNotFoundException.java =================================================================== /* * $Header: /home/cvs/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/MessageNotFoundException.java,v 1.1 2004/10/04 13:41:09 dflorey Exp $ * $Revision: 1.1 $ * $Date: 2004/10/04 13:41:09 $ * * ==================================================================== * * 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. * */ package org.apache.commons.i18n; import java.lang.RuntimeException; public class MessageNotFoundException extends RuntimeException { public MessageNotFoundException(String message) { super(message); } public MessageNotFoundException(String message, Throwable cause) { super(message, cause); } } 1.1 jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/LocalizedBundle.java Index: LocalizedBundle.java =================================================================== /* * $Header: /home/cvs/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/LocalizedBundle.java,v 1.1 2004/10/04 13:41:09 dflorey Exp $ * $Revision: 1.1 $ * $Date: 2004/10/04 13:41:09 $ * * ==================================================================== * * 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. * */ package org.apache.commons.i18n; import java.util.Locale; public class LocalizedBundle { public final static String ID = "id"; public final static String ARGUMENTS = "arguments"; protected String id; protected Object[] arguments; public LocalizedBundle(String messageId) { this.id = messageId; this.arguments = new Object[0]; } public LocalizedBundle(String messageId, Object[] arguments) { this.id = messageId; this.arguments = arguments; } public String getId() { return id; } public Object[] getArguments() { return arguments; } public String getText(String key, Locale locale) throws MessageNotFoundException { return MessageManager.getText(id, key, arguments, locale); } public String getText(String key, String defaultText, Locale locale) { return MessageManager.getText(id, key, arguments, locale, defaultText); } } 1.1 jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/LocalizedText.java Index: LocalizedText.java =================================================================== /* * $Header: /home/cvs/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/LocalizedText.java,v 1.1 2004/10/04 13:41:09 dflorey Exp $ * $Revision: 1.1 $ * $Date: 2004/10/04 13:41:09 $ * * ==================================================================== * * 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. * */ package org.apache.commons.i18n; import java.util.Locale; public class LocalizedText extends LocalizedBundle { public final static String TEXT = "text"; public LocalizedText(String messageId) { super(messageId); } public LocalizedText(String messageId, Object[] arguments) { super(messageId, arguments); } public String getText() throws MessageNotFoundException { return getText(TEXT, Locale.getDefault()); } public String getText(Locale locale) throws MessageNotFoundException { return getText(TEXT, locale); } public String getText(String defaultText) { return getText(TEXT, defaultText, Locale.getDefault()); } public String getText(Locale locale, String defaultText) { return getText(TEXT, defaultText, locale); } } 1.1 jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/LocalizedMessage.java Index: LocalizedMessage.java =================================================================== /* * $Header: /home/cvs/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/LocalizedMessage.java,v 1.1 2004/10/04 13:41:09 dflorey Exp $ * $Revision: 1.1 $ * $Date: 2004/10/04 13:41:09 $ * * ==================================================================== * * 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. * */ package org.apache.commons.i18n; import java.util.Locale; public class LocalizedMessage extends LocalizedText { public static String TITLE = "title"; public LocalizedMessage(String messageId) { super(messageId); } public LocalizedMessage(String messageId, Object[] arguments) { super(messageId, arguments); } public String getTitle() throws MessageNotFoundException { return getText(TITLE, Locale.getDefault()); } public String getTitle(Locale locale) throws MessageNotFoundException { return getText(TITLE, locale); } public String getTitle(String defaultTitle) { return getText(TITLE, defaultTitle, Locale.getDefault()); } public String getTitle(Locale locale, String defaultTitle) { return getText(TITLE, defaultTitle, locale); } } 1.1 jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/LocalizedException.java Index: LocalizedException.java =================================================================== /* * $Header: /home/cvs/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/LocalizedException.java,v 1.1 2004/10/04 13:41:09 dflorey Exp $ * $Revision: 1.1 $ * $Date: 2004/10/04 13:41:09 $ * * ==================================================================== * * 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. * */ package org.apache.commons.i18n; import java.util.Locale; public class LocalizedException extends Exception { private LocalizedError errorMessage; public LocalizedException(LocalizedError errorMessage, Throwable throwable) { super(errorMessage.getSummary(Locale.getDefault(), throwable.getMessage()), throwable); this.errorMessage = errorMessage; } public LocalizedException(LocalizedError errorMessage) { super(errorMessage.getSummary(Locale.getDefault(), "no message available")); this.errorMessage = errorMessage; } public LocalizedError getErrorMessage() { return errorMessage; } } 1.1 jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/LocalizedError.java Index: LocalizedError.java =================================================================== /* * $Header: /home/cvs/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18n/LocalizedError.java,v 1.1 2004/10/04 13:41:09 dflorey Exp $ * $Revision: 1.1 $ * $Date: 2004/10/04 13:41:09 $ * * ==================================================================== * * 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. * */ package org.apache.commons.i18n; import java.util.Locale; public class LocalizedError extends LocalizedMessage { private final static String SUMMARY = "summary"; private final static String DETAILS = "details"; public LocalizedError(String messageId) { super(messageId); } public LocalizedError(String messageId, Object[] arguments) { super(messageId, arguments); } public String getSummary() throws MessageNotFoundException { return getText(SUMMARY, Locale.getDefault()); } public String getSummary(Locale locale) throws MessageNotFoundException { return getText(SUMMARY, locale); } public String getSummary(String defaultSummary) { return getText(SUMMARY, defaultSummary, Locale.getDefault()); } public String getSummary(Locale locale, String defaultSummary) { return getText(SUMMARY, defaultSummary, locale); } public String getDetails() throws MessageNotFoundException { return getText(DETAILS, Locale.getDefault()); } public String getDetails(Locale locale) throws MessageNotFoundException { return getText(DETAILS, locale); } public String getDetails(String defaultDetails) { return getText(DETAILS, defaultDetails, Locale.getDefault()); } public String getDetails(Locale locale, String defaultDetails) { return getText(DETAILS, defaultDetails, locale); } } 1.1 jakarta-commons-sandbox/i18n/project.properties Index: project.properties =================================================================== maven.javadoc.author=false maven.javadoc.links=http://java.sun.com/products/jdk/1.4/docs/api # ------------------------------------------------------------------------ # M A V E N J A R O V E R R I D E # ------------------------------------------------------------------------ maven.jar.override = on # ------------------------------------------------------------------------ # Jars set explicity by path. # ------------------------------------------------------------------------ maven.jar.xml-im-exporter = ${basedir}/lib/xml-im-exporter1.1.jar 1.1 jakarta-commons-sandbox/i18n/project.xml Index: project.xml =================================================================== <?xml version="1.0"?> <project> <extend>../sandbox-build/project.xml</extend> <name>Commons I18n</name> <id>commons-i18n</id> <logo>/images/i18n-logo-white.png</logo> <url>http://jakarta.apache.org/commons/sandbox/i18n/</url> <inceptionYear>2004</inceptionYear> <shortDescription>Commons I18n</shortDescription> <description>Internationalization package</description> <currentVersion>0.2</currentVersion> <versions> </versions> <branches> </branches> <developers> <developer> <name>Daniel Florey</name> <id>dflorey</id> <email>[EMAIL PROTECTED]</email> <organization>Apache Software Foundation</organization> <timezone>+2</timezone> <roles> <role>Java Developer</role> </roles> </developer> </developers> <dependencies> <dependency> <groupId>xml-im-exporter</groupId> <artifactId>xml-im-exporter</artifactId> <version>1.1</version> <url>http://sourceforge.net/projects/xml-im-exporter/index.html</url> </dependency> </dependencies> <build> <unitTest> </unitTest> </build> <reports> <report>maven-changelog-plugin</report> <report>maven-changes-plugin</report> <report>maven-developer-activity-plugin</report> <report>maven-file-activity-plugin</report> <report>maven-javadoc-plugin</report> <report>maven-jdepend-plugin</report> <report>maven-junit-report-plugin</report> <report>maven-jxr-plugin</report> <report>maven-license-plugin</report> <report>maven-tasklist-plugin</report> </reports> </project> 1.1 jakarta-commons-sandbox/i18n/LICENSE.txt Index: LICENSE.txt =================================================================== Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] 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. 1.1 jakarta-commons-sandbox/i18n/NOTICE.txt Index: NOTICE.txt =================================================================== This product includes software developed by The Apache Software Foundation (http://www.apache.org/). 1.1 jakarta-commons-sandbox/i18n/build.xml Index: build.xml =================================================================== <?xml version="1.0"?> <!-- <!DOCTYPE project SYSTEM "project.dtd"> --> <!-- ======================================================================= WebDAV projector build file ======================================================================= --> <project name="i18n" default="jar" basedir="."> <!-- Give user a chance to override without editing this file (and without typing -D each time it compiles it) --> <property file="build.properties"/> <property file=".ant.properties" /> <property name="debug" value="true" /> <property name="deprecation" value="true" /> <property name="optimize" value="true" /> <property name="version" value="0.2" /> <property name="name" value="i18n" /> <!-- =================================================================== Set the properties related to the source tree =================================================================== --> <property name="src.dir" value="src" /> <property name="java.dir" value="${src.dir}/java" /> <property name="lib.dir" value="lib" /> <property name="docs.dir" value="doc" /> <property name="dist.dir" value="dist" /> <!-- =================================================================== Set the properties for the build area =================================================================== --> <property name="build.dir" value="build" /> <property name="build.classes" value="${build.dir}/classes" /> <property name="build.lib" value="${build.dir}/lib" /> <property name="build.javadocs" value="${docs.dir}/javadoc" /> <path id="classpath"> <pathelement location="${build.classes}" /> <fileset dir="${lib.dir}" includes="*.jar" /> </path> <!-- =================================================================== Prepare the build =================================================================== --> <target name="prepare"> <tstamp /> <mkdir dir="${build.dir}" /> <mkdir dir="${build.classes}" /> <mkdir dir="${build.lib}" /> </target> <!-- =================================================================== Build the code =================================================================== --> <target name="build" depends="prepare"> <javac destdir="${build.classes}" debug="${debug}" deprecation="${deprecation}" optimize="${optimize}"> <src path="${java.dir}" /> <classpath refid="classpath" /> </javac> </target> <!-- =================================================================== Create the jar =================================================================== --> <target name="jar" depends="build"> <jar jarfile="${build.lib}/${name}-${version}.jar" basedir="${build.classes}"> <include name="org/apache/commons/i18n/**" /> </jar> </target> <!-- =================================================================== Cleans up build directories =================================================================== --> <target name="clean"> <delete dir="${build.dir}" /> </target> <target name="clean-javadocs"> <delete dir="${build.javadocs}" /> </target> <target name="scrub" depends="clean, clean-javadocs"> </target> <!-- =================================================================== Creates the API documentation =================================================================== --> <target name="javadocs" depends="build, clean-javadocs" description="Creates the API documentation"> <mkdir dir="${build.javadocs}" /> <mkdir dir="${build.javadocs}" /> <javadoc sourcepath="${java.dir}" packagenames="org.apache.commons.i18n.*" destdir="${build.javadocs}" author="true" windowtitle="WebDAV Projector" doctitle="WebDAV Projector" link="http://java.sun.com/j2se/1.4/docs/api/" bottom="Copyright © 2002-2004 Apache Software Foundation. All Rights Reserved." classpathref="classpath" /> </target> <target name="all" depends="jar, javadocs" /> </project> 1.1 jakarta-commons-sandbox/i18n/xdocs/navigation.xml Index: navigation.xml =================================================================== <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE org.apache.commons.menus SYSTEM '../../../jakarta-commons/commons-build/menus/menus.dtd'> <project name="Commons Transaction"> <title>Commons Transaction</title> <body> <menu name="Commons Transaction"> <item name="Overview" href="/index.html" /> <item name="API Documentation" href="/apidocs/index.html"/> <item name="Downloads" href="/downloads.html"/> </menu> &common-menus; </body> </project> 1.1 jakarta-commons-sandbox/i18n/xdocs/index.xml Index: index.xml =================================================================== <?xml version="1.0"?> <document> <properties> <title>Overview</title> <author email="[EMAIL PROTECTED]">Commons Documentation Team</author> </properties> <body> <section name="The I18n Component"> <p>Provides a set of classes dealing with internationalization issues.</p> </section> <section name="Releases"> <p> See the <a href="downloads.html">downloads</a> page for information on obtaining releases. </p> </section> <section name="Documentation"> <p> The <a href="apidocs/index.html">JavaDoc API documents</a> are available online. </p> </section> </body> </document> 1.1 jakarta-commons-sandbox/i18n/xdocs/downloads.xml Index: downloads.xml =================================================================== <?xml version="1.0"?> <document> <properties> <title>Downloads</title> <author email="[EMAIL PROTECTED]">Commons Documentation Team</author> <revision>$Id: downloads.xml,v 1.1 2004/10/04 13:41:10 dflorey Exp $</revision> </properties> <body> <section name="Releases"> <p>There are no releases available.</p> <!-- <p>The following releases are available:</p> <ul> <li>Version 1.1 - 20 October 2003</li> <li>Version 1.0 - 12 August 2002</li> </ul> <br/> <p> The latest binary release is always available on the <a href="http://jakarta.apache.org/site/binindex.cgi#commons-transaction"> Jakarta Binary Downloads page</a>, its source is available from <a href="http://jakarta.apache.org/site/sourceindex.cgi#commons-transaction"> Jakarta Source Downloads page</a>. </p> <p> Older releases are retained by the Apache Software Foundation but are moved into a <a href="http://archive.apache.org/dist/jakarta/commons/transaction/"> special archive area</a>. </p> <p> <a href="http://cvs.apache.org/builds/jakarta-commons/nightly/commons-transaction/"> Nightly source and binary drops</a> are available. </p> --> <p> Access to the source tree to see the latest and greatest code is possible through <a href="cvs-usage.html">anonymous CVS access</a>. </p> </section> <!-- <section name="Release Candidate"> <p> Release candidates for the upcoming 1.1 release can be downloaded <a href="http://cvs.apache.org/~dirkv/builds/">here</a>. </p> <p> Please review and report any problem on the <a href="mail-lists.html">mailing list</a>. </p> <p> Final release target is 20 October 2003. </p> </section> --> </body> </document> 1.1 jakarta-commons-sandbox/i18n/xdocs/images/i18n-logo-white.png <<Binary file>> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]