KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xpath > res > XPATHErrorResources_pl


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 /*
17  * $Id: XPATHErrorResources_pl.java,v 1.3 2004/02/17 04:36:46 minchau Exp $
18  */

19 package org.apache.xpath.res;
20
21 import java.util.ListResourceBundle JavaDoc;
22 import java.util.Locale JavaDoc;
23 import java.util.MissingResourceException JavaDoc;
24 import java.util.ResourceBundle JavaDoc;
25
26 /**
27  * Set up error messages.
28  * We build a two dimensional array of message keys and
29  * message strings. In order to add a new message here,
30  * you need to first add a Static string constant for the
31  * Key and update the contents array with Key, Value pair
32   * Also you need to update the count of messages(MAX_CODE)or
33  * the count of warnings(MAX_WARNING) [ Information purpose only]
34  * @xsl.usage advanced
35  */

36 public class XPATHErrorResources_pl extends ListResourceBundle JavaDoc
37 {
38
39 /*
40  * General notes to translators:
41  *
42  * This file contains error and warning messages related to XPath Error
43  * Handling.
44  *
45  * 1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of
46  * components.
47  * XSLT is an acronym for "XML Stylesheet Language: Transformations".
48  * XSLTC is an acronym for XSLT Compiler.
49  *
50  * 2) A stylesheet is a description of how to transform an input XML document
51  * into a resultant XML document (or HTML document or text). The
52  * stylesheet itself is described in the form of an XML document.
53  *
54  * 3) A template is a component of a stylesheet that is used to match a
55  * particular portion of an input document and specifies the form of the
56  * corresponding portion of the output document.
57  *
58  * 4) An element is a mark-up tag in an XML document; an attribute is a
59  * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
60  * "elem" is an element name, "attr" and "attr2" are attribute names with
61  * the values "val" and "val2", respectively.
62  *
63  * 5) A namespace declaration is a special attribute that is used to associate
64  * a prefix with a URI (the namespace). The meanings of element names and
65  * attribute names that use that prefix are defined with respect to that
66  * namespace.
67  *
68  * 6) "Translet" is an invented term that describes the class file that
69  * results from compiling an XML stylesheet into a Java class.
70  *
71  * 7) XPath is a specification that describes a notation for identifying
72  * nodes in a tree-structured representation of an XML document. An
73  * instance of that notation is referred to as an XPath expression.
74  *
75  * 8) The context node is the node in the document with respect to which an
76  * XPath expression is being evaluated.
77  *
78  * 9) An iterator is an object that traverses nodes in the tree, one at a time.
79  *
80  * 10) NCName is an XML term used to describe a name that does not contain a
81  * colon (a "no-colon name").
82  *
83  * 11) QName is an XML term meaning "qualified name".
84  */

85
86   /** Field MAX_CODE */
87   public static final int MAX_CODE = 108; // this is needed to keep track of the number of messages
88

89   /** Field MAX_WARNING */
90   public static final int MAX_WARNING = 11; // this is needed to keep track of the number of warnings
91

92   /** Field MAX_OTHERS */
93   public static final int MAX_OTHERS = 20;
94
95   /** Field MAX_MESSAGES */
96   public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
97
98
99   /*
100    * static variables
101    */

102   public static final String JavaDoc ERROR0000 = "ERROR0000";
103   public static final String JavaDoc ER_CURRENT_NOT_ALLOWED_IN_MATCH =
104          "ER_CURRENT_NOT_ALLOWED_IN_MATCH";
105   public static final String JavaDoc ER_CURRENT_TAKES_NO_ARGS =
106          "ER_CURRENT_TAKES_NO_ARGS";
107   public static final String JavaDoc ER_DOCUMENT_REPLACED = "ER_DOCUMENT_REPLACED";
108   public static final String JavaDoc ER_CONTEXT_HAS_NO_OWNERDOC =
109          "ER_CONTEXT_HAS_NO_OWNERDOC";
110   public static final String JavaDoc ER_LOCALNAME_HAS_TOO_MANY_ARGS =
111          "ER_LOCALNAME_HAS_TOO_MANY_ARGS";
112   public static final String JavaDoc ER_NAMESPACEURI_HAS_TOO_MANY_ARGS =
113          "ER_NAMESPACEURI_HAS_TOO_MANY_ARGS";
114   public static final String JavaDoc ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS =
115          "ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS";
116   public static final String JavaDoc ER_NUMBER_HAS_TOO_MANY_ARGS =
117          "ER_NUMBER_HAS_TOO_MANY_ARGS";
118   public static final String JavaDoc ER_NAME_HAS_TOO_MANY_ARGS =
119          "ER_NAME_HAS_TOO_MANY_ARGS";
120   public static final String JavaDoc ER_STRING_HAS_TOO_MANY_ARGS =
121          "ER_STRING_HAS_TOO_MANY_ARGS";
122   public static final String JavaDoc ER_STRINGLENGTH_HAS_TOO_MANY_ARGS =
123          "ER_STRINGLENGTH_HAS_TOO_MANY_ARGS";
124   public static final String JavaDoc ER_TRANSLATE_TAKES_3_ARGS =
125          "ER_TRANSLATE_TAKES_3_ARGS";
126   public static final String JavaDoc ER_UNPARSEDENTITYURI_TAKES_1_ARG =
127          "ER_UNPARSEDENTITYURI_TAKES_1_ARG";
128   public static final String JavaDoc ER_NAMESPACEAXIS_NOT_IMPLEMENTED =
129          "ER_NAMESPACEAXIS_NOT_IMPLEMENTED";
130   public static final String JavaDoc ER_UNKNOWN_AXIS = "ER_UNKNOWN_AXIS";
131   public static final String JavaDoc ER_UNKNOWN_MATCH_OPERATION =
132          "ER_UNKNOWN_MATCH_OPERATION";
133   public static final String JavaDoc ER_INCORRECT_ARG_LENGTH ="ER_INCORRECT_ARG_LENGTH";
134   public static final String JavaDoc ER_CANT_CONVERT_TO_NUMBER =
135          "ER_CANT_CONVERT_TO_NUMBER";
136   public static final String JavaDoc ER_CANT_CONVERT_TO_NODELIST =
137          "ER_CANT_CONVERT_TO_NODELIST";
138   public static final String JavaDoc ER_CANT_CONVERT_TO_MUTABLENODELIST =
139          "ER_CANT_CONVERT_TO_MUTABLENODELIST";
140   public static final String JavaDoc ER_CANT_CONVERT_TO_TYPE ="ER_CANT_CONVERT_TO_TYPE";
141   public static final String JavaDoc ER_EXPECTED_MATCH_PATTERN =
142          "ER_EXPECTED_MATCH_PATTERN";
143   public static final String JavaDoc ER_COULDNOT_GET_VAR_NAMED =
144          "ER_COULDNOT_GET_VAR_NAMED";
145   public static final String JavaDoc ER_UNKNOWN_OPCODE = "ER_UNKNOWN_OPCODE";
146   public static final String JavaDoc ER_EXTRA_ILLEGAL_TOKENS ="ER_EXTRA_ILLEGAL_TOKENS";
147   public static final String JavaDoc ER_EXPECTED_DOUBLE_QUOTE =
148          "ER_EXPECTED_DOUBLE_QUOTE";
149   public static final String JavaDoc ER_EXPECTED_SINGLE_QUOTE =
150          "ER_EXPECTED_SINGLE_QUOTE";
151   public static final String JavaDoc ER_EMPTY_EXPRESSION = "ER_EMPTY_EXPRESSION";
152   public static final String JavaDoc ER_EXPECTED_BUT_FOUND = "ER_EXPECTED_BUT_FOUND";
153   public static final String JavaDoc ER_INCORRECT_PROGRAMMER_ASSERTION =
154          "ER_INCORRECT_PROGRAMMER_ASSERTION";
155   public static final String JavaDoc ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL =
156          "ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL";
157   public static final String JavaDoc ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG =
158          "ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG";
159   public static final String JavaDoc ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG =
160          "ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG";
161   public static final String JavaDoc ER_PREDICATE_ILLEGAL_SYNTAX =
162          "ER_PREDICATE_ILLEGAL_SYNTAX";
163   public static final String JavaDoc ER_ILLEGAL_AXIS_NAME = "ER_ILLEGAL_AXIS_NAME";
164   public static final String JavaDoc ER_UNKNOWN_NODETYPE = "ER_UNKNOWN_NODETYPE";
165   public static final String JavaDoc ER_PATTERN_LITERAL_NEEDS_BE_QUOTED =
166          "ER_PATTERN_LITERAL_NEEDS_BE_QUOTED";
167   public static final String JavaDoc ER_COULDNOT_BE_FORMATTED_TO_NUMBER =
168          "ER_COULDNOT_BE_FORMATTED_TO_NUMBER";
169   public static final String JavaDoc ER_COULDNOT_CREATE_XMLPROCESSORLIAISON =
170          "ER_COULDNOT_CREATE_XMLPROCESSORLIAISON";
171   public static final String JavaDoc ER_DIDNOT_FIND_XPATH_SELECT_EXP =
172          "ER_DIDNOT_FIND_XPATH_SELECT_EXP";
173   public static final String JavaDoc ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH =
174          "ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH";
175   public static final String JavaDoc ER_ERROR_OCCURED = "ER_ERROR_OCCURED";
176   public static final String JavaDoc ER_ILLEGAL_VARIABLE_REFERENCE =
177          "ER_ILLEGAL_VARIABLE_REFERENCE";
178   public static final String JavaDoc ER_AXES_NOT_ALLOWED = "ER_AXES_NOT_ALLOWED";
179   public static final String JavaDoc ER_KEY_HAS_TOO_MANY_ARGS =
180          "ER_KEY_HAS_TOO_MANY_ARGS";
181   public static final String JavaDoc ER_COUNT_TAKES_1_ARG = "ER_COUNT_TAKES_1_ARG";
182   public static final String JavaDoc ER_COULDNOT_FIND_FUNCTION =
183          "ER_COULDNOT_FIND_FUNCTION";
184   public static final String JavaDoc ER_UNSUPPORTED_ENCODING ="ER_UNSUPPORTED_ENCODING";
185   public static final String JavaDoc ER_PROBLEM_IN_DTM_NEXTSIBLING =
186          "ER_PROBLEM_IN_DTM_NEXTSIBLING";
187   public static final String JavaDoc ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL =
188          "ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL";
189   public static final String JavaDoc ER_SETDOMFACTORY_NOT_SUPPORTED =
190          "ER_SETDOMFACTORY_NOT_SUPPORTED";
191   public static final String JavaDoc ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE";
192   public static final String JavaDoc ER_PARSE_NOT_SUPPORTED = "ER_PARSE_NOT_SUPPORTED";
193   //public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED =
194
// "ER_CREATEDOCUMENT_NOT_SUPPORTED";
195
//public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT =
196
// "ER_CHILD_HAS_NO_OWNER_DOCUMENT";
197
//public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT =
198
// "ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT";
199
public static final String JavaDoc ER_SAX_API_NOT_HANDLED = "ER_SAX_API_NOT_HANDLED";
200 public static final String JavaDoc ER_IGNORABLE_WHITESPACE_NOT_HANDLED =
201          "ER_IGNORABLE_WHITESPACE_NOT_HANDLED";
202   public static final String JavaDoc ER_DTM_CANNOT_HANDLE_NODES =
203          "ER_DTM_CANNOT_HANDLE_NODES";
204   public static final String JavaDoc ER_XERCES_CANNOT_HANDLE_NODES =
205          "ER_XERCES_CANNOT_HANDLE_NODES";
206   public static final String JavaDoc ER_XERCES_PARSE_ERROR_DETAILS =
207          "ER_XERCES_PARSE_ERROR_DETAILS";
208   public static final String JavaDoc ER_XERCES_PARSE_ERROR = "ER_XERCES_PARSE_ERROR";
209   //public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC =
210
// "ER_CANT_OUTPUT_TEXT_BEFORE_DOC";
211
//public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT =
212
// "ER_CANT_HAVE_MORE_THAN_ONE_ROOT";
213
public static final String JavaDoc ER_INVALID_UTF16_SURROGATE =
214          "ER_INVALID_UTF16_SURROGATE";
215   public static final String JavaDoc ER_OIERROR = "ER_OIERROR";
216   public static final String JavaDoc ER_CANNOT_CREATE_URL = "ER_CANNOT_CREATE_URL";
217   public static final String JavaDoc ER_XPATH_READOBJECT = "ER_XPATH_READOBJECT";
218  public static final String JavaDoc ER_FUNCTION_TOKEN_NOT_FOUND =
219          "ER_FUNCTION_TOKEN_NOT_FOUND";
220  //public static final String ER_ARG_LOCALNAME_NULL = "ER_ARG_LOCALNAME_NULL";
221
public static final String JavaDoc ER_CANNOT_DEAL_XPATH_TYPE =
222          "ER_CANNOT_DEAL_XPATH_TYPE";
223   public static final String JavaDoc ER_NODESET_NOT_MUTABLE = "ER_NODESET_NOT_MUTABLE";
224   public static final String JavaDoc ER_NODESETDTM_NOT_MUTABLE =
225          "ER_NODESETDTM_NOT_MUTABLE";
226    /** Variable not resolvable: */
227   public static final String JavaDoc ER_VAR_NOT_RESOLVABLE = "ER_VAR_NOT_RESOLVABLE";
228    /** Null error handler */
229  public static final String JavaDoc ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER";
230    /** Programmer's assertion: unknown opcode */
231   public static final String JavaDoc ER_PROG_ASSERT_UNKNOWN_OPCODE =
232          "ER_PROG_ASSERT_UNKNOWN_OPCODE";
233    /** 0 or 1 */
234   public static final String JavaDoc ER_ZERO_OR_ONE = "ER_ZERO_OR_ONE";
235    /** rtf() not supported by XRTreeFragSelectWrapper */
236   public static final String JavaDoc ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =
237          "ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
238    /** asNodeIterator() not supported by XRTreeFragSelectWrapper */
239   public static final String JavaDoc ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = "ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
240    /** fsb() not supported for XStringForChars */
241   public static final String JavaDoc ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS =
242          "ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS";
243    /** Could not find variable with the name of */
244  public static final String JavaDoc ER_COULD_NOT_FIND_VAR = "ER_COULD_NOT_FIND_VAR";
245    /** XStringForChars can not take a string for an argument */
246  public static final String JavaDoc ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING =
247          "ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING";
248    /** The FastStringBuffer argument can not be null */
249  public static final String JavaDoc ER_FASTSTRINGBUFFER_CANNOT_BE_NULL =
250          "ER_FASTSTRINGBUFFER_CANNOT_BE_NULL";
251    /** 2 or 3 */
252   public static final String JavaDoc ER_TWO_OR_THREE = "ER_TWO_OR_THREE";
253    /** Variable accessed before it is bound! */
254   public static final String JavaDoc ER_VARIABLE_ACCESSED_BEFORE_BIND =
255          "ER_VARIABLE_ACCESSED_BEFORE_BIND";
256    /** XStringForFSB can not take a string for an argument! */
257  public static final String JavaDoc ER_FSB_CANNOT_TAKE_STRING =
258          "ER_FSB_CANNOT_TAKE_STRING";
259    /** Error! Setting the root of a walker to null! */
260   public static final String JavaDoc ER_SETTING_WALKER_ROOT_TO_NULL =
261          "ER_SETTING_WALKER_ROOT_TO_NULL";
262    /** This NodeSetDTM can not iterate to a previous node! */
263   public static final String JavaDoc ER_NODESETDTM_CANNOT_ITERATE =
264          "ER_NODESETDTM_CANNOT_ITERATE";
265   /** This NodeSet can not iterate to a previous node! */
266  public static final String JavaDoc ER_NODESET_CANNOT_ITERATE =
267          "ER_NODESET_CANNOT_ITERATE";
268   /** This NodeSetDTM can not do indexing or counting functions! */
269   public static final String JavaDoc ER_NODESETDTM_CANNOT_INDEX =
270          "ER_NODESETDTM_CANNOT_INDEX";
271   /** This NodeSet can not do indexing or counting functions! */
272   public static final String JavaDoc ER_NODESET_CANNOT_INDEX =
273          "ER_NODESET_CANNOT_INDEX";
274   /** Can not call setShouldCacheNodes after nextNode has been called! */
275   public static final String JavaDoc ER_CANNOT_CALL_SETSHOULDCACHENODE =
276          "ER_CANNOT_CALL_SETSHOULDCACHENODE";
277   /** {0} only allows {1} arguments */
278  public static final String JavaDoc ER_ONLY_ALLOWS = "ER_ONLY_ALLOWS";
279   /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
280   public static final String JavaDoc ER_UNKNOWN_STEP = "ER_UNKNOWN_STEP";
281   /** Problem with RelativeLocationPath */
282   public static final String JavaDoc ER_EXPECTED_REL_LOC_PATH =
283          "ER_EXPECTED_REL_LOC_PATH";
284   /** Problem with LocationPath */
285   public static final String JavaDoc ER_EXPECTED_LOC_PATH = "ER_EXPECTED_LOC_PATH";
286   /** Problem with Step */
287   public static final String JavaDoc ER_EXPECTED_LOC_STEP = "ER_EXPECTED_LOC_STEP";
288   /** Problem with NodeTest */
289   public static final String JavaDoc ER_EXPECTED_NODE_TEST = "ER_EXPECTED_NODE_TEST";
290   /** Expected step pattern */
291   public static final String JavaDoc ER_EXPECTED_STEP_PATTERN =
292         "ER_EXPECTED_STEP_PATTERN";
293   /** Expected relative path pattern */
294   public static final String JavaDoc ER_EXPECTED_REL_PATH_PATTERN =
295          "ER_EXPECTED_REL_PATH_PATTERN";
296   /** localname in QNAME should be a valid NCName */
297   //public static final String ER_ARG_LOCALNAME_INVALID =
298
// "ER_ARG_LOCALNAME_INVALID";
299
/** prefix in QNAME should be a valid NCName */
300   //public static final String ER_ARG_PREFIX_INVALID = "ER_ARG_PREFIX_INVALID";
301
/** Field ER_CANT_CONVERT_TO_BOOLEAN */
302   public static final String JavaDoc ER_CANT_CONVERT_TO_BOOLEAN =
303          "ER_CANT_CONVERT_TO_BOOLEAN";
304   /** Field ER_CANT_CONVERT_TO_SINGLENODE */
305   public static final String JavaDoc ER_CANT_CONVERT_TO_SINGLENODE =
306          "ER_CANT_CONVERT_TO_SINGLENODE";
307   /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
308   public static final String JavaDoc ER_CANT_GET_SNAPSHOT_LENGTH =
309          "ER_CANT_GET_SNAPSHOT_LENGTH";
310   /** Field ER_NON_ITERATOR_TYPE */
311   public static final String JavaDoc ER_NON_ITERATOR_TYPE = "ER_NON_ITERATOR_TYPE";
312   /** Field ER_DOC_MUTATED */
313   public static final String JavaDoc ER_DOC_MUTATED = "ER_DOC_MUTATED";
314   public static final String JavaDoc ER_INVALID_XPATH_TYPE = "ER_INVALID_XPATH_TYPE";
315   public static final String JavaDoc ER_EMPTY_XPATH_RESULT = "ER_EMPTY_XPATH_RESULT";
316   public static final String JavaDoc ER_INCOMPATIBLE_TYPES = "ER_INCOMPATIBLE_TYPES";
317   public static final String JavaDoc ER_NULL_RESOLVER = "ER_NULL_RESOLVER";
318   public static final String JavaDoc ER_CANT_CONVERT_TO_STRING =
319          "ER_CANT_CONVERT_TO_STRING";
320   public static final String JavaDoc ER_NON_SNAPSHOT_TYPE = "ER_NON_SNAPSHOT_TYPE";
321   public static final String JavaDoc ER_WRONG_DOCUMENT = "ER_WRONG_DOCUMENT";
322   /* Note to translators: The XPath expression cannot be evaluated with respect
323    * to this type of node.
324    */

325   /** Field ER_WRONG_NODETYPE */
326   public static final String JavaDoc ER_WRONG_NODETYPE = "ER_WRONG_NODETYPE";
327   public static final String JavaDoc ER_XPATH_ERROR = "ER_XPATH_ERROR";
328
329   public static final String JavaDoc WG_LOCALE_NAME_NOT_HANDLED =
330          "WG_LOCALE_NAME_NOT_HANDLED";
331   public static final String JavaDoc WG_PROPERTY_NOT_SUPPORTED =
332          "WG_PROPERTY_NOT_SUPPORTED";
333   public static final String JavaDoc WG_DONT_DO_ANYTHING_WITH_NS =
334          "WG_DONT_DO_ANYTHING_WITH_NS";
335   public static final String JavaDoc WG_SECURITY_EXCEPTION = "WG_SECURITY_EXCEPTION";
336   public static final String JavaDoc WG_QUO_NO_LONGER_DEFINED =
337          "WG_QUO_NO_LONGER_DEFINED";
338   public static final String JavaDoc WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST =
339          "WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST";
340   public static final String JavaDoc WG_FUNCTION_TOKEN_NOT_FOUND =
341          "WG_FUNCTION_TOKEN_NOT_FOUND";
342   public static final String JavaDoc WG_COULDNOT_FIND_FUNCTION =
343          "WG_COULDNOT_FIND_FUNCTION";
344   public static final String JavaDoc WG_CANNOT_MAKE_URL_FROM ="WG_CANNOT_MAKE_URL_FROM";
345   public static final String JavaDoc WG_EXPAND_ENTITIES_NOT_SUPPORTED =
346          "WG_EXPAND_ENTITIES_NOT_SUPPORTED";
347   public static final String JavaDoc WG_ILLEGAL_VARIABLE_REFERENCE =
348          "WG_ILLEGAL_VARIABLE_REFERENCE";
349   public static final String JavaDoc WG_UNSUPPORTED_ENCODING ="WG_UNSUPPORTED_ENCODING";
350
351
352   // Error messages...
353

354   public static final Object JavaDoc[][] contents = {
355
356   /** Field ERROR0000 */
357
358 // public static final int ERROR0000 = 0;
359

360   { "ERROR0000" , "{0}" },
361
362
363   /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH */
364 // public static final int ER_CURRENT_NOT_ALLOWED_IN_MATCH = 1;
365

366   { ER_CURRENT_NOT_ALLOWED_IN_MATCH, "Funkcja current() jest niedozwolona we wzorcu!" },
367
368   /** Field ER_CURRENT_TAKES_NO_ARGS */
369   //public static final int ER_CURRENT_TAKES_NO_ARGS = 2;
370

371   { ER_CURRENT_TAKES_NO_ARGS, "Funkcja current() nie akceptuje argument\u00f3w!" },
372
373   /** Field ER_DOCUMENT_REPLACED */
374 // public static final int ER_DOCUMENT_REPLACED = 3;
375
{ ER_DOCUMENT_REPLACED,
376       "Implementacja funkcji document() zosta\u0142a zast\u0105piona przez org.apache.xalan.xslt.FuncDocument!"},
377
378
379   /** Field ER_CONTEXT_HAS_NO_OWNERDOC */
380  // public static final int ER_CONTEXT_HAS_NO_OWNERDOC = 4;
381

382   { ER_CONTEXT_HAS_NO_OWNERDOC,
383       "Kontekst nie ma dokumentu w\u0142a\u015bciciela!"},
384
385   /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS */
386  // public static final int ER_LOCALNAME_HAS_TOO_MANY_ARGS = 5;
387

388   { ER_LOCALNAME_HAS_TOO_MANY_ARGS,
389       "Funkcja local-name() ma zbyt wiele argument\u00f3w."},
390
391   /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS */
392  //public static final int ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 6;
393

394   { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,
395       "Funkcja namespace-uri() ma zbyt wiele argument\u00f3w."},
396
397   /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS */
398 // public static final int ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 7;
399
{ ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,
400       "Funkcja normalize-space() ma zbyt wiele argument\u00f3w."},
401
402   /** Field ER_NUMBER_HAS_TOO_MANY_ARGS */
403 // public static final int ER_NUMBER_HAS_TOO_MANY_ARGS = 8;
404

405   { ER_NUMBER_HAS_TOO_MANY_ARGS,
406       "Funkcja number() ma zbyt wiele argument\u00f3w."},
407
408   /** Field ER_NAME_HAS_TOO_MANY_ARGS */
409 // public static final int ER_NAME_HAS_TOO_MANY_ARGS = 9;
410

411   { ER_NAME_HAS_TOO_MANY_ARGS,
412      "Funkcja name() ma zbyt wiele argument\u00f3w."},
413
414   /** Field ER_STRING_HAS_TOO_MANY_ARGS */
415 // public static final int ER_STRING_HAS_TOO_MANY_ARGS = 10;
416

417   { ER_STRING_HAS_TOO_MANY_ARGS,
418       "Funkcja string() ma zbyt wiele argument\u00f3w."},
419
420   /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS */
421 // public static final int ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 11;
422

423   { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,
424       "Funkcja string-length() ma zbyt wiele argument\u00f3w."},
425
426   /** Field ER_TRANSLATE_TAKES_3_ARGS */
427 // public static final int ER_TRANSLATE_TAKES_3_ARGS = 12;
428

429   { ER_TRANSLATE_TAKES_3_ARGS,
430       "Funkcja translate() akceptuje trzy argumenty!"},
431
432   /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG */
433 // public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;
434

435   { ER_UNPARSEDENTITYURI_TAKES_1_ARG,
436       "Funkcja unparsed-entity-uri() akceptuje tylko jeden argument!"},
437
438   /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED */
439 // public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
440

441   { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
442       "O\u015b przestrzeni nazw nie zosta\u0142a jeszcze zaimplementowana!"},
443
444   /** Field ER_UNKNOWN_AXIS */
445 // public static final int ER_UNKNOWN_AXIS = 15;
446

447   { ER_UNKNOWN_AXIS,
448      "nieznana o\u015b: {0}"},
449
450   /** Field ER_UNKNOWN_MATCH_OPERATION */
451 // public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
452

453   { ER_UNKNOWN_MATCH_OPERATION,
454      "Nieznana operacja uzgadniania!"},
455
456   /** Field ER_INCORRECT_ARG_LENGTH */
457 // public static final int ER_INCORRECT_ARG_LENGTH = 17;
458

459   { ER_INCORRECT_ARG_LENGTH,
460       "D\u0142ugo\u015b\u0107 argumentu testu w\u0119z\u0142a processing-instruction() jest niepoprawna!"},
461
462   /** Field ER_CANT_CONVERT_TO_NUMBER */
463 // public static final int ER_CANT_CONVERT_TO_NUMBER = 18;
464

465   { ER_CANT_CONVERT_TO_NUMBER,
466       "Nie mo\u017cna przekszta\u0142ci\u0107 {0} w liczb\u0119"},
467
468   /** Field ER_CANT_CONVERT_TO_NODELIST */
469   //public static final int ER_CANT_CONVERT_TO_NODELIST = 19;
470

471   { ER_CANT_CONVERT_TO_NODELIST,
472       "Nie mo\u017cna przekszta\u0142ci\u0107 {0} w NodeList!"},
473
474   /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST */
475 // public static final int ER_CANT_CONVERT_TO_MUTABLENODELIST = 20;
476

477   { ER_CANT_CONVERT_TO_MUTABLENODELIST,
478       "Nie mo\u017cna przekszta\u0142ci\u0107 {0} w NodeSetDTM!"},
479
480   /** Field ER_CANT_CONVERT_TO_TYPE */
481 // public static final int ER_CANT_CONVERT_TO_TYPE = 21;
482

483   { ER_CANT_CONVERT_TO_TYPE,
484       "Nie mo\u017cna przekszta\u0142ci\u0107 {0} w type#{1}"},
485
486   /** Field ER_EXPECTED_MATCH_PATTERN */
487 // public static final int ER_EXPECTED_MATCH_PATTERN = 22;
488

489   { ER_EXPECTED_MATCH_PATTERN,
490       "Oczekiwano wzorca uzgadniania w getMatchScore!"},
491
492   /** Field ER_COULDNOT_GET_VAR_NAMED */
493 // public static final int ER_COULDNOT_GET_VAR_NAMED = 23;
494

495   { ER_COULDNOT_GET_VAR_NAMED,
496       "Nie mo\u017cna pobra\u0107 zmiennej o nazwie {0}"},
497
498   /** Field ER_UNKNOWN_OPCODE */
499 // public static final int ER_UNKNOWN_OPCODE = 24;
500

501   { ER_UNKNOWN_OPCODE,
502      "B\u0141\u0104D! Nieznany kod operacji: {0}"},
503
504   /** Field ER_EXTRA_ILLEGAL_TOKENS */
505 // public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
506

507   { ER_EXTRA_ILLEGAL_TOKENS,
508      "Nadmiarowe niedozwolone leksemy: {0}"},
509
510   /** Field ER_EXPECTED_DOUBLE_QUOTE */
511 // public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
512

513   { ER_EXPECTED_DOUBLE_QUOTE,
514       "Litera\u0142 bez cudzys\u0142owu... oczekiwano podw\u00f3jnego cudzys\u0142owu!"},
515
516   /** Field ER_EXPECTED_SINGLE_QUOTE */
517 // public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
518

519   { ER_EXPECTED_SINGLE_QUOTE,
520       "Litera\u0142 bez cudzys\u0142owu... oczekiwano pojedynczego cudzys\u0142owu!"},
521
522   /** Field ER_EMPTY_EXPRESSION */
523 // public static final int ER_EMPTY_EXPRESSION = 28;
524

525   { ER_EMPTY_EXPRESSION,
526      "Puste wyra\u017cenie!"},
527
528   /** Field ER_EXPECTED_BUT_FOUND */
529 // public static final int ER_EXPECTED_BUT_FOUND = 29;
530

531   { ER_EXPECTED_BUT_FOUND,
532      "Oczekiwano {0}, ale znaleziono: {1}"},
533
534   /** Field ER_INCORRECT_PROGRAMMER_ASSERTION */
535 // public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
536

537   { ER_INCORRECT_PROGRAMMER_ASSERTION,
538       "Asercja programisty jest niepoprawna! - {0}"},
539
540   /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL */
541 // public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
542

543   { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
544       "argument boolean(...) nie jest ju\u017c opcjonalny wg projektu 19990709 XPath draft."},
545
546   /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG */
547 // public static final int ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 32;
548

549   { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
550       "Znaleziono znak ',', ale nie ma poprzedzaj\u0105cego argumentu!"},
551
552   /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG */
553 // public static final int ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 33;
554

555   { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
556       "Znaleziono znak ',', ale nie ma nast\u0119puj\u0105cego argumentu!"},
557
558   /** Field ER_PREDICATE_ILLEGAL_SYNTAX */
559 // public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
560

561   { ER_PREDICATE_ILLEGAL_SYNTAX,
562       "'..[predykat]' lub '.[predykat]' to niedozwolona sk\u0142adnia. U\u017cyj zamiast tego 'self::node()[predykat]'."},
563
564   /** Field ER_ILLEGAL_AXIS_NAME */
565 // public static final int ER_ILLEGAL_AXIS_NAME = 35;
566

567   { ER_ILLEGAL_AXIS_NAME,
568      "Niedozwolona nazwa osi: {0}"},
569
570   /** Field ER_UNKNOWN_NODETYPE */
571 // public static final int ER_UNKNOWN_NODETYPE = 36;
572

573   { ER_UNKNOWN_NODETYPE,
574      "Nieznany typ w\u0119z\u0142a: {0}"},
575
576   /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED */
577 // public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
578

579   { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
580       "Litera\u0142 wzorca ({0}) musi by\u0107 w cudzys\u0142owie!"},
581
582   /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER */
583 // public static final int ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 38;
584

585   { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
586       "Nie mo\u017cna sformatowa\u0107 {0} do postaci liczbowej!"},
587
588   /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON */
589 // public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
590

591   { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
592       "Nie mo\u017cna utworzy\u0107 po\u0142\u0105czenia XML TransformerFactory: {0}"},
593
594   /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP */
595 // public static final int ER_DIDNOT_FIND_XPATH_SELECT_EXP = 40;
596

597   { ER_DIDNOT_FIND_XPATH_SELECT_EXP,
598       "B\u0142\u0105d! Nie znaleziono wyra\u017cenia wyboru xpath (-select)."},
599
600   /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH */
601 // public static final int ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 41;
602

603   { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
604       "B\u0141\u0104D! Nie mo\u017cna znale\u017a\u0107 ENDOP po OP_LOCATIONPATH"},
605
606   /** Field ER_ERROR_OCCURED */
607 // public static final int ER_ERROR_OCCURED = 42;
608

609   { ER_ERROR_OCCURED,
610      "Wyst\u0105pi\u0142 b\u0142\u0105d!"},
611
612   /** Field ER_ILLEGAL_VARIABLE_REFERENCE */
613 // public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
614

615   { ER_ILLEGAL_VARIABLE_REFERENCE,
616       "VariableReference nadana zmiennej nie nale\u017cy do kontekstu lub nie ma definicji! Nazwa = {0}"},
617
618   /** Field ER_AXES_NOT_ALLOWED */
619 // public static final int ER_AXES_NOT_ALLOWED = 44;
620

621   { ER_AXES_NOT_ALLOWED,
622       "We wzorcach zgodno\u015bci dozwolone s\u0105 tylko osie child:: oraz attribute::! Niew\u0142a\u015bciwe osie = {0}"},
623
624   /** Field ER_KEY_HAS_TOO_MANY_ARGS */
625 // public static final int ER_KEY_HAS_TOO_MANY_ARGS = 45;
626

627   { ER_KEY_HAS_TOO_MANY_ARGS,
628       "Funkcja key() ma niepoprawn\u0105 liczb\u0119 argument\u00f3w."},
629
630   /** Field ER_COUNT_TAKES_1_ARG */
631 // public static final int ER_COUNT_TAKES_1_ARG = 46;
632

633   { ER_COUNT_TAKES_1_ARG,
634       "Funkcja count() akceptuje tylko jeden argument!"},
635
636   /** Field ER_COULDNOT_FIND_FUNCTION */
637 // public static final int ER_COULDNOT_FIND_FUNCTION = 47;
638

639   { ER_COULDNOT_FIND_FUNCTION,
640      "Nie mo\u017cna znale\u017a\u0107 funkcji: {0}"},
641
642   /** Field ER_UNSUPPORTED_ENCODING */
643 // public static final int ER_UNSUPPORTED_ENCODING = 48;
644

645   { ER_UNSUPPORTED_ENCODING,
646      "Nieobs\u0142ugiwane kodowanie: {0}"},
647
648   /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING */
649 // public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
650

651   { ER_PROBLEM_IN_DTM_NEXTSIBLING,
652       "Wyst\u0105pi\u0142 problem w DTM w getNextSibling... pr\u00f3ba wyj\u015bcia z b\u0142\u0119du"},
653
654   /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL */
655 // public static final int ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 50;
656

657   { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
658       "B\u0142\u0105d programisty: Nie mo\u017cna zapisywa\u0107 do EmptyNodeList."},
659
660   /** Field ER_SETDOMFACTORY_NOT_SUPPORTED */
661 // public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
662

663   { ER_SETDOMFACTORY_NOT_SUPPORTED,
664       "setDOMFactory nie jest obs\u0142ugiwane przez XPathContext!"},
665
666   /** Field ER_PREFIX_MUST_RESOLVE */
667 // public static final int ER_PREFIX_MUST_RESOLVE = 52;
668

669   { ER_PREFIX_MUST_RESOLVE,
670       "Przedrostek musi da\u0107 si\u0119 przet\u0142umaczy\u0107 na przestrze\u0144 nazw: {0}"},
671
672   /** Field ER_PARSE_NOT_SUPPORTED */
673 // public static final int ER_PARSE_NOT_SUPPORTED = 53;
674

675   { ER_PARSE_NOT_SUPPORTED,
676       "parse (\u017ar\u00f3d\u0142o InputSource) nie jest obs\u0142ugiwane w XPathContext! Nie mo\u017cna otworzy\u0107 {0}"},
677
678   /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED */
679 // public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
680

681   //{ ER_CREATEDOCUMENT_NOT_SUPPORTED,
682
// "createDocument() not supported in XPathContext!"},
683

684   /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT */
685 // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
686

687   //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT,
688
// "Attribute child does not have an owner document!"},
689

690   /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT */
691 // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
692

693   //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
694
// "Attribute child does not have an owner document element!"},
695

696   /** Field ER_SAX_API_NOT_HANDLED */
697 // public static final int ER_SAX_API_NOT_HANDLED = 57;
698

699   { ER_SAX_API_NOT_HANDLED,
700       "SAX API characters(char ch[]... nie jest obs\u0142ugiwane przez DTM!"},
701
702   /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED */
703 //public static final int ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 58;
704

705   { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
706       "ignorableWhitespace(char ch[]... nie jest obs\u0142ugiwane przez DTM!"},
707
708   /** Field ER_DTM_CANNOT_HANDLE_NODES */
709 // public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
710

711   { ER_DTM_CANNOT_HANDLE_NODES,
712       "DTMLiaison nie mo\u017ce obs\u0142u\u017cy\u0107 w\u0119z\u0142\u00f3w typu {0}"},
713
714   /** Field ER_XERCES_CANNOT_HANDLE_NODES */
715 // public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
716

717   { ER_XERCES_CANNOT_HANDLE_NODES,
718       "DOM2Helper nie mo\u017ce obs\u0142u\u017cy\u0107 w\u0119z\u0142\u00f3w typu {0}"},
719
720   /** Field ER_XERCES_PARSE_ERROR_DETAILS */
721 // public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
722

723   { ER_XERCES_PARSE_ERROR_DETAILS,
724       "B\u0142\u0105d DOM2Helper.parse : ID systemu - {0} wiersz - {1}"},
725
726   /** Field ER_XERCES_PARSE_ERROR */
727 // public static final int ER_XERCES_PARSE_ERROR = 62;
728

729   { ER_XERCES_PARSE_ERROR,
730      "B\u0142\u0105d DOM2Helper.parse"},
731
732   /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC */
733 // public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
734

735   //{ ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
736
// "Warning: can't output text before document element! Ignoring..."},
737

738   /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT */
739 // public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
740

741   //{ ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
742
// "Can't have more than one root on a DOM!"},
743

744   /** Field ER_INVALID_UTF16_SURROGATE */
745 // public static final int ER_INVALID_UTF16_SURROGATE = 65;
746

747   { ER_INVALID_UTF16_SURROGATE,
748       "Wykryto niepoprawny surogat UTF-16: {0} ?"},
749
750   /** Field ER_OIERROR */
751   //public static final int ER_OIERROR = 66;
752

753   { ER_OIERROR,
754      "B\u0142\u0105d we/wy"},
755
756   /** Field ER_CANNOT_CREATE_URL */
757   //public static final int ER_CANNOT_CREATE_URL = 67;
758

759   { ER_CANNOT_CREATE_URL,
760      "Nie mo\u017cna utworzy\u0107 adresu url dla {0}"},
761
762   /** Field ER_XPATH_READOBJECT */
763 // public static final int ER_XPATH_READOBJECT = 68;
764

765   { ER_XPATH_READOBJECT,
766      "W XPath.readObject: {0}"},
767
768   /** Field ER_FUNCTION_TOKEN_NOT_FOUND */
769 // public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
770

771   { ER_FUNCTION_TOKEN_NOT_FOUND,
772       "Nie znaleziono leksemu funkcji."},
773
774    /** Argument 'localName' is null */
775 // public static final int ER_ARG_LOCALNAME_NULL = 70;
776

777   //{ ER_ARG_LOCALNAME_NULL,
778
// "Argument 'localName' is null"},
779

780    /** Can not deal with XPath type: */
781 // public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
782

783   { ER_CANNOT_DEAL_XPATH_TYPE,
784        "Nie mo\u017cna upora\u0107 si\u0119 z typem XPath {0}"},
785
786    /** This NodeSet is not mutable */
787  // public static final int ER_NODESET_NOT_MUTABLE = 72;
788

789   { ER_NODESET_NOT_MUTABLE,
790        "Ten NodeSet nie jest zmienny"},
791
792    /** This NodeSetDTM is not mutable */
793 // public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
794

795   { ER_NODESETDTM_NOT_MUTABLE,
796        "Ten NodeSetDTM nie jest zmienny"},
797
798    /** Variable not resolvable: */
799 // public static final int ER_VAR_NOT_RESOLVABLE = 74;
800

801   { ER_VAR_NOT_RESOLVABLE,
802         "Nie mo\u017cna rozstrzygn\u0105\u0107 zmiennej {0}"},
803
804    /** Null error handler */
805 // public static final int ER_NULL_ERROR_HANDLER = 75;
806

807   { ER_NULL_ERROR_HANDLER,
808         "Pusta procedura obs\u0142ugi b\u0142\u0119du"},
809
810    /** Programmer's assertion: unknown opcode */
811  // public static final int ER_PROG_ASSERT_UNKNOWN_OPCODE = 76;
812

813   { ER_PROG_ASSERT_UNKNOWN_OPCODE,
814        "Asercja programisty: nieznany opcode: {0}"},
815
816    /** 0 or 1 */
817 // public static final int ER_ZERO_OR_ONE = 77;
818

819   { ER_ZERO_OR_ONE,
820        "0 lub 1"},
821
822
823    /** rtf() not supported by XRTreeFragSelectWrapper */
824   //public static final int ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 78;
825

826   { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
827        "Funkcja rtf() nie jest obs\u0142ugiwana przez XRTreeFragSelectWrapper"},
828
829    /** asNodeIterator() not supported by XRTreeFragSelectWrapper */
830   //public static final int ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 79;
831

832   { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
833        "Funkcja asNodeIterator() nie jest obs\u0142ugiwana przez XRTreeFragSelectWrapper"},
834
835    /** fsb() not supported for XStringForChars */
836  // public static final int ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 80;
837

838   { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,
839        "Funkcja fsb() nie jest obs\u0142ugiwana dla XStringForChars"},
840
841    /** Could not find variable with the name of */
842 // public static final int ER_COULD_NOT_FIND_VAR = 81;
843

844   { ER_COULD_NOT_FIND_VAR,
845       "Nie mo\u017cna znale\u017a\u0107 zmiennej o nazwie {0}"},
846
847    /** XStringForChars can not take a string for an argument */
848 // public static final int ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 82;
849

850   { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,
851       "XStringForChars nie mo\u017ce pobra\u0107 ci\u0105gu znak\u00f3w jako argumentu"},
852
853    /** The FastStringBuffer argument can not be null */
854 // public static final int ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 83;
855

856   { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,
857       "Argument FastStringBuffer nie mo\u017ce by\u0107 pusty"},
858
859   /* MANTIS_XALAN CHANGE: BEGIN */
860    /** 2 or 3 */
861 // public static final int ER_TWO_OR_THREE = 84;
862

863   { ER_TWO_OR_THREE,
864        "2 lub 3"},
865
866    /** Variable accessed before it is bound! */
867 // public static final int ER_VARIABLE_ACCESSED_BEFORE_BIND = 85;
868

869   { ER_VARIABLE_ACCESSED_BEFORE_BIND,
870        "Nast\u0105pi\u0142o odwo\u0142anie do zmiennej, zanim zosta\u0142a ona zwi\u0105zana!"},
871
872    /** XStringForFSB can not take a string for an argument! */
873 // public static final int ER_FSB_CANNOT_TAKE_STRING = 86;
874

875   { ER_FSB_CANNOT_TAKE_STRING,
876        "XStringForFSB nie mo\u017ce pobra\u0107 ci\u0105gu znak\u00f3w jako argumentu!"},
877
878    /** Error! Setting the root of a walker to null! */
879 // public static final int ER_SETTING_WALKER_ROOT_TO_NULL = 87;
880

881   { ER_SETTING_WALKER_ROOT_TO_NULL,
882        "\n !!!! B\u0142\u0105d! Ustawienie root w\u0119drownika na null!!!"},
883
884    /** This NodeSetDTM can not iterate to a previous node! */
885 // public static final int ER_NODESETDTM_CANNOT_ITERATE = 88;
886

887   { ER_NODESETDTM_CANNOT_ITERATE,
888        "Ten NodeSetDTM nie mo\u017ce iterowa\u0107 do poprzedniego w\u0119z\u0142a!"},
889
890   /** This NodeSet can not iterate to a previous node! */
891 // public static final int ER_NODESET_CANNOT_ITERATE = 89;
892

893   { ER_NODESET_CANNOT_ITERATE,
894        "Ten NodeSet nie mo\u017ce iterowa\u0107 do poprzedniego w\u0119z\u0142a!"},
895
896   /** This NodeSetDTM can not do indexing or counting functions! */
897 // public static final int ER_NODESETDTM_CANNOT_INDEX = 90;
898

899   { ER_NODESETDTM_CANNOT_INDEX,
900        "Ten NodeSetDTM nie mo\u017ce wykona\u0107 funkcji indeksowania lub zliczania!"},
901
902   /** This NodeSet can not do indexing or counting functions! */
903 // public static final int ER_NODESET_CANNOT_INDEX = 91;
904

905   { ER_NODESET_CANNOT_INDEX,
906        "Ten NodeSet nie mo\u017ce wykona\u0107 funkcji indeksowania lub zliczania!"},
907
908   /** Can not call setShouldCacheNodes after nextNode has been called! */
909 // public static final int ER_CANNOT_CALL_SETSHOULDCACHENODE = 92;
910

911   { ER_CANNOT_CALL_SETSHOULDCACHENODE,
912        "Nie mo\u017cna wywo\u0142a\u0107 setShouldCacheNodes po wywo\u0142aniu nextNode!"},
913
914   /** {0} only allows {1} arguments */
915 // public static final int ER_ONLY_ALLOWS = 93;
916

917   { ER_ONLY_ALLOWS,
918        "{0} zezwala tylko na {1} argumenty"},
919
920   /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
921 // public static final int ER_UNKNOWN_STEP = 94;
922

923   { ER_UNKNOWN_STEP,
924        "Asercja programisty w getNextStepPos: nieznany stepType: {0}"},
925
926   //Note to translators: A relative location path is a form of XPath expression.
927
// The message indicates that such an expression was expected following the
928
// characters '/' or '//', but was not found.
929

930   /** Problem with RelativeLocationPath */
931 // public static final int ER_EXPECTED_REL_LOC_PATH = 95;
932

933   { ER_EXPECTED_REL_LOC_PATH,
934       "Po leksemie '/' oraz '//' oczekiwana by\u0142a \u015bcie\u017cka wzgl\u0119dna po\u0142o\u017cenia."},
935
936   // Note to translators: A location path is a form of XPath expression.
937
// The message indicates that syntactically such an expression was expected,but
938
// the characters specified by the substitution text were encountered instead.
939

940   /** Problem with LocationPath */
941 // public static final int ER_EXPECTED_LOC_PATH = 96;
942

943   { ER_EXPECTED_LOC_PATH,
944        "Oczekiwano \u015bcie\u017cki po\u0142o\u017cenia, ale napotkano nast\u0119puj\u0105cy leksem\u003a {0}"},
945
946   // Note to translators: A location step is part of an XPath expression.
947
// The message indicates that syntactically such an expression was expected
948
// following the specified characters.
949

950   /** Problem with Step */
951 // public static final int ER_EXPECTED_LOC_STEP = 97;
952

953   { ER_EXPECTED_LOC_STEP,
954        "Po leksemie '/' lub '//' oczekiwany by\u0142 krok po\u0142o\u017cenia."},
955
956   // Note to translators: A node test is part of an XPath expression that is
957
// used to test for particular kinds of nodes. In this case, a node test that
958
// consists of an NCName followed by a colon and an asterisk or that consists
959
// of a QName was expected, but was not found.
960

961   /** Problem with NodeTest */
962 // public static final int ER_EXPECTED_NODE_TEST = 98;
963

964   { ER_EXPECTED_NODE_TEST,
965        "Oczekiwano testu w\u0119z\u0142a zgodnego albo z NCName:*, albo z QName."},
966
967   // Note to translators: A step pattern is part of an XPath expression.
968
// The message indicates that syntactically such an expression was expected,
969
// but the specified character was found in the expression instead.
970

971   /** Expected step pattern */
972 // public static final int ER_EXPECTED_STEP_PATTERN = 99;
973

974   { ER_EXPECTED_STEP_PATTERN,
975        "Oczekiwano wzorca kroku, ale napotkano '/'."},
976
977   // Note to translators: A relative path pattern is part of an XPath expression.
978
// The message indicates that syntactically such an expression was expected,
979
// but was not found.
980

981   /** Expected relative path pattern */
982 // public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
983

984   { ER_EXPECTED_REL_PATH_PATTERN,
985        "Oczekiwano wzorca \u015bcie\u017cki wzgl\u0119dnej."},
986
987   // Note to translators: A QNAME has the syntactic form [NCName:]NCName
988
// The localname is the portion after the optional colon; the message indicates
989
// that there is a problem with that part of the QNAME.
990

991   /** localname in QNAME should be a valid NCName */
992 // public static final int ER_ARG_LOCALNAME_INVALID = 101;
993

994   //{ ER_ARG_LOCALNAME_INVALID,
995
// "Localname in QNAME should be a valid NCName"},
996

997   // Note to translators: A QNAME has the syntactic form [NCName:]NCName
998
// The prefix is the portion before the optional colon; the message indicates
999
// that there is a problem with that part of the QNAME.
1000

1001  /** prefix in QNAME should be a valid NCName */
1002 // public static final int ER_ARG_PREFIX_INVALID = 102;
1003

1004  //{ ER_ARG_PREFIX_INVALID,
1005
// "Prefix in QNAME should be a valid NCName"},
1006

1007  // Note to translators: The substitution text is the name of a data type. The
1008
// message indicates that a value of a particular type could not be converted
1009
// to a value of type string.
1010

1011  /** Field ER_CANT_CONVERT_TO_BOOLEAN */
1012// public static final int ER_CANT_CONVERT_TO_BOOLEAN = 103;
1013

1014  { ER_CANT_CONVERT_TO_BOOLEAN,
1015       "Nie mo\u017cna przekszta\u0142ci\u0107 {0} w warto\u015b\u0107 boolowsk\u0105."},
1016
1017  // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and
1018
// FIRST_ORDERED_NODE_TYPE.
1019

1020  /** Field ER_CANT_CONVERT_TO_SINGLENODE */
1021  //public static final int ER_CANT_CONVERT_TO_SINGLENODE = 104;
1022

1023  { ER_CANT_CONVERT_TO_SINGLENODE,
1024       "Nie mo\u017cna przekszta\u0142ci\u0107 {0} w pojedynczy w\u0119ze\u0142. Ta procedura czytaj\u0105ca stosuje si\u0119 do typ\u00f3w ANY_UNORDERED_NODE_TYPE oraz FIRST_ORDERED_NODE_TYPE."},
1025
1026  // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
1027
// ORDERED_NODE_SNAPSHOT_TYPE.
1028

1029  /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
1030// public static final int ER_CANT_GET_SNAPSHOT_LENGTH = 105;
1031

1032  { ER_CANT_GET_SNAPSHOT_LENGTH,
1033       "Nie mo\u017cna pobra\u0107 d\u0142ugo\u015bci obrazu stanu w typie: {0}. Ta procedura czytaj\u0105ca stosuje si\u0119 do typ\u00f3w UNORDERED_NODE_SNAPSHOT_TYPE oraz ORDERED_NODE_SNAPSHOT_TYPE."},
1034
1035  /** Field ER_NON_ITERATOR_TYPE */
1036  //public static final int ER_NON_ITERATOR_TYPE = 106;
1037

1038  { ER_NON_ITERATOR_TYPE,
1039       "Nie mo\u017cna iterowa\u0107 w typie nieiterowanym: {0}"},
1040
1041  // Note to translators: This message indicates that the document being operated
1042
// upon changed, so the iterator object that was being used to traverse the
1043
// document has now become invalid.
1044

1045  /** Field ER_DOC_MUTATED */
1046// public static final int ER_DOC_MUTATED = 107;
1047

1048  { ER_DOC_MUTATED,
1049       "Dokument uleg\u0142 zmianie od czasu zwr\u00f3cenia rezultatu. Iterator jest niepoprawny."},
1050
1051  /** Field ER_INVALID_XPATH_TYPE */
1052// public static final int ER_INVALID_XPATH_TYPE = 108;
1053

1054  { ER_INVALID_XPATH_TYPE,
1055       "Niepoprawny argument typu XPath: {0}"},
1056
1057  /** Field ER_EMPTY_XPATH_RESULT */
1058// public static final int ER_EMPTY_XPATH_RESULT = 109;
1059

1060  { ER_EMPTY_XPATH_RESULT,
1061       "Pusty obiekt rezultatu XPath"},
1062
1063  /** Field ER_INCOMPATIBLE_TYPES */
1064// public static final int ER_INCOMPATIBLE_TYPES = 110;
1065

1066  { ER_INCOMPATIBLE_TYPES,
1067       "Nie mo\u017cna wymusi\u0107 przekszta\u0142cenia zwr\u00f3conego typu {0} w podany typ {1}"},
1068
1069  /** Field ER_NULL_RESOLVER */
1070 // public static final int ER_NULL_RESOLVER = 111;
1071

1072  { ER_NULL_RESOLVER,
1073       "Nie mo\u017cna przet\u0142umaczy\u0107 przedrostka za pomoc\u0105 procedury t\u0142umacz\u0105cej o pustym przedrostku."},
1074
1075  // Note to translators: The substitution text is the name of a data type. The
1076
// message indicates that a value of a particular type could not be converted
1077
// to a value of type string.
1078

1079  /** Field ER_CANT_CONVERT_TO_STRING */
1080// public static final int ER_CANT_CONVERT_TO_STRING = 112;
1081

1082  { ER_CANT_CONVERT_TO_STRING,
1083       "Nie mo\u017cna przekszta\u0142ci\u0107 {0} w ci\u0105g znak\u00f3w."},
1084
1085  // Note to translators: Do not translate snapshotItem,
1086
// UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
1087

1088  /** Field ER_NON_SNAPSHOT_TYPE */
1089// public static final int ER_NON_SNAPSHOT_TYPE = 113;
1090

1091  { ER_NON_SNAPSHOT_TYPE,
1092       "Nie mo\u017cna wywo\u0142a\u0107 snapshotItem dla typu {0}. Metoda ta stosuje si\u0119 do typ\u00f3w UNORDERED_NODE_SNAPSHOT_TYPE oraz ORDERED_NODE_SNAPSHOT_TYPE."},
1093
1094  // Note to translators: XPathEvaluator is a Java interface name. An
1095
// XPathEvaluator is created with respect to a particular XML document, and in
1096
// this case the expression represented by this object was being evaluated with
1097
// respect to a context node from a different document.
1098

1099  /** Field ER_WRONG_DOCUMENT */
1100// public static final int ER_WRONG_DOCUMENT = 114;
1101

1102  { ER_WRONG_DOCUMENT,
1103       "W\u0119ze\u0142 kontekstu nie nale\u017cy do dokumentu, kt\u00f3ry jest zwi\u0105zany z tym interfejsem XPathEvaluator."},
1104
1105  // Note to translators: The XPath expression cannot be evaluated with respect
1106
// to this type of node.
1107
/** Field ER_WRONG_NODETYPE */
1108// public static final int ER_WRONG_NODETYPE = 115;
1109

1110  { ER_WRONG_NODETYPE,
1111       "Nieobs\u0142ugiwany typ w\u0119z\u0142a kontekstu."},
1112
1113  /** Field ER_XPATH_ERROR */
1114// public static final int ER_XPATH_ERROR = 116;
1115

1116  { ER_XPATH_ERROR,
1117       "Nieznany b\u0142\u0105d w XPath."},
1118
1119
1120  // Warnings...
1121

1122  /** Field WG_LOCALE_NAME_NOT_HANDLED */
1123// public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
1124

1125  { WG_LOCALE_NAME_NOT_HANDLED,
1126      "Nazwa lokalizacji w funkcji format-number nie zosta\u0142a jeszcze obs\u0142u\u017cona!"},
1127
1128  /** Field WG_PROPERTY_NOT_SUPPORTED */
1129// public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
1130

1131  { WG_PROPERTY_NOT_SUPPORTED,
1132      "Nieobs\u0142ugiwana w\u0142a\u015bciwo\u015b\u0107 XSL {0}"},
1133
1134  /** Field WG_DONT_DO_ANYTHING_WITH_NS */
1135// public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
1136

1137  { WG_DONT_DO_ANYTHING_WITH_NS,
1138      "Nie r\u00f3b teraz niczego z przestrzeni\u0105 nazw {0} we w\u0142a\u015bciwo\u015bci {1}"},
1139
1140  /** Field WG_SECURITY_EXCEPTION */
1141// public static final int WG_SECURITY_EXCEPTION = 4;
1142

1143  { WG_SECURITY_EXCEPTION,
1144      "Wyj\u0105tek SecurityException podczas pr\u00f3by dost\u0119pu do w\u0142a\u015bciwo\u015bci systemowej XSL {0}"},
1145
1146  /** Field WG_QUO_NO_LONGER_DEFINED */
1147// public static final int WG_QUO_NO_LONGER_DEFINED = 5;
1148

1149  { WG_QUO_NO_LONGER_DEFINED,
1150      "Stara sk\u0142adnia: quo(...) nie jest ju\u017c zdefiniowana w XPath."},
1151
1152  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST */
1153// public static final int WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 6;
1154

1155  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
1156      "XPath potrzebuje obiektu pochodnego, aby zaimplementowa\u0107 nodeTest!"},
1157
1158  /** Field WG_FUNCTION_TOKEN_NOT_FOUND */
1159// public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
1160

1161  { WG_FUNCTION_TOKEN_NOT_FOUND,
1162      "Nie znaleziono leksemu funkcji."},
1163
1164  /** Field WG_COULDNOT_FIND_FUNCTION */
1165// public static final int WG_COULDNOT_FIND_FUNCTION = 8;
1166

1167  { WG_COULDNOT_FIND_FUNCTION,
1168      "Nie mo\u017cna znale\u017a\u0107 funkcji: {0}"},
1169
1170  /** Field WG_CANNOT_MAKE_URL_FROM */
1171// public static final int WG_CANNOT_MAKE_URL_FROM = 9;
1172

1173  { WG_CANNOT_MAKE_URL_FROM,
1174      "Nie mo\u017cna utworzy\u0107 adresu URL z {0}"},
1175
1176  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED */
1177// public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
1178

1179  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,
1180      "Opcja -E nie jest obs\u0142ugiwana przez analizator DTM"},
1181
1182  /** Field WG_ILLEGAL_VARIABLE_REFERENCE */
1183// public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
1184

