1/*
2 * Copyright (C) 2003, 2006, 2009, 2011, 2012, 2013 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 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 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
32namespace WebCore {
33
34    class IntSize;
35
36    String inputElementAltText();
37    String resetButtonDefaultLabel();
38    String searchableIndexIntroduction();
39    String submitButtonDefaultLabel();
40    String fileButtonChooseFileLabel();
41    String fileButtonChooseMultipleFilesLabel();
42    String fileButtonNoFileSelectedLabel();
43    String fileButtonNoFilesSelectedLabel();
44    String defaultDetailsSummaryText();
45
46#if PLATFORM(COCOA)
47    String copyImageUnknownFileLabel();
48#endif
49
50#if ENABLE(CONTEXT_MENUS)
51    String contextMenuItemTagOpenLinkInNewWindow();
52    String contextMenuItemTagDownloadLinkToDisk();
53    String contextMenuItemTagCopyLinkToClipboard();
54    String contextMenuItemTagOpenImageInNewWindow();
55    String contextMenuItemTagDownloadImageToDisk();
56    String contextMenuItemTagCopyImageToClipboard();
57#if PLATFORM(GTK) || PLATFORM(EFL)
58    String contextMenuItemTagCopyImageUrlToClipboard();
59#endif
60    String contextMenuItemTagOpenFrameInNewWindow();
61    String contextMenuItemTagCopy();
62    String contextMenuItemTagGoBack();
63    String contextMenuItemTagGoForward();
64    String contextMenuItemTagStop();
65    String contextMenuItemTagReload();
66    String contextMenuItemTagCut();
67    String contextMenuItemTagPaste();
68#if PLATFORM(GTK)
69    String contextMenuItemTagDelete();
70    String contextMenuItemTagInputMethods();
71    String contextMenuItemTagUnicode();
72    String contextMenuItemTagUnicodeInsertLRMMark();
73    String contextMenuItemTagUnicodeInsertRLMMark();
74    String contextMenuItemTagUnicodeInsertLREMark();
75    String contextMenuItemTagUnicodeInsertRLEMark();
76    String contextMenuItemTagUnicodeInsertLROMark();
77    String contextMenuItemTagUnicodeInsertRLOMark();
78    String contextMenuItemTagUnicodeInsertPDFMark();
79    String contextMenuItemTagUnicodeInsertZWSMark();
80    String contextMenuItemTagUnicodeInsertZWJMark();
81    String contextMenuItemTagUnicodeInsertZWNJMark();
82#endif
83#if PLATFORM(GTK) || PLATFORM(EFL)
84    String contextMenuItemTagSelectAll();
85#endif
86    String contextMenuItemTagNoGuessesFound();
87    String contextMenuItemTagIgnoreSpelling();
88    String contextMenuItemTagLearnSpelling();
89    String contextMenuItemTagSearchWeb();
90    String contextMenuItemTagLookUpInDictionary(const String& selectedString);
91    String contextMenuItemTagOpenLink();
92    String contextMenuItemTagIgnoreGrammar();
93    String contextMenuItemTagSpellingMenu();
94    String contextMenuItemTagShowSpellingPanel(bool show);
95    String contextMenuItemTagCheckSpelling();
96    String contextMenuItemTagCheckSpellingWhileTyping();
97    String contextMenuItemTagCheckGrammarWithSpelling();
98    String contextMenuItemTagFontMenu();
99    String contextMenuItemTagBold();
100    String contextMenuItemTagItalic();
101    String contextMenuItemTagUnderline();
102    String contextMenuItemTagOutline();
103    String contextMenuItemTagWritingDirectionMenu();
104    String contextMenuItemTagTextDirectionMenu();
105    String contextMenuItemTagDefaultDirection();
106    String contextMenuItemTagLeftToRight();
107    String contextMenuItemTagRightToLeft();
108#if PLATFORM(COCOA)
109    String contextMenuItemTagSearchInSpotlight();
110    String contextMenuItemTagShowFonts();
111    String contextMenuItemTagStyles();
112    String contextMenuItemTagShowColors();
113    String contextMenuItemTagSpeechMenu();
114    String contextMenuItemTagStartSpeaking();
115    String contextMenuItemTagStopSpeaking();
116    String contextMenuItemTagCorrectSpellingAutomatically();
117    String contextMenuItemTagSubstitutionsMenu();
118    String contextMenuItemTagShowSubstitutions(bool show);
119    String contextMenuItemTagSmartCopyPaste();
120    String contextMenuItemTagSmartQuotes();
121    String contextMenuItemTagSmartDashes();
122    String contextMenuItemTagSmartLinks();
123    String contextMenuItemTagTextReplacement();
124    String contextMenuItemTagTransformationsMenu();
125    String contextMenuItemTagMakeUpperCase();
126    String contextMenuItemTagMakeLowerCase();
127    String contextMenuItemTagCapitalize();
128    String contextMenuItemTagChangeBack(const String& replacedString);
129#endif
130    String contextMenuItemTagOpenVideoInNewWindow();
131    String contextMenuItemTagOpenAudioInNewWindow();
132    String contextMenuItemTagDownloadVideoToDisk();
133    String contextMenuItemTagDownloadAudioToDisk();
134    String contextMenuItemTagCopyVideoLinkToClipboard();
135    String contextMenuItemTagCopyAudioLinkToClipboard();
136    String contextMenuItemTagToggleMediaControls();
137    String contextMenuItemTagShowMediaControls();
138    String contextMenuItemTagHideMediaControls();
139    String contextMenuItemTagToggleMediaLoop();
140    String contextMenuItemTagEnterVideoFullscreen();
141    String contextMenuItemTagExitVideoFullscreen();
142    String contextMenuItemTagMediaPlay();
143    String contextMenuItemTagMediaPause();
144    String contextMenuItemTagMediaMute();
145    String contextMenuItemTagInspectElement();
146#endif // ENABLE(CONTEXT_MENUS)
147
148#if !PLATFORM(IOS)
149    String searchMenuNoRecentSearchesText();
150    String searchMenuRecentSearchesText();
151    String searchMenuClearRecentSearchesText();
152
153    String AXWebAreaText();
154    String AXLinkText();
155    String AXListMarkerText();
156    String AXImageMapText();
157    String AXHeadingText();
158    String AXDefinitionText();
159    String AXDescriptionListText();
160    String AXDescriptionListTermText();
161    String AXDescriptionListDetailText();
162    String AXFooterRoleDescriptionText();
163    String AXFileUploadButtonText();
164    String AXSearchFieldCancelButtonText();
165
166    String AXButtonActionVerb();
167    String AXRadioButtonActionVerb();
168    String AXTextFieldActionVerb();
169    String AXCheckedCheckBoxActionVerb();
170    String AXUncheckedCheckBoxActionVerb();
171    String AXMenuListActionVerb();
172    String AXMenuListPopupActionVerb();
173    String AXLinkActionVerb();
174    String AXListItemActionVerb();
175#endif
176
177#if ENABLE(INPUT_TYPE_WEEK)
178    // weekFormatInLDML() returns week and year format in LDML, Unicode
179    // technical standard 35, Locale Data Markup Language, e.g. "'Week' ww, yyyy"
180    String weekFormatInLDML();
181#endif
182#if PLATFORM(COCOA)
183    String AXARIAContentGroupText(const String& ariaType);
184    String AXHorizontalRuleDescriptionText();
185#endif
186
187    String missingPluginText();
188    String crashedPluginText();
189    String blockedPluginByContentSecurityPolicyText();
190    String insecurePluginVersionText();
191
192    String multipleFileUploadText(unsigned numberOfFiles);
193    String unknownFileSizeText();
194
195#if PLATFORM(WIN)
196    String uploadFileText();
197    String allFilesText();
198#endif
199
200#if PLATFORM(COCOA)
201    String builtInPDFPluginName();
202    String pdfDocumentTypeDescription();
203    String postScriptDocumentTypeDescription();
204    String keygenMenuItem512();
205    String keygenMenuItem1024();
206    String keygenMenuItem2048();
207    String keygenKeychainItemName(const String& host);
208#endif
209
210#if PLATFORM(IOS)
211    String htmlSelectMultipleItems(size_t num);
212    String fileButtonChooseMediaFileLabel();
213    String fileButtonChooseMultipleMediaFilesLabel();
214    String fileButtonNoMediaFileSelectedLabel();
215    String fileButtonNoMediaFilesSelectedLabel();
216#endif
217
218    String imageTitle(const String& filename, const IntSize& size);
219
220    String mediaElementLoadingStateText();
221    String mediaElementLiveBroadcastStateText();
222    String localizedMediaControlElementString(const String&);
223    String localizedMediaControlElementHelpText(const String&);
224    String localizedMediaTimeDescription(float);
225
226    String validationMessageValueMissingText();
227    String validationMessageValueMissingForCheckboxText();
228    String validationMessageValueMissingForFileText();
229    String validationMessageValueMissingForMultipleFileText();
230    String validationMessageValueMissingForRadioText();
231    String validationMessageValueMissingForSelectText();
232    String validationMessageTypeMismatchText();
233    String validationMessageTypeMismatchForEmailText();
234    String validationMessageTypeMismatchForMultipleEmailText();
235    String validationMessageTypeMismatchForURLText();
236    String validationMessagePatternMismatchText();
237    String validationMessageTooLongText(int valueLength, int maxLength);
238    String validationMessageRangeUnderflowText(const String& minimum);
239    String validationMessageRangeOverflowText(const String& maximum);
240    String validationMessageStepMismatchText(const String& base, const String& step);
241    String validationMessageBadInputForNumberText();
242#if USE(SOUP)
243    String unacceptableTLSCertificate();
244#endif
245
246    String clickToExitFullScreenText();
247
248#if ENABLE(VIDEO_TRACK)
249    String textTrackSubtitlesText();
250    String textTrackOffMenuItemText();
251    String textTrackAutomaticMenuItemText();
252    String textTrackNoLabelText();
253#if PLATFORM(COCOA) || PLATFORM(WIN)
254    String textTrackCountryAndLanguageMenuItemText(const String& title, const String& country, const String& language);
255    String textTrackLanguageMenuItemText(const String& title, const String& language);
256    String closedCaptionTrackMenuItemText(const String&);
257    String sdhTrackMenuItemText(const String&);
258    String easyReaderTrackMenuItemText(const String&);
259#endif
260#endif
261
262    String snapshottedPlugInLabelTitle();
263    String snapshottedPlugInLabelSubtitle();
264
265    String useBlockedPlugInContextMenuTitle();
266
267#if ENABLE(SUBTLE_CRYPTO)
268    String webCryptoMasterKeyKeychainLabel(const String& localizedApplicationName);
269    String webCryptoMasterKeyKeychainComment();
270#endif
271
272#define WEB_UI_STRING(string, description) WebCore::localizedString(string)
273#define WEB_UI_STRING_KEY(string, key, description) WebCore::localizedString(key)
274
275    String localizedString(const char* key);
276
277} // namespace WebCore
278
279#endif // LocalizedStrings_h
280