• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2003, 2006, 2009, 2011 Apple Inc.  All rights reserved.
3  * Copyright (C) 2010 Igalia S.L
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
15  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
18  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  */
26 
27 #ifndef LocalizedStrings_h
28 #define LocalizedStrings_h
29 
30 #include <wtf/Forward.h>
31 
32 namespace WebCore {
33 
34     class IntSize;
35 
36     String inputElementAltText();
37     String resetButtonDefaultLabel();
38     String searchableIndexIntroduction();
39     String submitButtonDefaultLabel();
40     String fileButtonChooseFileLabel();
41     String fileButtonNoFileSelectedLabel();
42     String defaultDetailsSummaryText();
43 
44 #if PLATFORM(MAC)
45     String copyImageUnknownFileLabel();
46 #endif
47 
48 #if ENABLE(CONTEXT_MENUS)
49     String contextMenuItemTagOpenLinkInNewWindow();
50     String contextMenuItemTagDownloadLinkToDisk();
51     String contextMenuItemTagCopyLinkToClipboard();
52     String contextMenuItemTagOpenImageInNewWindow();
53     String contextMenuItemTagDownloadImageToDisk();
54     String contextMenuItemTagCopyImageToClipboard();
55 #if PLATFORM(QT) || PLATFORM(GTK)
56     String contextMenuItemTagCopyImageUrlToClipboard();
57 #endif
58     String contextMenuItemTagOpenFrameInNewWindow();
59     String contextMenuItemTagCopy();
60     String contextMenuItemTagGoBack();
61     String contextMenuItemTagGoForward();
62     String contextMenuItemTagStop();
63     String contextMenuItemTagReload();
64     String contextMenuItemTagCut();
65     String contextMenuItemTagPaste();
66 #if PLATFORM(GTK)
67     String contextMenuItemTagDelete();
68     String contextMenuItemTagInputMethods();
69     String contextMenuItemTagUnicode();
70 #endif
71 #if PLATFORM(GTK) || PLATFORM(QT)
72     String contextMenuItemTagSelectAll();
73 #endif
74     String contextMenuItemTagNoGuessesFound();
75     String contextMenuItemTagIgnoreSpelling();
76     String contextMenuItemTagLearnSpelling();
77     String contextMenuItemTagSearchWeb();
78     String contextMenuItemTagLookUpInDictionary(const String& selectedString);
79     String contextMenuItemTagOpenLink();
80     String contextMenuItemTagIgnoreGrammar();
81     String contextMenuItemTagSpellingMenu();
82     String contextMenuItemTagShowSpellingPanel(bool show);
83     String contextMenuItemTagCheckSpelling();
84     String contextMenuItemTagCheckSpellingWhileTyping();
85     String contextMenuItemTagCheckGrammarWithSpelling();
86     String contextMenuItemTagFontMenu();
87     String contextMenuItemTagBold();
88     String contextMenuItemTagItalic();
89     String contextMenuItemTagUnderline();
90     String contextMenuItemTagOutline();
91     String contextMenuItemTagWritingDirectionMenu();
92     String contextMenuItemTagTextDirectionMenu();
93     String contextMenuItemTagDefaultDirection();
94     String contextMenuItemTagLeftToRight();
95     String contextMenuItemTagRightToLeft();
96 #if PLATFORM(MAC)
97     String contextMenuItemTagSearchInSpotlight();
98     String contextMenuItemTagShowFonts();
99     String contextMenuItemTagStyles();
100     String contextMenuItemTagShowColors();
101     String contextMenuItemTagSpeechMenu();
102     String contextMenuItemTagStartSpeaking();
103     String contextMenuItemTagStopSpeaking();
104     String contextMenuItemTagCorrectSpellingAutomatically();
105     String contextMenuItemTagSubstitutionsMenu();
106     String contextMenuItemTagShowSubstitutions(bool show);
107     String contextMenuItemTagSmartCopyPaste();
108     String contextMenuItemTagSmartQuotes();
109     String contextMenuItemTagSmartDashes();
110     String contextMenuItemTagSmartLinks();
111     String contextMenuItemTagTextReplacement();
112     String contextMenuItemTagTransformationsMenu();
113     String contextMenuItemTagMakeUpperCase();
114     String contextMenuItemTagMakeLowerCase();
115     String contextMenuItemTagCapitalize();
116     String contextMenuItemTagChangeBack(const String& replacedString);
117 #endif
118     String contextMenuItemTagOpenVideoInNewWindow();
119     String contextMenuItemTagOpenAudioInNewWindow();
120     String contextMenuItemTagCopyVideoLinkToClipboard();
121     String contextMenuItemTagCopyAudioLinkToClipboard();
122     String contextMenuItemTagToggleMediaControls();
123     String contextMenuItemTagToggleMediaLoop();
124     String contextMenuItemTagEnterVideoFullscreen();
125     String contextMenuItemTagMediaPlay();
126     String contextMenuItemTagMediaPause();
127     String contextMenuItemTagMediaMute();
128     String contextMenuItemTagInspectElement();
129 #endif // ENABLE(CONTEXT_MENUS)
130 
131     String searchMenuNoRecentSearchesText();
132     String searchMenuRecentSearchesText();
133     String searchMenuClearRecentSearchesText();
134 
135     String AXWebAreaText();
136     String AXLinkText();
137     String AXListMarkerText();
138     String AXImageMapText();
139     String AXHeadingText();
140     String AXDefinitionListTermText();
141     String AXDefinitionListDefinitionText();
142 
143 #if PLATFORM(MAC)
144     String AXARIAContentGroupText(const String& ariaType);
145 #endif
146 
147     String AXButtonActionVerb();
148     String AXRadioButtonActionVerb();
149     String AXTextFieldActionVerb();
150     String AXCheckedCheckBoxActionVerb();
151     String AXUncheckedCheckBoxActionVerb();
152     String AXMenuListActionVerb();
153     String AXMenuListPopupActionVerb();
154     String AXLinkActionVerb();
155 
156     String missingPluginText();
157     String crashedPluginText();
158     String multipleFileUploadText(unsigned numberOfFiles);
159     String unknownFileSizeText();
160 
161 #if PLATFORM(WIN)
162     String uploadFileText();
163     String allFilesText();
164 #endif
165 
166 #if PLATFORM(MAC)
167     String keygenMenuItem512();
168     String keygenMenuItem1024();
169     String keygenMenuItem2048();
170     String keygenKeychainItemName(const String& host);
171 #endif
172 
173     String imageTitle(const String& filename, const IntSize& size);
174 
175     String mediaElementLoadingStateText();
176     String mediaElementLiveBroadcastStateText();
177     String localizedMediaControlElementString(const String&);
178     String localizedMediaControlElementHelpText(const String&);
179     String localizedMediaTimeDescription(float);
180 
181     String validationMessageValueMissingText();
182     String validationMessageValueMissingForCheckboxText();
183     String validationMessageValueMissingForFileText();
184     String validationMessageValueMissingForMultipleFileText();
185     String validationMessageValueMissingForRadioText();
186     String validationMessageValueMissingForSelectText();
187     String validationMessageTypeMismatchText();
188     String validationMessageTypeMismatchForEmailText();
189     String validationMessageTypeMismatchForMultipleEmailText();
190     String validationMessageTypeMismatchForURLText();
191     String validationMessagePatternMismatchText();
192     String validationMessageTooLongText(int valueLength, int maxLength);
193     String validationMessageRangeUnderflowText(const String& minimum);
194     String validationMessageRangeOverflowText(const String& maximum);
195     String validationMessageStepMismatchText(const String& base, const String& step);
196 
197 
198 #define WEB_UI_STRING(string, description) WebCore::localizedString(string)
199 #define WEB_UI_STRING_KEY(string, key, description) WebCore::localizedString(key)
200 
201     String localizedString(const char* key);
202 
203 } // namespace WebCore
204 
205 #endif // LocalizedStrings_h
206