1185  { WG_ILLEGAL_VARIABLE_REFERENCE,
1186      "VariableReference nadana zmiennej nie nale\u017cy do kontekstu lub nie ma definicji! Nazwa = {0}"},
1187
1188  /** Field WG_UNSUPPORTED_ENCODING */
1189// public static final int WG_UNSUPPORTED_ENCODING = 12;
1190

1191  { WG_UNSUPPORTED_ENCODING,
1192     "Nieobs\u0142ugiwane kodowanie: {0}"},
1193
1194
1195
1196  // Other miscellaneous text used inside the code...
1197
{ "ui_language", "pl"},
1198  { "help_language", "pl"},
1199  { "language", "pl"},
1200  { "BAD_CODE", "Parametr createMessage by\u0142 spoza zakresu"},
1201  { "FORMAT_FAILED", "Podczas wywo\u0142ania messageFormat zg\u0142oszony zosta\u0142 wyj\u0105tek"},
1202  { "version", ">>>>>>> Wersja Xalan "},
1203  { "version2", "<<<<<<<"},
1204  { "yes", "tak"},
1205  { "line", "Wiersz: "},
1206  { "column", "Kolumna: "},
1207  { "xsldone", "XSLProcessor: gotowe"},
1208  { "xpath_option", "opcje xpath: "},
1209  { "optionIN", " [-in wej\u015bciowyXMLURL]"},
1210  { "optionSelect", " [-select wyra\u017cenie xpath]"},
1211  { "optionMatch", " [-match wzorzec (do diagnostyki odnajdywania zgodno\u015bci ze wzorcem)]"},
1212  { "optionAnyExpr", "Lub po prostu wyra\u017cenie xpath dokona zrzutu diagnostycznego"},
1213  { "noParsermsg1", "Proces XSL nie wykona\u0142 si\u0119 pomy\u015blnie."},
1214  { "noParsermsg2", "** Nie mo\u017cna znale\u017a\u0107 analizatora **"},
1215  { "noParsermsg3", "Sprawd\u017a classpath."},
1216  { "noParsermsg4", "Je\u015bli nie masz analizatora XML dla j\u0119zyka Java firmy IBM, mo\u017cesz go pobra\u0107 "},
1217  { "noParsermsg5", "z serwisu AlphaWorks firmy IBM: http://www.alphaworks.ibm.com/formula/xml"},
1218  { "gtone", ">1" },
1219  { "zero", "0" },
1220  { "one", "1" },
1221  { "two" , "2" },
1222  { "three", "3" }
1223
1224  };
1225
1226
1227  // ================= INFRASTRUCTURE ======================
1228

