SerializerMessages_zh.java revision 9f8118474e9513f7a5b7d2a05e4a0fb15d1a6569
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the  "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *     http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18/*
19 * $Id: SerializerMessages_zh.java,v 1.7 2005/03/07 20:34:36 minchau Exp $
20 */
21
22
23package org.apache.xml.serializer.utils;
24
25import java.util.ListResourceBundle;
26import java.util.Locale;
27import java.util.MissingResourceException;
28import java.util.ResourceBundle;
29
30/**
31 * An instance of this class is a ListResourceBundle that
32 * has the required getContents() method that returns
33 * an array of message-key/message associations.
34 * <p>
35 * The message keys are defined in {@link MsgKey}. The
36 * messages that those keys map to are defined here.
37 * <p>
38 * The messages in the English version are intended to be
39 * translated.
40 *
41 * This class is not a public API, it is only public because it is
42 * used in org.apache.xml.serializer.
43 *
44 * @xsl.usage internal
45 */
46public class SerializerMessages_zh extends ListResourceBundle {
47
48    /*
49     * This file contains error and warning messages related to
50     * Serializer Error Handling.
51     *
52     *  General notes to translators:
53
54     *  1) A stylesheet is a description of how to transform an input XML document
55     *     into a resultant XML document (or HTML document or text).  The
56     *     stylesheet itself is described in the form of an XML document.
57
58     *
59     *  2) An element is a mark-up tag in an XML document; an attribute is a
60     *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>
61     *     "elem" is an element name, "attr" and "attr2" are attribute names with
62     *     the values "val" and "val2", respectively.
63     *
64     *  3) A namespace declaration is a special attribute that is used to associate
65     *     a prefix with a URI (the namespace).  The meanings of element names and
66     *     attribute names that use that prefix are defined with respect to that
67     *     namespace.
68     *
69     *
70     */
71
72    /** The lookup table for error messages.   */
73    public Object[][] getContents() {
74        Object[][] contents = new Object[][] {
75            {   MsgKey.BAD_MSGKEY,
76                "\u6d88\u606f\u5bc6\u94a5\u201c{0}\u201d\u4e0d\u5728\u6d88\u606f\u7c7b\u201c{1}\u201d\u4e2d" },
77
78            {   MsgKey.BAD_MSGFORMAT,
79                "\u6d88\u606f\u7c7b\u201c{1}\u201d\u4e2d\u7684\u6d88\u606f\u201c{0}\u201d\u7684\u683c\u5f0f\u65e0\u6548\u3002" },
80
81            {   MsgKey.ER_SERIALIZER_NOT_CONTENTHANDLER,
82                "\u4e32\u884c\u5668\u7c7b\u201c{0}\u201d\u4e0d\u80fd\u5b9e\u73b0 org.xml.sax.ContentHandler\u3002" },
83
84            {   MsgKey.ER_RESOURCE_COULD_NOT_FIND,
85                    "\u627e\u4e0d\u5230\u8d44\u6e90 [ {0} ]\u3002\n {1}" },
86
87            {   MsgKey.ER_RESOURCE_COULD_NOT_LOAD,
88                    "\u8d44\u6e90 [ {0} ] \u65e0\u6cd5\u88c5\u5165\uff1a{1} \n {2} \t {3}" },
89
90            {   MsgKey.ER_BUFFER_SIZE_LESSTHAN_ZERO,
91                    "\u7f13\u51b2\u533a\u5927\u5c0f <=0" },
92
93            {   MsgKey.ER_INVALID_UTF16_SURROGATE,
94                    "\u68c0\u6d4b\u5230\u65e0\u6548\u7684 UTF-16 \u8d85\u5927\u5b57\u7b26\u96c6\uff1a{0}\uff1f" },
95
96            {   MsgKey.ER_OIERROR,
97                "IO \u9519\u8bef" },
98
99            {   MsgKey.ER_ILLEGAL_ATTRIBUTE_POSITION,
100                "\u5728\u751f\u6210\u5b50\u8282\u70b9\u4e4b\u540e\u6216\u5728\u751f\u6210\u5143\u7d20\u4e4b\u524d\u65e0\u6cd5\u6dfb\u52a0\u5c5e\u6027 {0}\u3002\u5c06\u5ffd\u7565\u5c5e\u6027\u3002" },
101
102            /*
103             * Note to translators:  The stylesheet contained a reference to a
104             * namespace prefix that was undefined.  The value of the substitution
105             * text is the name of the prefix.
106             */
107            {   MsgKey.ER_NAMESPACE_PREFIX,
108                "\u5c1a\u672a\u58f0\u660e\u524d\u7f00\u201c{0}\u201d\u7684\u540d\u79f0\u7a7a\u95f4\u3002" },
109
110            /*
111             * Note to translators:  This message is reported if the stylesheet
112             * being processed attempted to construct an XML document with an
113             * attribute in a place other than on an element.  The substitution text
114             * specifies the name of the attribute.
115             */
116            {   MsgKey.ER_STRAY_ATTRIBUTE,
117                "\u5c5e\u6027\u201c{0}\u201d\u5728\u5143\u7d20\u5916\u3002" },
118
119            /*
120             * Note to translators:  As with the preceding message, a namespace
121             * declaration has the form of an attribute and is only permitted to
122             * appear on an element.  The substitution text {0} is the namespace
123             * prefix and {1} is the URI that was being used in the erroneous
124             * namespace declaration.
125             */
126            {   MsgKey.ER_STRAY_NAMESPACE,
127                "\u540d\u79f0\u7a7a\u95f4\u58f0\u660e\u201c{0}\u201d=\u201c{1}\u201d\u5728\u5143\u7d20\u5916\u3002" },
128
129            {   MsgKey.ER_COULD_NOT_LOAD_RESOURCE,
130                "\u65e0\u6cd5\u88c5\u5165\u201c{0}\u201d\uff08\u68c0\u67e5 CLASSPATH\uff09\uff0c\u73b0\u5728\u53ea\u4f7f\u7528\u7f3a\u7701\u503c" },
131
132            {   MsgKey.ER_ILLEGAL_CHARACTER,
133                "\u5c1d\u8bd5\u8f93\u51fa\u6574\u6570\u503c {0}\uff08\u5b83\u4e0d\u662f\u4ee5\u6307\u5b9a\u7684 {1} \u8f93\u51fa\u7f16\u7801\u8868\u793a\uff09\u7684\u5b57\u7b26\u3002" },
134
135            {   MsgKey.ER_COULD_NOT_LOAD_METHOD_PROPERTY,
136                "\u65e0\u6cd5\u4e3a\u8f93\u51fa\u65b9\u6cd5\u201c{1}\u201d\u88c5\u5165\u5c5e\u6027\u6587\u4ef6\u201c{0}\u201d\uff08\u68c0\u67e5 CLASSPATH\uff09" },
137
138            {   MsgKey.ER_INVALID_PORT,
139                "\u7aef\u53e3\u53f7\u65e0\u6548" },
140
141            {   MsgKey.ER_PORT_WHEN_HOST_NULL,
142                "\u4e3b\u673a\u4e3a\u7a7a\u65f6\uff0c\u65e0\u6cd5\u8bbe\u7f6e\u7aef\u53e3" },
143
144            {   MsgKey.ER_HOST_ADDRESS_NOT_WELLFORMED,
145                "\u4e3b\u673a\u4e0d\u662f\u683c\u5f0f\u6b63\u786e\u7684\u5730\u5740" },
146
147            {   MsgKey.ER_SCHEME_NOT_CONFORMANT,
148                "\u6a21\u5f0f\u4e0d\u4e00\u81f4\u3002" },
149
150            {   MsgKey.ER_SCHEME_FROM_NULL_STRING,
151                "\u65e0\u6cd5\u4ece\u7a7a\u5b57\u7b26\u4e32\u8bbe\u7f6e\u6a21\u5f0f" },
152
153            {   MsgKey.ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,
154                "\u8def\u5f84\u5305\u542b\u65e0\u6548\u7684\u8f6c\u4e49\u5e8f\u5217" },
155
156            {   MsgKey.ER_PATH_INVALID_CHAR,
157                "\u8def\u5f84\u5305\u542b\u65e0\u6548\u7684\u5b57\u7b26\uff1a{0}" },
158
159            {   MsgKey.ER_FRAG_INVALID_CHAR,
160                "\u7247\u6bb5\u5305\u542b\u65e0\u6548\u7684\u5b57\u7b26" },
161
162            {   MsgKey.ER_FRAG_WHEN_PATH_NULL,
163                "\u8def\u5f84\u4e3a\u7a7a\u65f6\uff0c\u65e0\u6cd5\u8bbe\u7f6e\u7247\u6bb5" },
164
165            {   MsgKey.ER_FRAG_FOR_GENERIC_URI,
166                "\u53ea\u80fd\u4e3a\u7c7b\u5c5e URI \u8bbe\u7f6e\u7247\u6bb5" },
167
168            {   MsgKey.ER_NO_SCHEME_IN_URI,
169                "URI \u4e2d\u627e\u4e0d\u5230\u4efb\u4f55\u6a21\u5f0f" },
170
171            {   MsgKey.ER_CANNOT_INIT_URI_EMPTY_PARMS,
172                "\u4e0d\u80fd\u4ee5\u7a7a\u53c2\u6570\u521d\u59cb\u5316 URI" },
173
174            {   MsgKey.ER_NO_FRAGMENT_STRING_IN_PATH,
175                "\u8def\u5f84\u548c\u7247\u6bb5\u4e2d\u90fd\u4e0d\u80fd\u6307\u5b9a\u7247\u6bb5" },
176
177            {   MsgKey.ER_NO_QUERY_STRING_IN_PATH,
178                "\u8def\u5f84\u548c\u67e5\u8be2\u5b57\u7b26\u4e32\u4e2d\u4e0d\u80fd\u6307\u5b9a\u67e5\u8be2\u5b57\u7b26\u4e32" },
179
180            {   MsgKey.ER_NO_PORT_IF_NO_HOST,
181                "\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u4e3b\u673a\uff0c\u5219\u4e0d\u53ef\u4ee5\u6307\u5b9a\u7aef\u53e3" },
182
183            {   MsgKey.ER_NO_USERINFO_IF_NO_HOST,
184                "\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u4e3b\u673a\uff0c\u5219\u4e0d\u53ef\u4ee5\u6307\u5b9a\u7528\u6237\u4fe1\u606f" },
185            {   MsgKey.ER_XML_VERSION_NOT_SUPPORTED,
186                "\u8b66\u544a\uff1a\u8981\u6c42\u8f93\u51fa\u6587\u6863\u7684\u7248\u672c\u662f\u201c{0}\u201d\u3002\u4e0d\u652f\u6301\u6b64 XML \u7248\u672c\u3002\u8f93\u51fa\u6587\u6863\u7684\u7248\u672c\u5c06\u4f1a\u662f\u201c1.0\u201d\u3002" },
187
188            {   MsgKey.ER_SCHEME_REQUIRED,
189                "\u6a21\u5f0f\u662f\u5fc5\u9700\u7684\uff01" },
190
191            /*
192             * Note to translators:  The words 'Properties' and
193             * 'SerializerFactory' in this message are Java class names
194             * and should not be translated.
195             */
196            {   MsgKey.ER_FACTORY_PROPERTY_MISSING,
197                "\u4f20\u9012\u7ed9 SerializerFactory \u7684 Properties \u5bf9\u8c61\u4e0d\u5177\u6709\u5c5e\u6027\u201c{0}\u201d\u3002" },
198
199             {MsgKey.ER_FEATURE_NOT_FOUND,
200             "\u672a\u8bc6\u522b\u51fa\u53c2\u6570\u201c{0}\u201d\u3002"},
201
202             {MsgKey.ER_FEATURE_NOT_SUPPORTED,
203             "\u5df2\u8bc6\u522b\u51fa\u53c2\u6570\u201c{0}\u201d\uff0c\u4f46\u65e0\u6cd5\u8bbe\u7f6e\u8bf7\u6c42\u7684\u503c\u3002"},
204
205             {MsgKey.ER_STRING_TOO_LONG,
206             "\u4ea7\u751f\u7684\u5b57\u7b26\u4e32\u8fc7\u957f\u4e0d\u80fd\u88c5\u5165 DOMString\uff1a\u201c{0}\u201d\u3002"},
207
208             {MsgKey.ER_TYPE_MISMATCH_ERR,
209             "\u6b64\u53c2\u6570\u540d\u79f0\u7684\u503c\u7c7b\u578b\u4e0e\u671f\u671b\u7684\u503c\u7c7b\u578b\u4e0d\u517c\u5bb9\u3002"},
210
211             {MsgKey.ER_NO_OUTPUT_SPECIFIED,
212             "\u5c06\u8981\u5199\u5165\u6570\u636e\u7684\u8f93\u51fa\u76ee\u6807\u4e3a\u7a7a\u3002"},
213
214             {MsgKey.ER_UNSUPPORTED_ENCODING,
215             "\u9047\u5230\u4e0d\u53d7\u652f\u6301\u7684\u7f16\u7801\u3002"},
216
217             {MsgKey.ER_UNABLE_TO_SERIALIZE_NODE,
218             "\u65e0\u6cd5\u5c06\u8282\u70b9\u5e8f\u5217\u5316\u3002 "},
219
220             {MsgKey.ER_CDATA_SECTIONS_SPLIT,
221             "CDATA \u90e8\u5206\u5305\u542b\u4e00\u4e2a\u6216\u591a\u4e2a\u7ec8\u6b62\u6807\u8bb0\u201c]]>\u201d\u3002"},
222
223             {MsgKey.ER_WARNING_WF_NOT_CHECKED,
224                 "\u65e0\u6cd5\u521b\u5efa\u683c\u5f0f\u6b63\u786e\u6027\u68c0\u67e5\u5668\u7684\u5b9e\u4f8b\u3002\u201c\u683c\u5f0f\u6b63\u786e\u201d\u53c2\u6570\u5df2\u8bbe\u7f6e\u4e3a true\uff0c\u4f46\u65e0\u6cd5\u6267\u884c\u683c\u5f0f\u6b63\u786e\u6027\u68c0\u67e5\u3002"
225             },
226
227             {MsgKey.ER_WF_INVALID_CHARACTER,
228                 "\u8282\u70b9\u201c{0}\u201d\u5305\u542b\u65e0\u6548\u7684 XML \u5b57\u7b26\u3002"
229             },
230
231             { MsgKey.ER_WF_INVALID_CHARACTER_IN_COMMENT,
232                 "\u5728\u6ce8\u91ca\u4e2d\u627e\u5230\u65e0\u6548\u7684 XML \u5b57\u7b26 (Unicode: 0x''{0})''\u3002"
233             },
234
235             { MsgKey.ER_WF_INVALID_CHARACTER_IN_PI,
236                 "\u5728\u5904\u7406\u6307\u4ee4\u6570\u636e\u4e2d\u627e\u5230\u65e0\u6548\u7684 XML \u5b57\u7b26 (Unicode: 0x''{0})''\u3002"
237             },
238
239             { MsgKey.ER_WF_INVALID_CHARACTER_IN_CDATA,
240                 "\u5728 CDATA \u90e8\u5206\u7684\u5185\u5bb9\u4e2d\u627e\u5230\u65e0\u6548\u7684 XML \u5b57\u7b26 (Unicode: 0x''{0})''\u3002"
241             },
242
243             { MsgKey.ER_WF_INVALID_CHARACTER_IN_TEXT,
244                 "\u5728\u8282\u70b9\u7684\u5b57\u7b26\u6570\u636e\u5185\u5bb9\u4e2d\u627e\u5230\u65e0\u6548\u7684 XML \u5b57\u7b26 (Unicode: 0x''{0})''\u3002"
245             },
246
247             { MsgKey.ER_WF_INVALID_CHARACTER_IN_NODE_NAME,
248                 "\u540d\u79f0\u4e3a\u201c{1})\u201d\u7684\u201c{0})\u201d\u4e2d\u627e\u5230\u65e0\u6548\u7684 XML \u5b57\u7b26\u3002"
249             },
250
251             { MsgKey.ER_WF_DASH_IN_COMMENT,
252                 "\u6ce8\u91ca\u4e2d\u4e0d\u5141\u8bb8\u6709\u5b57\u7b26\u4e32\u201c--\u201d\u3002"
253             },
254
255             {MsgKey.ER_WF_LT_IN_ATTVAL,
256                 "\u4e0e\u5143\u7d20\u7c7b\u578b\u201c{0}\u201d\u5173\u8054\u7684\u5c5e\u6027\u201c{1}\u201d\u7684\u503c\u4e0d\u5f97\u5305\u542b\u201c<\u201d\u5b57\u7b26\u3002"
257             },
258
259             {MsgKey.ER_WF_REF_TO_UNPARSED_ENT,
260                 "\u4e0d\u5141\u8bb8\u6709\u672a\u89e3\u6790\u7684\u5b9e\u4f53\u5f15\u7528\u201c&{0};\u201d\u3002"
261             },
262
263             {MsgKey.ER_WF_REF_TO_EXTERNAL_ENT,
264                 "\u5c5e\u6027\u503c\u4e2d\u4e0d\u5141\u8bb8\u6709\u5916\u90e8\u5b9e\u4f53\u5f15\u7528\u201c&{0};\u201d\u3002"
265             },
266
267             {MsgKey.ER_NS_PREFIX_CANNOT_BE_BOUND,
268                 "\u524d\u7f00\u201c{0}\u201d\u4e0d\u80fd\u7ed1\u5b9a\u5230\u540d\u79f0\u7a7a\u95f4\u201c{1}\u201d\u3002"
269             },
270
271             {MsgKey.ER_NULL_LOCAL_ELEMENT_NAME,
272                 "\u5143\u7d20\u201c{0}\u201d\u7684\u5c40\u90e8\u540d\u4e3a\u7a7a\u3002"
273             },
274
275             {MsgKey.ER_NULL_LOCAL_ATTR_NAME,
276                 "\u5c5e\u6027\u201c{0}\u201d\u7684\u5c40\u90e8\u540d\u4e3a\u7a7a\u3002"
277             },
278
279             { MsgKey.ER_ELEM_UNBOUND_PREFIX_IN_ENTREF,
280                 "\u5b9e\u4f53\u8282\u70b9\u201c{0}\u201d\u7684\u66ff\u4ee3\u6587\u672c\u4e2d\u5305\u542b\u5143\u7d20\u8282\u70b9\u201c{1}\u201d\uff0c\u8be5\u8282\u70b9\u5177\u6709\u672a\u7ed1\u5b9a\u7684\u524d\u7f00\u201c{2}\u201d\u3002"
281             },
282
283             { MsgKey.ER_ATTR_UNBOUND_PREFIX_IN_ENTREF,
284                 "\u5b9e\u4f53\u8282\u70b9\u201c{0}\u201d\u7684\u66ff\u4ee3\u6587\u672c\u4e2d\u5305\u542b\u5c5e\u6027\u8282\u70b9\u201c{1}\u201d\uff0c\u8be5\u8282\u70b9\u5177\u6709\u672a\u7ed1\u5b9a\u7684\u524d\u7f00\u201c{2}\u201d\u3002"
285             },
286
287        };
288
289        return contents;
290    }
291}
292