KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xml > internal > utils > res > XResources_zh_TW


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: XResources_zh_TW.java,v 1.8 2004/02/17 04:22:15 minchau Exp $
18  */

19 package com.sun.org.apache.xml.internal.utils.res;
20
21 //
22
// LangResources_en.properties
23
//
24

25 /**
26  * The Chinese(Taiwan) resource bundle.
27  * @xsl.usage internal
28  */

29 public class XResources_zh_TW extends XResourceBundle
30 {
31
32   /**
33    * Get the association list.
34    *
35    * @return The association list.
36    */

37   protected Object JavaDoc[][] getContents() {
38       // return a copy of contents; in theory we want a deep clone
39
// of contents, but since it only contains (immutable) Strings,
40
// this shallow copy is sufficient
41
Object JavaDoc[][] msgCopy = new Object JavaDoc[contents.length][2];
42       for (int i = 0; i < contents.length; i++) {
43           msgCopy[i][0] = contents[i][0];
44           msgCopy[i][1] = contents[i][1];
45       }
46       return msgCopy;
47   }
48
49   /** The association list. */
50   static final Object JavaDoc[][] contents =
51   {
52     { "ui_language", "zh" }, { "help_language", "zh" }, { "language", "zh" },
53     { "alphabet",
54       new char[]{ 0xff21, 0xff22, 0xff23, 0xff24, 0xff25, 0xff26, 0xff27,
55                   0xff28, 0xff29, 0xff2a, 0xff2b, 0xff2c, 0xff2d, 0xff2e,
56                   0xff2f, 0xff30, 0xff31, 0xff32, 0xff33, 0xff34, 0xff35,
57                   0xff36, 0xff37, 0xff38, 0xff39, 0xff3a } },
58     { "tradAlphabet",
59       new char[]{ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L',
60                   'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
61                   'Y', 'Z' } },
62
63     //language orientation
64
{ "orientation", "LeftToRight" },
65
66     //language numbering
67
{ "numbering", "multiplicative-additive" },
68     { "multiplierOrder", "follows" },
69
70     // largest numerical value
71
//{"MaxNumericalValue", new Integer(100000000)},
72
//These would not be used for EN. Only used for traditional numbering
73
{ "numberGroups", new int[]{ 1 } },
74
75     // simplified chinese
76
{ "zero", new char[]{ 0x96f6 } },
77
78     //These only used for mutiplicative-additive numbering
79
{ "multiplier", new long[]{ 100000000, 10000, 1000, 100, 10 } },
80     { "multiplierChar",
81       new char[]{ 0x5104, 0x842c, 0x4edf, 0x4f70, 0x62fe } },
82     { "digits",
83       new char[]{ 0x58f9, 0x8cb3, 0x53c3, 0x8086, 0x4f0d, 0x9678, 0x67d2,
84                   0x634c, 0x7396 } }, { "tables", new String JavaDoc[]{ "digits" } }
85   };
86 }
87
Popular Tags