1229  /** Field BAD_CODE */
1230  public static final String JavaDoc BAD_CODE = "B\u0141\u0118DNY_KOD";
1231
1232  /** Field FORMAT_FAILED */
1233  public static final String JavaDoc FORMAT_FAILED = "FORMATOWANIE_NIE_POWIOD\u0141O_SI\u0118";
1234
1235  /** Field ERROR_RESOURCES */
1236  public static final String JavaDoc ERROR_RESOURCES =
1237    "org.apache.xpath.res.XPATHErrorResources";
1238
1239  /** Field ERROR_STRING */
1240  public static final String JavaDoc ERROR_STRING = "nr b\u0142\u0119du";
1241
1242  /** Field ERROR_HEADER */
1243  public static final String JavaDoc ERROR_HEADER = "B\u0142\u0105d: ";
1244
1245  /** Field WARNING_HEADER */
1246  public static final String JavaDoc WARNING_HEADER = "Ostrze\u017cenie: ";
1247
1248  /** Field XSL_HEADER */
1249  public static final String JavaDoc XSL_HEADER = "XSL ";
1250
1251  /** Field XML_HEADER */
1252  public static final String JavaDoc XML_HEADER = "XML ";
1253
1254  /** Field QUERY_HEADER */
1255  public static final String JavaDoc QUERY_HEADER = "WZORZEC ";
1256
1257  /**
1258   * Get the association list.
1259   *
1260   * @return The association list.
1261   */

