~vcs-imports/xena/trunk

« back to all changes in this revision

Viewing changes to ext/src/javahelp/jhMaster/JavaHelp/src/new/javax/help/resources/.svn/text-base/Constants.java.svn-base

  • Committer: matthewoliver
  • Date: 2009-12-10 03:18:07 UTC
  • Revision ID: vcs-imports@canonical.com-20091210031807-l086qguzdlljtkl9
Merged Xena Testing into Xena Stable for the Xena 5 release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * @(#)Constants.java   1.22 06/10/30
 
3
 * 
 
4
 * Copyright (c) 2006 Sun Microsystems, Inc.  All Rights Reserved.
 
5
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 
6
 * 
 
7
 * This code is free software; you can redistribute it and/or modify it
 
8
 * under the terms of the GNU General Public License version 2 only, as
 
9
 * published by the Free Software Foundation.  Sun designates this
 
10
 * particular file as subject to the "Classpath" exception as provided
 
11
 * by Sun in the LICENSE file that accompanied this code.
 
12
 * 
 
13
 * This code is distributed in the hope that it will be useful, but WITHOUT
 
14
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
15
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 
16
 * version 2 for more details (a copy is included in the LICENSE file that
 
17
 * accompanied this code).
 
18
 * 
 
19
 * You should have received a copy of the GNU General Public License version
 
20
 * 2 along with this work; if not, write to the Free Software Foundation,
 
21
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 
22
 * 
 
23
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
 
24
 * CA 95054 USA or visit www.sun.com if you need additional information or
 
25
 * have any questions.
 
26
 */
 
27
/*
 
28
 * @(#) Constants.java 1.22 - last change made 10/30/06
 
29
 */
 
30
 
 
31
package javax.help.resources;
 
32
 
 
33
import java.util.ListResourceBundle;
 
34
 
 
35
/**
 
36
 * Constants used for localizing JavaHelp.
 
37
 *
 
38
 * These are in the form of key, value.
 
39
 * Translators take care to only translate the values.
 
40
 */
 
41
 
 
42
public class Constants extends ListResourceBundle {
 
43
    /**
 
44
     * Overrides ListResourceBundle.
 
45
     */
 
46
    public Object[][] getContents() {
 
47
        return new Object[][] {
 
48
 
 
49
            //  Constant strings and patterns
 
50
            { "helpset.wrongPublicID",
 
51
                  "Unknown PublicID {0}"},
 
52
            { "helpset.wrongTitle",
 
53
                  "Attempting to set title to {0} but already has value {1}."},
 
54
            { "helpset.wrongHomeID",
 
55
                  "Attempting to set homeID to {0} but already has value {1}."},
 
56
            { "helpset.subHelpSetTrouble",
 
57
                  "Trouble creating subhelpset: {0}."},
 
58
            { "helpset.malformedURL",
 
59
                  "Malformed URL: {0}."},
 
60
            { "helpset.incorrectURL",
 
61
                  "Incorrect URL: {0}."},
 
62
            { "helpset.wrongText",
 
63
                  "{0} cannot contain text {1}."},
 
64
            { "helpset.wrongTopLevel",
 
65
                  "{0} cannot be a top level tag."},
 
66
            { "helpset.wrongParent",
 
67
                  "The parent tag for {0} cannot be {1}."},
 
68
            { "helpset.unbalanced",
 
69
                  "Unbalanced tag {0}."},
 
70
            { "helpset.wrongLocale",
 
71
                  "Warning: xml:lang attribute {0} conflicts with default {1} and with default {2}"},
 
72
            { "helpset.unknownVersion",
 
73
                  "Unknown Version {0}."},
 
74
 
 
75
                // IndexView messages
 
76
            { "index.invalidIndexFormat",
 
77
                  "Warning: Invalid Index format"},
 
78
            { "index.unknownVersion",
 
79
                  "Unknown Version {0}."},
 
80
 
 
81
                // TOCView messages
 
82
            { "toc.wrongPublicID",
 
83
                  "Unknown PublicID {0}"},
 
84
            { "toc.invalidTOCFormat",
 
85
                  "Warning: Invalid TOC format"},
 
86
            { "toc.unknownVersion",
 
87
                  "Unknown Version {0}."},
 
88
                  
 
89
            // FavoritesView messages
 
90
            { "favorites.invalidFavoritesFormat",
 
91
                  "Warning: Invalid Favorites format"},
 
92
            { "favorites.unknownVersion",
 
93
                  "Unknown Version {0}."},
 
94
 
 
95
                // Map messages
 
96
            { "map.wrongPublicID",
 
97
                  "Unknown PublicID {0}"},
 
98
            { "map.invalidMapFormat",
 
99
                  "Warning: Invalid Map format"},
 
100
            { "map.unknownVersion",
 
101
                  "Unknown Version {0}."},
 
102
 
 
103
            // GUI components
 
104
            // Labels
 
105
            { "index.findLabel", "Find: "},
 
106
            
 
107
            { "search.findLabel", "Find: "},
 
108
            { "search.hitDesc", "Number of occurances in document"},
 
109
            { "search.qualityDesc", "Lowest penality value in document" },
 
110
            { "search.high", "High"},
 
111
            { "search.midhigh", "Medium high"},
 
112
            { "search.mid", "Medium"},
 
113
            { "search.midlow", "Medium low"},
 
114
            { "search.low", "Low"},
 
115
            
 
116
            { "favorites.add", "Add"},
 
117
            { "favorites.remove", "Remove"},
 
118
            { "favorites.folder", "New Folder"},
 
119
            { "favorites.name", "Name"},
 
120
            { "favorites.cut", "Cut"},
 
121
            { "favorites.paste", "Paste"},
 
122
            { "favorites.copy" , "Copy"},
 
123
 
 
124
            { "history.homePage", "Home page"},
 
125
            { "history.unknownTitle", "<unknown page title>"},
 
126
 
 
127
            // ToolTips for Actions
 
128
            { "tooltip.BackAction", "Previous Page"},
 
129
            { "tooltip.ForwardAction", "Next Page"},
 
130
            { "tooltip.PrintAction", "Print"},
 
131
            { "tooltip.PrintSetupAction", "Page Setup"},
 
132
            { "tooltip.ReloadAction", "Reload"},
 
133
            { "tooltip.FavoritesAction", "Add to Favorites"},
 
134
            { "tooltip.HomeAction", "Go to home page"},
 
135
 
 
136
            // Accessibility names
 
137
            { "access.BackAction", "Previous Button"},
 
138
            { "access.ForwardAction", "Next Button"},
 
139
            { "access.HistoryAction", "History Button"},
 
140
            { "access.PrintAction", "Print Button"},
 
141
            { "access.PrintSetupAction", "Page Setup Button"},
 
142
            { "access.ReloadAction", "Reload Button"},
 
143
            { "access.HomeAction", "Home Button"},
 
144
            { "access.FavoritesAction", "Add to Favorites Button"},
 
145
            { "access.contentViewer", "Content Viewer"}
 
146
 
 
147
       };
 
148
    }
 
149
}