KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

25 /**
26  * The Swedish resource bundle.
27  * @xsl.usage internal
28  */

29 public class XResources_sv 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", "sv" }, { "help_language", "sv" }, { "language", "sv" },
53     { "alphabet",
54       new char[]{ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L',
55                   'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
56                   'Y', 'Z' } },
57     { "tradAlphabet",
58       new char[]{ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L',
59                   'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
60                   'Y', 'Z' } },
61
62     //language orientation
63
{ "orientation", "LeftToRight" },
64
65     //language numbering
66
{ "numbering", "additive" },
67
68     // largest numerical value
69
//{"MaxNumericalValue", new Integer()},
70
//These would not be used for EN. Only used for traditional numbering
71
//{"numberGroups", new int[]{10,1}},
72
//These only used for mutiplicative-additive numbering
73
//{"multiplier", "10"},
74
//{"multiplierChar", "M"},
75
//{"digits", new char[]{'a','b','c','d','e','f','g','h','i'}},
76
//{"digits", new char[]{0x10D0,0x10D1,0x10D2,0x10D3,0x10D4,0x10D5,0x10D6,0x10D7,0x10D8}},
77
//{"tens", new char[]{0x10D9,0x10DA,0x10DB,0x10DC,0x10DD,0x10DE,0x10DF,0x10E0,0x10E1}},
78
//hundreds, etc...
79
//{"tables", new String[]{"tens", "digits"}}
80
};
81 }
82
Popular Tags