1262  public Object JavaDoc[][] getContents()
1263  {
1264    return contents;
1265  }
1266
1267  /**
1268   * Return a named ResourceBundle for a particular locale. This method mimics the behavior
1269   * of ResourceBundle.getBundle().
1270   *
1271   * @param res the name of the resource to load.
1272   * @param locale the locale to prefer when searching for the bundle
1273   *
1274   * @param className Name of local-specific subclass.
1275   * @return the ResourceBundle
1276   * @throws MissingResourceException
1277   */

1278  public static final XPATHErrorResources loadResourceBundle(String JavaDoc className)
1279          throws MissingResourceException JavaDoc
1280  {
1281
1282    Locale JavaDoc locale = Locale.getDefault();
1283    String JavaDoc suffix = getResourceSuffix(locale);
1284
1285    try
1286    {
1287
1288      // first try with the given locale
1289
return (XPATHErrorResources) ResourceBundle.getBundle(className
1290              + suffix, locale);
1291    }
1292    catch (MissingResourceException JavaDoc e)
1293    {
1294      try // try to fall back to en_US if we can't load
1295
{
1296
1297        // Since we can't find the localized property file,
1298
// fall back to en_US.
1299
return (XPATHErrorResources) ResourceBundle.getBundle(className,
1300                new Locale JavaDoc("pl", "PL"));
1301      }
1302      catch (MissingResourceException JavaDoc e2)
1303      {
1304
1305        // Now we are really in trouble.
1306
// very bad, definitely very bad...not going to get very far
1307
throw new MissingResourceException JavaDoc(
1308          "Could not load any resource bundles.", className, "");
1309      }
1310    }
1311  }
1312
1313  /**
1314   * Return the resource file suffic for the indicated locale
1315   * For most locales, this will be based the language code. However
1316   * for Chinese, we do distinguish between Taiwan and PRC
1317   *
1318   * @param locale the locale
1319   * @return an String suffix which canbe appended to a resource name
1320   */

1321  private static final String JavaDoc getResourceSuffix(Locale JavaDoc locale)
1322  {
1323
1324    String JavaDoc suffix = "_" + locale.getLanguage();
1325    String JavaDoc country = locale.getCountry();
1326
1327    if (country.equals("TW"))
1328      suffix += "_" + country;
1329
1330    return suffix;
1331  }
1332
1333}
1334
Popular Tags