xslterrorresources_zh_tw.java

来自「java jdk 1.4的源码」· Java 代码 · 共 2,473 行 · 第 1/5 页

JAVA
2,473
字号
/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 The Apache Software Foundation.  All rights  * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer.  * * 2. 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. * * 3. The end-user documentation included with the redistribution, *    if any, must include the following acknowledgment:   *       "This product includes software developed by the *        Apache Software Foundation (http://www.apache.org/)." *    Alternately, this acknowledgment may appear in the software itself, *    if and wherever such third-party acknowledgments normally appear. * * 4. The names "Xalan" and "Apache Software Foundation" must *    not be used to endorse or promote products derived from this *    software without prior written permission. For written  *    permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", *    nor may "Apache" appear in their name, without prior written *    permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 APACHE SOFTWARE FOUNDATION OR * ITS 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, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2002, Sun Microsystems, * Inc., http://www.sun.com.  For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */package org.apache.xalan.res;import org.apache.xml.utils.res.XResourceBundleBase;import java.util.MissingResourceException;import java.util.Locale;import java.util.ResourceBundle;import java.text.DecimalFormat;import org.apache.xalan.templates.Constants;/** * Set up error messages. * We build a two dimensional array of message keys and * message strings. In order to add a new message here, * you need to first add a String constant. And *  you need to enter key , value pair as part of contents * Array. You also need to update MAX_CODE for error strings * and MAX_WARNING for warnings ( Needed for only information * purpose ) */public class XSLTErrorResources_zh_TW extends XSLTErrorResources{   /** Maximum error messages, this is needed to keep track of the number of messages.    */  public static final int MAX_CODE = 253;            /** Maximum warnings, this is needed to keep track of the number of warnings.          */  public static final int MAX_WARNING = 29;   /** Maximum misc strings.   */  public static final int MAX_OTHERS = 55;  /** Maximum total warnings and error messages.          */  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;  /** The lookup table for error messages.   */  public static final Object[][] contents = {  /** Error message ID that has a null message, but takes in a single object.    */  //public static final int ERROR0000 = 0;  {    "ERROR0000", "{0}"},  /** ER_NO_CURLYBRACE          */  //public static final int ER_NO_CURLYBRACE = 1;  {    ER_NO_CURLYBRACE,      "\u932f\u8aa4\uff1a\u5728\u8868\u793a\u5f0f\u5167\u4e0d\u80fd\u6709 '{'"},  /** ER_ILLEGAL_ATTRIBUTE          */  //public static final int ER_ILLEGAL_ATTRIBUTE = 2;  {    ER_ILLEGAL_ATTRIBUTE, "{0} \u542b\u6709\u4e0d\u6b63\u78ba\u5c6c\u6027\uff1a{1}"},  /** ER_NULL_SOURCENODE_APPLYIMPORTS          */  //public static final int ER_NULL_SOURCENODE_APPLYIMPORTS = 3;  {    ER_NULL_SOURCENODE_APPLYIMPORTS,      "\u5728 xsl:apply-imports \u4e2d\u7684 sourceNode \u70ba\u7a7a\u503c\uff01"},  /** ER_CANNOT_ADD          */  //public static final int ER_CANNOT_ADD = 4;  {    ER_CANNOT_ADD, "\u7121\u6cd5\u5c07 {0} \u65b0\u589e\u81f3 {1}"},  /** ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES          */  //public static final int ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES = 5;  {    ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES,      "\u5728 handleApplyTemplatesInstruction \u4e2d\u7684 sourceNode \u70ba\u7a7a\u503c\uff01"},  /** ER_NO_NAME_ATTRIB          */  //public static final int ER_NO_NAME_ATTRIB = 6;  {    ER_NO_NAME_ATTRIB, "{0} \u5fc5\u9808\u6709 name \u5c6c\u6027\u3002 "},  /** ER_TEMPLATE_NOT_FOUND          */  //public static final int ER_TEMPLATE_NOT_FOUND = 7;  {    ER_TEMPLATE_NOT_FOUND, "\u627e\u4e0d\u5230\u540d\u7a31\u70ba {0} \u7684\u7bc4\u672c"},  /** ER_CANT_RESOLVE_NAME_AVT          */  //public static final int ER_CANT_RESOLVE_NAME_AVT = 8;  {    ER_CANT_RESOLVE_NAME_AVT,      "\u7121\u6cd5\u89e3\u8b6f xsl:call-template \u4e2d\u7684\u540d\u7a31 AVT\u3002"},  /** ER_REQUIRES_ATTRIB          */  //public static final int ER_REQUIRES_ATTRIB = 9;  {    ER_REQUIRES_ATTRIB, "{0} \u9700\u8981\u5c6c\u6027\uff1a{1}"},  /** ER_MUST_HAVE_TEST_ATTRIB          */  //public static final int ER_MUST_HAVE_TEST_ATTRIB = 10;  {    ER_MUST_HAVE_TEST_ATTRIB,      "{0} \u5fc5\u9808\u6709 ''test'' \u5c6c\u6027\u3002"},  /** ER_BAD_VAL_ON_LEVEL_ATTRIB          */  //public static final int ER_BAD_VAL_ON_LEVEL_ATTRIB = 11;  {    ER_BAD_VAL_ON_LEVEL_ATTRIB,      "level \u5c6c\u6027 {0} \u4e0a\u7684\u503c\u932f\u8aa4"},  /** ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */  //public static final int ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 12;  {    ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,      "processing-instruction \u540d\u7a31\u4e0d\u5f97\u70ba 'xml'"},  /** ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */  //public static final int ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 13;  {    ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,      "processing-instruction \u540d\u7a31\u5fc5\u9808\u662f\u6709\u6548\u7684 NCName\uff1a{0}"},  /** ER_NEED_MATCH_ATTRIB          */  //public static final int ER_NEED_MATCH_ATTRIB = 14;  {    ER_NEED_MATCH_ATTRIB,      "\u5982\u679c {0} \u6709\u6a21\u5f0f\u7684\u8a71\uff0c\u5247\u5b83\u5fc5\u9808\u6709 match \u5c6c\u6027\u3002"},  /** ER_NEED_NAME_OR_MATCH_ATTRIB          */  //public static final int ER_NEED_NAME_OR_MATCH_ATTRIB = 15;  {    ER_NEED_NAME_OR_MATCH_ATTRIB,      "{0} \u9700\u8981 name \u6216 match \u5c6c\u6027\u3002"},  /** ER_CANT_RESOLVE_NSPREFIX          */  //public static final int ER_CANT_RESOLVE_NSPREFIX = 16;  {    ER_CANT_RESOLVE_NSPREFIX,      "\u7121\u6cd5\u89e3\u8b6f\u540d\u7a31\u7a7a\u9593\u524d\u7f6e\uff1a{0}"},  /** ER_ILLEGAL_VALUE          */  //public static final int ER_ILLEGAL_VALUE = 17;  {    ER_ILLEGAL_VALUE, "xml:space \u542b\u6709\u4e0d\u5408\u898f\u5247\u7684\u503c\uff1a{0}"},  /** ER_NO_OWNERDOC          */  //public static final int ER_NO_OWNERDOC = 18;  {    ER_NO_OWNERDOC,      "\u5b50\u9805\u7bc0\u9ede\u6c92\u6709\u64c1\u6709\u8005\u6587\u4ef6\uff01"},  /** ER_ELEMTEMPLATEELEM_ERR          */  //public static final int ER_ELEMTEMPLATEELEM_ERR = 19;  {    ER_ELEMTEMPLATEELEM_ERR, "ElemTemplateElement \u932f\u8aa4\uff1a{0}"},  /** ER_NULL_CHILD          */  //public static final int ER_NULL_CHILD = 20;  {    ER_NULL_CHILD, "\u5617\u8a66\u65b0\u589e\u7a7a\u7684\u5b50\u9805\uff01"},  /** ER_NEED_SELECT_ATTRIB          */  //public static final int ER_NEED_SELECT_ATTRIB = 21;  {    ER_NEED_SELECT_ATTRIB, "{0} \u9700\u8981 select \u5c6c\u6027\u3002"},  /** ER_NEED_TEST_ATTRIB          */  //public static final int ER_NEED_TEST_ATTRIB = 22;  {    ER_NEED_TEST_ATTRIB,      "xsl:when \u5fc5\u9808\u6709 'test' \u5c6c\u6027\u3002"},  /** ER_NEED_NAME_ATTRIB          */  //public static final int ER_NEED_NAME_ATTRIB = 23;  {    ER_NEED_NAME_ATTRIB,      "xsl:with-param \u5fc5\u9808\u6709 'name' \u5c6c\u6027\u3002"},  /** ER_NO_CONTEXT_OWNERDOC          */  //public static final int ER_NO_CONTEXT_OWNERDOC = 24;  {    ER_NO_CONTEXT_OWNERDOC,      "\u4e0a\u4e0b\u6587\u4e0d\u542b\u64c1\u6709\u8005\u6587\u4ef6\uff01"},  /** ER_COULD_NOT_CREATE_XML_PROC_LIAISON          */  //public static final int ER_COULD_NOT_CREATE_XML_PROC_LIAISON = 25;  {    ER_COULD_NOT_CREATE_XML_PROC_LIAISON,      "\u7121\u6cd5\u5efa\u7acb XML TransformerFactory Liaison\uff1a{0}"},  /** ER_PROCESS_NOT_SUCCESSFUL          */  //public static final int ER_PROCESS_NOT_SUCCESSFUL = 26;  {    ER_PROCESS_NOT_SUCCESSFUL,      "Xalan: \u8655\u7406\u4e0d\u6210\u529f\u3002"},  /** ER_NOT_SUCCESSFUL          */  //public static final int ER_NOT_SUCCESSFUL = 27;  {    ER_NOT_SUCCESSFUL, "Xalan: \u4e0d\u6210\u529f\u3002"},  /** ER_ENCODING_NOT_SUPPORTED          */  //public static final int ER_ENCODING_NOT_SUPPORTED = 28;  {    ER_ENCODING_NOT_SUPPORTED, "\u4e0d\u652f\u63f4\u7de8\u78bc\uff1a{0}"},  /** ER_COULD_NOT_CREATE_TRACELISTENER          */  //public static final int ER_COULD_NOT_CREATE_TRACELISTENER = 29;  {    ER_COULD_NOT_CREATE_TRACELISTENER,      "\u7121\u6cd5\u5efa\u7acb TraceListener\uff1a{0}"},  /** ER_KEY_REQUIRES_NAME_ATTRIB          */  //public static final int ER_KEY_REQUIRES_NAME_ATTRIB = 30;  {    ER_KEY_REQUIRES_NAME_ATTRIB,      "xsl:key \u9700\u8981 'name' \u5c6c\u6027\uff01"},  /** ER_KEY_REQUIRES_MATCH_ATTRIB          */  //public static final int ER_KEY_REQUIRES_MATCH_ATTRIB = 31;  {    ER_KEY_REQUIRES_MATCH_ATTRIB,      "xsl:key \u9700\u8981 'match' \u5c6c\u6027\uff01"},  /** ER_KEY_REQUIRES_USE_ATTRIB          */  //public static final int ER_KEY_REQUIRES_USE_ATTRIB = 32;  {    ER_KEY_REQUIRES_USE_ATTRIB,      "xsl:key \u9700\u8981 'use' \u5c6c\u6027\uff01"},  /** ER_REQUIRES_ELEMENTS_ATTRIB          */  //public static final int ER_REQUIRES_ELEMENTS_ATTRIB = 33;  {    ER_REQUIRES_ELEMENTS_ATTRIB,      "(StylesheetHandler) {0} \u9700\u8981 ''elements'' \u5c6c\u6027\uff01"},  /** ER_MISSING_PREFIX_ATTRIB          */  //public static final int ER_MISSING_PREFIX_ATTRIB = 34;  {    ER_MISSING_PREFIX_ATTRIB,      "(StylesheetHandler) {0} \u5c6c\u6027 ''prefix'' \u907a\u6f0f"},  /** ER_BAD_STYLESHEET_URL          */  //public static final int ER_BAD_STYLESHEET_URL = 35;  {    ER_BAD_STYLESHEET_URL, "\u6a23\u5f0f\u8868 URL \u932f\u8aa4\uff1a{0}"},  /** ER_FILE_NOT_FOUND          */  //public static final int ER_FILE_NOT_FOUND = 36;  {    ER_FILE_NOT_FOUND, "\u627e\u4e0d\u5230\u6a23\u5f0f\u8868\u6a94\u6848\uff1a{0}"},  /** ER_IOEXCEPTION          */  //public static final int ER_IOEXCEPTION = 37;  {    ER_IOEXCEPTION,      "\u6a23\u5f0f\u8868\u6a94\u6848 {0} \u6709\u8f38\u5165/\u8f38\u51fa (I/O) \u7570\u5e38"},  /** ER_NO_HREF_ATTRIB          */  //public static final int ER_NO_HREF_ATTRIB = 38;  {    ER_NO_HREF_ATTRIB,      "(StylesheetHandler) \u627e\u4e0d\u5230 {0} \u7684 href \u5c6c\u6027"},  /** ER_STYLESHEET_INCLUDES_ITSELF          */  //public static final int ER_STYLESHEET_INCLUDES_ITSELF = 39;  {    ER_STYLESHEET_INCLUDES_ITSELF,      "(StylesheetHandler) {0} \u76f4\u63a5\u6216\u9593\u63a5\u5305\u542b\u672c\u8eab\uff01"},  /** ER_PROCESSINCLUDE_ERROR          */  //public static final int ER_PROCESSINCLUDE_ERROR = 40;  {    ER_PROCESSINCLUDE_ERROR,      "StylesheetHandler.processInclude \u932f\u8aa4\uff1a{0}"},  /** ER_MISSING_LANG_ATTRIB          */  //public static final int ER_MISSING_LANG_ATTRIB = 41;  {    ER_MISSING_LANG_ATTRIB,      "(StylesheetHandler) {0} \u5c6c\u6027 ''lang'' \u907a\u6f0f"},  /** ER_MISSING_CONTAINER_ELEMENT_COMPONENT          */  //public static final int ER_MISSING_CONTAINER_ELEMENT_COMPONENT = 42;  {    ER_MISSING_CONTAINER_ELEMENT_COMPONENT,      "(StylesheetHandler) \u8aa4\u7f6e {0} \u5143\u7d20\uff1f\uff1f \u907a\u6f0f container \u5143\u7d20 ''component''"},  /** ER_CAN_ONLY_OUTPUT_TO_ELEMENT          */  //public static final int ER_CAN_ONLY_OUTPUT_TO_ELEMENT = 43;  {    ER_CAN_ONLY_OUTPUT_TO_ELEMENT,      "\u53ea\u80fd\u8f38\u51fa\u81f3 Element\u3001DocumentFragment\u3001Document \u6216 PrintWriter\u3002"},  /** ER_PROCESS_ERROR          */  //public static final int ER_PROCESS_ERROR = 44;  {    ER_PROCESS_ERROR, "StylesheetRoot.process \u932f\u8aa4"},  /** ER_UNIMPLNODE_ERROR          */  //public static final int ER_UNIMPLNODE_ERROR = 45;  {    ER_UNIMPLNODE_ERROR, "UnImplNode \u932f\u8aa4\uff1a{0}"},

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?