2 * Copyright (C) 2003, 2006, 2009, 2011, 2012, 2013 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Igalia S.L
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
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.
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.
27 #ifndef LocalizedStrings_h
28 #define LocalizedStrings_h
30 #include <wtf/Forward.h>
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();
47 String copyImageUnknownFileLabel();
50 #if ENABLE(CONTEXT_MENUS)
51 WEBCORE_EXPORT 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();
60 String contextMenuItemTagOpenFrameInNewWindow();
61 String contextMenuItemTagCopy();
62 String contextMenuItemTagGoBack();
63 String contextMenuItemTagGoForward();
64 String contextMenuItemTagStop();
65 String contextMenuItemTagReload();
66 String contextMenuItemTagCut();
67 String contextMenuItemTagPaste();
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();
83 #if PLATFORM(GTK) || PLATFORM(EFL)
84 String contextMenuItemTagSelectAll();
86 String contextMenuItemTagNoGuessesFound();
87 String contextMenuItemTagIgnoreSpelling();
88 String contextMenuItemTagLearnSpelling();
89 String contextMenuItemTagSearchWeb();
90 String contextMenuItemTagLookUpInDictionary(const String& selectedString);
91 WEBCORE_EXPORT String contextMenuItemTagOpenLink();
92 WEBCORE_EXPORT String contextMenuItemTagIgnoreGrammar();
93 WEBCORE_EXPORT String contextMenuItemTagSpellingMenu();
94 WEBCORE_EXPORT String contextMenuItemTagShowSpellingPanel(bool show);
95 WEBCORE_EXPORT String contextMenuItemTagCheckSpelling();
96 WEBCORE_EXPORT String contextMenuItemTagCheckSpellingWhileTyping();
97 WEBCORE_EXPORT String contextMenuItemTagCheckGrammarWithSpelling();
98 WEBCORE_EXPORT String contextMenuItemTagFontMenu();
99 WEBCORE_EXPORT String contextMenuItemTagBold();
100 WEBCORE_EXPORT String contextMenuItemTagItalic();
101 WEBCORE_EXPORT String contextMenuItemTagUnderline();
102 WEBCORE_EXPORT String contextMenuItemTagOutline();
103 WEBCORE_EXPORT String contextMenuItemTagWritingDirectionMenu();
104 String contextMenuItemTagTextDirectionMenu();
105 WEBCORE_EXPORT String contextMenuItemTagDefaultDirection();
106 WEBCORE_EXPORT String contextMenuItemTagLeftToRight();
107 WEBCORE_EXPORT String contextMenuItemTagRightToLeft();
109 String contextMenuItemTagSearchInSpotlight();
110 WEBCORE_EXPORT String contextMenuItemTagShowFonts();
111 WEBCORE_EXPORT String contextMenuItemTagStyles();
112 WEBCORE_EXPORT String contextMenuItemTagShowColors();
113 WEBCORE_EXPORT String contextMenuItemTagSpeechMenu();
114 WEBCORE_EXPORT String contextMenuItemTagStartSpeaking();
115 WEBCORE_EXPORT String contextMenuItemTagStopSpeaking();
116 WEBCORE_EXPORT String contextMenuItemTagCorrectSpellingAutomatically();
117 WEBCORE_EXPORT String contextMenuItemTagSubstitutionsMenu();
118 WEBCORE_EXPORT String contextMenuItemTagShowSubstitutions(bool show);
119 WEBCORE_EXPORT String contextMenuItemTagSmartCopyPaste();
120 WEBCORE_EXPORT String contextMenuItemTagSmartQuotes();
121 WEBCORE_EXPORT String contextMenuItemTagSmartDashes();
122 WEBCORE_EXPORT String contextMenuItemTagSmartLinks();
123 WEBCORE_EXPORT String contextMenuItemTagTextReplacement();
124 WEBCORE_EXPORT String contextMenuItemTagTransformationsMenu();
125 WEBCORE_EXPORT String contextMenuItemTagMakeUpperCase();
126 WEBCORE_EXPORT String contextMenuItemTagMakeLowerCase();
127 WEBCORE_EXPORT String contextMenuItemTagCapitalize();
128 String contextMenuItemTagChangeBack(const String& replacedString);
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 WEBCORE_EXPORT String contextMenuItemTagInspectElement();
146 #endif // ENABLE(CONTEXT_MENUS)
149 String searchMenuNoRecentSearchesText();
150 String searchMenuRecentSearchesText();
151 String searchMenuClearRecentSearchesText();
153 String AXWebAreaText();
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();
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();
177 String AXAutoFillButtonText();
179 #if ENABLE(INPUT_TYPE_WEEK)
180 // weekFormatInLDML() returns week and year format in LDML, Unicode
181 // technical standard 35, Locale Data Markup Language, e.g. "'Week' ww, yyyy"
182 String weekFormatInLDML();
185 String AXARIAContentGroupText(const String& ariaType);
186 String AXHorizontalRuleDescriptionText();
189 String missingPluginText();
190 String crashedPluginText();
191 String blockedPluginByContentSecurityPolicyText();
192 String insecurePluginVersionText();
194 String multipleFileUploadText(unsigned numberOfFiles);
195 String unknownFileSizeText();
198 String uploadFileText();
199 String allFilesText();
203 WEBCORE_EXPORT String builtInPDFPluginName();
204 WEBCORE_EXPORT String pdfDocumentTypeDescription();
205 WEBCORE_EXPORT String postScriptDocumentTypeDescription();
206 String keygenMenuItem512();
207 String keygenMenuItem1024();
208 String keygenMenuItem2048();
209 String keygenKeychainItemName(const String& host);
213 String htmlSelectMultipleItems(size_t num);
214 String fileButtonChooseMediaFileLabel();
215 String fileButtonChooseMultipleMediaFilesLabel();
216 String fileButtonNoMediaFileSelectedLabel();
217 String fileButtonNoMediaFilesSelectedLabel();
220 String imageTitle(const String& filename, const IntSize& size);
222 String mediaElementLoadingStateText();
223 String mediaElementLiveBroadcastStateText();
224 String localizedMediaControlElementString(const String&);
225 String localizedMediaControlElementHelpText(const String&);
226 String localizedMediaTimeDescription(float);
228 String validationMessageValueMissingText();
229 String validationMessageValueMissingForCheckboxText();
230 String validationMessageValueMissingForFileText();
231 String validationMessageValueMissingForMultipleFileText();
232 String validationMessageValueMissingForRadioText();
233 String validationMessageValueMissingForSelectText();
234 String validationMessageTypeMismatchText();
235 String validationMessageTypeMismatchForEmailText();
236 String validationMessageTypeMismatchForMultipleEmailText();
237 String validationMessageTypeMismatchForURLText();
238 String validationMessagePatternMismatchText();
239 String validationMessageTooLongText(int valueLength, int maxLength);
240 String validationMessageRangeUnderflowText(const String& minimum);
241 String validationMessageRangeOverflowText(const String& maximum);
242 String validationMessageStepMismatchText(const String& base, const String& step);
243 String validationMessageBadInputForNumberText();
245 String unacceptableTLSCertificate();
248 String clickToExitFullScreenText();
250 #if ENABLE(VIDEO_TRACK)
251 String textTrackSubtitlesText();
252 String textTrackOffMenuItemText();
253 String textTrackAutomaticMenuItemText();
254 String textTrackNoLabelText();
255 String audioTrackNoLabelText();
256 #if PLATFORM(COCOA) || PLATFORM(WIN)
257 String textTrackCountryAndLanguageMenuItemText(const String& title, const String& country, const String& language);
258 String textTrackLanguageMenuItemText(const String& title, const String& language);
259 String closedCaptionTrackMenuItemText(const String&);
260 String sdhTrackMenuItemText(const String&);
261 String easyReaderTrackMenuItemText(const String&);
265 String snapshottedPlugInLabelTitle();
266 String snapshottedPlugInLabelSubtitle();
268 WEBCORE_EXPORT String useBlockedPlugInContextMenuTitle();
270 #if ENABLE(SUBTLE_CRYPTO)
271 String webCryptoMasterKeyKeychainLabel(const String& localizedApplicationName);
272 String webCryptoMasterKeyKeychainComment();
275 #define WEB_UI_STRING(string, description) WebCore::localizedString(string)
276 #define WEB_UI_STRING_KEY(string, key, description) WebCore::localizedString(key)
278 WEBCORE_EXPORT String localizedString(const char* key);
280 } // namespace WebCore
282 #endif // LocalizedStrings_h