16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
17 * See the License for the specific language governing permissions and |
17 * See the License for the specific language governing permissions and |
18 * limitations under the License. |
18 * limitations under the License. |
19 */ |
19 */ |
20 /* |
20 /* |
21 * $Id: SerializerMessages_zh_TW.java,v 1.1.4.1 2005/09/08 11:03:18 suresh_emailid Exp $ |
21 * $Id: SerializerMessages_zh_TW.java /st_wptg_1.8.0.0.0jdk/2 2013/09/14 02:16:34 gmolloy Exp $ |
22 */ |
22 */ |
23 |
|
24 package com.sun.org.apache.xml.internal.serializer.utils; |
23 package com.sun.org.apache.xml.internal.serializer.utils; |
25 |
24 |
26 import java.util.ListResourceBundle; |
25 import java.util.ListResourceBundle; |
27 |
26 import java.util.Locale; |
|
27 import java.util.MissingResourceException; |
|
28 import 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 com.sun.org.apache.xml.internal.serializer. |
|
43 * |
|
44 * @xsl.usage internal |
|
45 */ |
28 public class SerializerMessages_zh_TW extends ListResourceBundle { |
46 public class SerializerMessages_zh_TW extends ListResourceBundle { |
29 public Object[][] getContents() { |
47 |
30 Object[][] contents = new Object[][] { |
48 /* |
31 // BAD_MSGKEY needs translation |
49 * This file contains error and warning messages related to |
32 // BAD_MSGFORMAT needs translation |
50 * Serializer Error Handling. |
33 { MsgKey.ER_SERIALIZER_NOT_CONTENTHANDLER, |
51 * |
34 "serializer \u985e\u5225 ''{0}'' \u4e0d\u5be6\u4f5c org.xml.sax.ContentHandler\u3002"}, |
52 * General notes to translators: |
35 |
53 |
36 { MsgKey.ER_RESOURCE_COULD_NOT_FIND, |
54 * 1) A stylesheet is a description of how to transform an input XML document |
37 "\u627e\u4e0d\u5230\u8cc7\u6e90 [ {0} ]\u3002\n{1}"}, |
55 * into a resultant XML document (or HTML document or text). The |
38 |
56 * stylesheet itself is described in the form of an XML document. |
39 { MsgKey.ER_RESOURCE_COULD_NOT_LOAD, |
57 |
40 "\u7121\u6cd5\u8f09\u5165\u8cc7\u6e90 [ {0} ]\uff1a{1} \n {2} \n {3}"}, |
58 * |
41 |
59 * 2) An element is a mark-up tag in an XML document; an attribute is a |
42 { MsgKey.ER_BUFFER_SIZE_LESSTHAN_ZERO, |
60 * modifier on the tag. For example, in <elem attr='val' attr2='val2'> |
43 "\u7de9\u885d\u5340\u5927\u5c0f <=0"}, |
61 * "elem" is an element name, "attr" and "attr2" are attribute names with |
44 |
62 * the values "val" and "val2", respectively. |
45 { MsgKey.ER_INVALID_UTF16_SURROGATE, |
63 * |
46 "\u5075\u6e2c\u5230\u7121\u6548\u7684 UTF-16 \u4ee3\u7406\uff1a{0}?"}, |
64 * 3) A namespace declaration is a special attribute that is used to associate |
47 |
65 * a prefix with a URI (the namespace). The meanings of element names and |
48 { MsgKey.ER_OIERROR, |
66 * attribute names that use that prefix are defined with respect to that |
49 "IO \u932f\u8aa4"}, |
67 * namespace. |
50 |
68 * |
51 { MsgKey.ER_ILLEGAL_ATTRIBUTE_POSITION, |
69 * |
52 "\u5728\u7522\u751f\u5b50\u9805\u7bc0\u9ede\u4e4b\u5f8c\uff0c\u6216\u5728\u7522\u751f\u5143\u7d20\u4e4b\u524d\uff0c\u4e0d\u53ef\u65b0\u589e\u5c6c\u6027 {0}\u3002\u5c6c\u6027\u6703\u88ab\u5ffd\u7565\u3002"}, |
70 */ |
53 |
71 |
54 { MsgKey.ER_NAMESPACE_PREFIX, |
72 /** The lookup table for error messages. */ |
55 "\u5b57\u9996 ''{0}'' \u7684\u540d\u7a31\u7a7a\u9593\u5c1a\u672a\u5ba3\u544a\u3002"}, |
73 public Object[][] getContents() { |
56 |
74 Object[][] contents = new Object[][] { |
57 // ER_STRAY_ATTRIBUTE needs translation |
75 { MsgKey.BAD_MSGKEY, |
58 { MsgKey.ER_STRAY_NAMESPACE, |
76 "\u8A0A\u606F\u7D22\u5F15\u9375 ''{0}'' \u7684\u8A0A\u606F\u985E\u5225\u4E0D\u662F ''{1}''" }, |
59 "\u540d\u7a31\u7a7a\u9593\u5ba3\u544a ''{0}''=''{1}'' \u8d85\u51fa\u5143\u7d20\u5916\u3002"}, |
77 |
60 |
78 { MsgKey.BAD_MSGFORMAT, |
61 { MsgKey.ER_COULD_NOT_LOAD_RESOURCE, |
79 "\u8A0A\u606F\u985E\u5225 ''{1}'' \u4E2D\u7684\u8A0A\u606F ''{0}'' \u683C\u5F0F\u4E0D\u6B63\u78BA\u3002" }, |
62 "\u7121\u6cd5\u8f09\u5165 ''{0}''\uff08\u6aa2\u67e5 CLASSPATH\uff09\uff0c\u76ee\u524d\u53ea\u4f7f\u7528\u9810\u8a2d\u503c"}, |
80 |
63 |
81 { MsgKey.ER_SERIALIZER_NOT_CONTENTHANDLER, |
64 // ER_ILLEGAL_CHARACTER needs translation |
82 "serializer \u985E\u5225 ''{0}'' \u4E0D\u5BE6\u884C org.xml.sax.ContentHandler\u3002" }, |
65 { MsgKey.ER_COULD_NOT_LOAD_METHOD_PROPERTY, |
83 |
66 "\u7121\u6cd5\u8f09\u5165\u8f38\u51fa\u65b9\u6cd5 ''{1}'' \u7684\u5167\u5bb9\u6a94 ''{0}''\uff08\u6aa2\u67e5 CLASSPATH\uff09"}, |
84 { MsgKey.ER_RESOURCE_COULD_NOT_FIND, |
67 |
85 "\u627E\u4E0D\u5230\u8CC7\u6E90 [ {0} ]\u3002\n{1}" }, |
68 { MsgKey.ER_INVALID_PORT, |
86 |
69 "\u7121\u6548\u7684\u57e0\u7de8\u865f"}, |
87 { MsgKey.ER_RESOURCE_COULD_NOT_LOAD, |
70 |
88 "\u7121\u6CD5\u8F09\u5165\u8CC7\u6E90 [ {0} ]: {1} \n {2} \t {3}" }, |
71 { MsgKey.ER_PORT_WHEN_HOST_NULL, |
89 |
72 "\u4e3b\u6a5f\u70ba\u7a7a\u503c\u6642\uff0c\u7121\u6cd5\u8a2d\u5b9a\u57e0"}, |
90 { MsgKey.ER_BUFFER_SIZE_LESSTHAN_ZERO, |
73 |
91 "\u7DE9\u885D\u5340\u5927\u5C0F <=0" }, |
74 { MsgKey.ER_HOST_ADDRESS_NOT_WELLFORMED, |
92 |
75 "\u4e3b\u6a5f\u6c92\u6709\u5b8c\u6574\u7684\u4f4d\u5740"}, |
93 { MsgKey.ER_INVALID_UTF16_SURROGATE, |
76 |
94 "\u5075\u6E2C\u5230\u7121\u6548\u7684 UTF-16 \u4EE3\u7406: {0}\uFF1F" }, |
77 { MsgKey.ER_SCHEME_NOT_CONFORMANT, |
95 |
78 "\u7db1\u8981\u4e0d\u662f conformant\u3002"}, |
96 { MsgKey.ER_OIERROR, |
79 |
97 "IO \u932F\u8AA4" }, |
80 { MsgKey.ER_SCHEME_FROM_NULL_STRING, |
98 |
81 "\u7121\u6cd5\u5f9e\u7a7a\u5b57\u4e32\u8a2d\u5b9a\u7db1\u8981"}, |
99 { MsgKey.ER_ILLEGAL_ATTRIBUTE_POSITION, |
82 |
100 "\u5728\u7522\u751F\u5B50\u9805\u7BC0\u9EDE\u4E4B\u5F8C\uFF0C\u6216\u5728\u7522\u751F\u5143\u7D20\u4E4B\u524D\uFF0C\u4E0D\u53EF\u65B0\u589E\u5C6C\u6027 {0}\u3002\u5C6C\u6027\u6703\u88AB\u5FFD\u7565\u3002" }, |
83 { MsgKey.ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE, |
101 |
84 "\u8def\u5f91\u5305\u542b\u7121\u6548\u7684\u8df3\u812b\u5b57\u5143"}, |
102 /* |
85 |
103 * Note to translators: The stylesheet contained a reference to a |
86 { MsgKey.ER_PATH_INVALID_CHAR, |
104 * namespace prefix that was undefined. The value of the substitution |
87 "\u8def\u5f91\u5305\u542b\u7121\u6548\u7684\u5b57\u5143\uff1a{0}"}, |
105 * text is the name of the prefix. |
88 |
106 */ |
89 { MsgKey.ER_FRAG_INVALID_CHAR, |
107 { MsgKey.ER_NAMESPACE_PREFIX, |
90 "\u7247\u6bb5\u5305\u542b\u7121\u6548\u7684\u5b57\u5143"}, |
108 "\u5B57\u9996 ''{0}'' \u7684\u547D\u540D\u7A7A\u9593\u5C1A\u672A\u5BA3\u544A\u3002" }, |
91 |
109 |
92 { MsgKey.ER_FRAG_WHEN_PATH_NULL, |
110 /* |
93 "\u8def\u5f91\u70ba\u7a7a\u503c\u6642\uff0c\u7121\u6cd5\u8a2d\u5b9a\u7247\u6bb5"}, |
111 * Note to translators: This message is reported if the stylesheet |
94 |
112 * being processed attempted to construct an XML document with an |
95 { MsgKey.ER_FRAG_FOR_GENERIC_URI, |
113 * attribute in a place other than on an element. The substitution text |
96 "\u53ea\u80fd\u5c0d\u901a\u7528\u7684 URI \u8a2d\u5b9a\u7247\u6bb5"}, |
114 * specifies the name of the attribute. |
97 |
115 */ |
98 { MsgKey.ER_NO_SCHEME_IN_URI, |
116 { MsgKey.ER_STRAY_ATTRIBUTE, |
99 "\u5728 URI\uff1a{0} \u627e\u4e0d\u5230\u7db1\u8981"}, |
117 "\u5C6C\u6027 ''{0}'' \u5728\u5143\u7D20\u4E4B\u5916\u3002" }, |
100 |
118 |
101 { MsgKey.ER_CANNOT_INIT_URI_EMPTY_PARMS, |
119 /* |
102 "\u7121\u6cd5\u4ee5\u7a7a\u767d\u53c3\u6578\u8d77\u59cb\u8a2d\u5b9a URI"}, |
120 * Note to translators: As with the preceding message, a namespace |
103 |
121 * declaration has the form of an attribute and is only permitted to |
104 { MsgKey.ER_NO_FRAGMENT_STRING_IN_PATH, |
122 * appear on an element. The substitution text {0} is the namespace |
105 "\u7247\u6bb5\u7121\u6cd5\u540c\u6642\u5728\u8def\u5f91\u548c\u7247\u6bb5\u4e2d\u6307\u5b9a"}, |
123 * prefix and {1} is the URI that was being used in the erroneous |
106 |
124 * namespace declaration. |
107 { MsgKey.ER_NO_QUERY_STRING_IN_PATH, |
125 */ |
108 "\u5728\u8def\u5f91\u53ca\u67e5\u8a62\u5b57\u4e32\u4e2d\u4e0d\u53ef\u6307\u5b9a\u67e5\u8a62\u5b57\u4e32"}, |
126 { MsgKey.ER_STRAY_NAMESPACE, |
109 |
127 "\u547D\u540D\u7A7A\u9593\u5BA3\u544A ''{0}''=''{1}'' \u8D85\u51FA\u5143\u7D20\u5916\u3002" }, |
110 { MsgKey.ER_NO_PORT_IF_NO_HOST, |
128 |
111 "\u5982\u679c\u6c92\u6709\u6307\u5b9a\u4e3b\u6a5f\uff0c\u4e0d\u53ef\u6307\u5b9a\u57e0"}, |
129 { MsgKey.ER_COULD_NOT_LOAD_RESOURCE, |
112 |
130 "\u7121\u6CD5\u8F09\u5165 ''{0}'' (\u6AA2\u67E5 CLASSPATH)\uFF0C\u76EE\u524D\u53EA\u4F7F\u7528\u9810\u8A2D\u503C" }, |
113 { MsgKey.ER_NO_USERINFO_IF_NO_HOST, |
131 |
114 "\u5982\u679c\u6c92\u6709\u6307\u5b9a\u4e3b\u6a5f\uff0c\u4e0d\u53ef\u6307\u5b9a Userinfo"}, |
132 { MsgKey.ER_ILLEGAL_CHARACTER, |
115 |
133 "\u5617\u8A66\u8F38\u51FA\u6574\u6578\u503C {0} \u7684\u5B57\u5143\uFF0C\u4F46\u662F\u5B83\u4E0D\u662F\u4EE5\u6307\u5B9A\u7684 {1} \u8F38\u51FA\u7DE8\u78BC\u5448\u73FE\u3002" }, |
116 { MsgKey.ER_SCHEME_REQUIRED, |
134 |
117 "\u7db1\u8981\u662f\u5fc5\u9700\u7684\uff01"} |
135 { MsgKey.ER_COULD_NOT_LOAD_METHOD_PROPERTY, |
118 |
136 "\u7121\u6CD5\u8F09\u5165\u8F38\u51FA\u65B9\u6CD5 ''{1}'' \u7684\u5C6C\u6027\u6A94 ''{0}'' (\u6AA2\u67E5 CLASSPATH)" }, |
119 }; |
137 |
120 return contents; |
138 { MsgKey.ER_INVALID_PORT, |
121 } |
139 "\u7121\u6548\u7684\u9023\u63A5\u57E0\u865F\u78BC" }, |
|
140 |
|
141 { MsgKey.ER_PORT_WHEN_HOST_NULL, |
|
142 "\u4E3B\u6A5F\u70BA\u7A7A\u503C\u6642\uFF0C\u7121\u6CD5\u8A2D\u5B9A\u9023\u63A5\u57E0" }, |
|
143 |
|
144 { MsgKey.ER_HOST_ADDRESS_NOT_WELLFORMED, |
|
145 "\u4E3B\u6A5F\u6C92\u6709\u5B8C\u6574\u7684\u4F4D\u5740" }, |
|
146 |
|
147 { MsgKey.ER_SCHEME_NOT_CONFORMANT, |
|
148 "\u914D\u7F6E\u4E0D\u4E00\u81F4\u3002" }, |
|
149 |
|
150 { MsgKey.ER_SCHEME_FROM_NULL_STRING, |
|
151 "\u7121\u6CD5\u5F9E\u7A7A\u503C\u5B57\u4E32\u8A2D\u5B9A\u914D\u7F6E" }, |
|
152 |
|
153 { MsgKey.ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE, |
|
154 "\u8DEF\u5F91\u5305\u542B\u7121\u6548\u7684\u9041\u96E2\u5E8F\u5217" }, |
|
155 |
|
156 { MsgKey.ER_PATH_INVALID_CHAR, |
|
157 "\u8DEF\u5F91\u5305\u542B\u7121\u6548\u7684\u5B57\u5143: {0}" }, |
|
158 |
|
159 { MsgKey.ER_FRAG_INVALID_CHAR, |
|
160 "\u7247\u6BB5\u5305\u542B\u7121\u6548\u7684\u5B57\u5143" }, |
|
161 |
|
162 { MsgKey.ER_FRAG_WHEN_PATH_NULL, |
|
163 "\u8DEF\u5F91\u70BA\u7A7A\u503C\u6642\uFF0C\u7121\u6CD5\u8A2D\u5B9A\u7247\u6BB5" }, |
|
164 |
|
165 { MsgKey.ER_FRAG_FOR_GENERIC_URI, |
|
166 "\u53EA\u80FD\u5C0D\u4E00\u822C URI \u8A2D\u5B9A\u7247\u6BB5" }, |
|
167 |
|
168 { MsgKey.ER_NO_SCHEME_IN_URI, |
|
169 "\u5728 URI \u627E\u4E0D\u5230\u914D\u7F6E" }, |
|
170 |
|
171 { MsgKey.ER_CANNOT_INIT_URI_EMPTY_PARMS, |
|
172 "\u7121\u6CD5\u4EE5\u7A7A\u767D\u53C3\u6578\u8D77\u59CB\u8A2D\u5B9A URI" }, |
|
173 |
|
174 { MsgKey.ER_NO_FRAGMENT_STRING_IN_PATH, |
|
175 "\u8DEF\u5F91\u548C\u7247\u6BB5\u4E0D\u80FD\u540C\u6642\u6307\u5B9A\u7247\u6BB5" }, |
|
176 |
|
177 { MsgKey.ER_NO_QUERY_STRING_IN_PATH, |
|
178 "\u5728\u8DEF\u5F91\u53CA\u67E5\u8A62\u5B57\u4E32\u4E2D\u4E0D\u53EF\u6307\u5B9A\u67E5\u8A62\u5B57\u4E32" }, |
|
179 |
|
180 { MsgKey.ER_NO_PORT_IF_NO_HOST, |
|
181 "\u5982\u679C\u6C92\u6709\u6307\u5B9A\u4E3B\u6A5F\uFF0C\u4E0D\u53EF\u6307\u5B9A\u9023\u63A5\u57E0" }, |
|
182 |
|
183 { MsgKey.ER_NO_USERINFO_IF_NO_HOST, |
|
184 "\u5982\u679C\u6C92\u6709\u6307\u5B9A\u4E3B\u6A5F\uFF0C\u4E0D\u53EF\u6307\u5B9A Userinfo" }, |
|
185 |
|
186 { MsgKey.ER_XML_VERSION_NOT_SUPPORTED, |
|
187 "\u8B66\u544A: \u8981\u6C42\u7684\u8F38\u51FA\u6587\u4EF6\u7248\u672C\u70BA ''{0}''\u3002\u4E0D\u652F\u63F4\u6B64\u7248\u672C\u7684 XML\u3002\u8F38\u51FA\u6587\u4EF6\u7684\u7248\u672C\u5C07\u6703\u662F ''1.0''\u3002" }, |
|
188 |
|
189 { MsgKey.ER_SCHEME_REQUIRED, |
|
190 "\u5FC5\u9808\u6709\u914D\u7F6E\uFF01" }, |
|
191 |
|
192 /* |
|
193 * Note to translators: The words 'Properties' and |
|
194 * 'SerializerFactory' in this message are Java class names |
|
195 * and should not be translated. |
|
196 */ |
|
197 { MsgKey.ER_FACTORY_PROPERTY_MISSING, |
|
198 "\u50B3\u905E\u7D66 SerializerFactory \u7684 Properties \u7269\u4EF6\u6C92\u6709 ''{0}'' \u5C6C\u6027\u3002" }, |
|
199 |
|
200 { MsgKey.ER_ENCODING_NOT_SUPPORTED, |
|
201 "\u8B66\u544A: Java Runtime \u4E0D\u652F\u63F4\u7DE8\u78BC ''{0}''\u3002" }, |
|
202 |
|
203 |
|
204 }; |
|
205 |
|
206 return contents; |
|
207 } |
122 } |
208 } |