2 * Copyright (C) 2003, 2006, 2009, 2011 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 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.
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 String contextMenuItemTagOpenLinkInNewWindow();
52 String contextMenuItemTagDownloadLinkToDisk();
53 String contextMenuItemTagCopyLinkToClipboard();
54 #if ENABLE(TIZEN_COPY_IMAGE_LOCATION)
55 String contextMenuItemTagCopyImageLocationToClipboard();
57 String contextMenuItemTagOpenImageInNewWindow();
58 String contextMenuItemTagDownloadImageToDisk();
59 String contextMenuItemTagCopyImageToClipboard();
60 #if PLATFORM(QT) || PLATFORM(GTK)
61 String contextMenuItemTagCopyImageUrlToClipboard();
63 String contextMenuItemTagOpenFrameInNewWindow();
64 String contextMenuItemTagCopy();
65 String contextMenuItemTagGoBack();
66 String contextMenuItemTagGoForward();
67 String contextMenuItemTagStop();
68 String contextMenuItemTagReload();
69 String contextMenuItemTagCut();
70 String contextMenuItemTagPaste();
72 String contextMenuItemTagDelete();
73 String contextMenuItemTagInputMethods();
74 String contextMenuItemTagUnicode();
76 #if PLATFORM(GTK) || PLATFORM(QT)
77 String contextMenuItemTagSelectAll();
79 #if ENABLE(TIZEN_CONTEXT_MENU_SELECT)
80 String contextMenuItemTagSelectAll();
81 String contextMenuItemTagSelectWord();
83 String contextMenuItemTagNoGuessesFound();
84 String contextMenuItemTagIgnoreSpelling();
85 String contextMenuItemTagLearnSpelling();
86 String contextMenuItemTagSearchWeb();
87 String contextMenuItemTagLookUpInDictionary(const String& selectedString);
88 String contextMenuItemTagOpenLink();
89 String contextMenuItemTagIgnoreGrammar();
90 String contextMenuItemTagSpellingMenu();
91 String contextMenuItemTagShowSpellingPanel(bool show);
92 String contextMenuItemTagCheckSpelling();
93 String contextMenuItemTagCheckSpellingWhileTyping();
94 String contextMenuItemTagCheckGrammarWithSpelling();
95 String contextMenuItemTagFontMenu();
96 String contextMenuItemTagBold();
97 String contextMenuItemTagItalic();
98 String contextMenuItemTagUnderline();
99 String contextMenuItemTagOutline();
100 String contextMenuItemTagWritingDirectionMenu();
101 String contextMenuItemTagTextDirectionMenu();
102 String contextMenuItemTagDefaultDirection();
103 String contextMenuItemTagLeftToRight();
104 String contextMenuItemTagRightToLeft();
106 String contextMenuItemTagSearchInSpotlight();
107 String contextMenuItemTagShowFonts();
108 String contextMenuItemTagStyles();
109 String contextMenuItemTagShowColors();
110 String contextMenuItemTagSpeechMenu();
111 String contextMenuItemTagStartSpeaking();
112 String contextMenuItemTagStopSpeaking();
113 String contextMenuItemTagCorrectSpellingAutomatically();
114 String contextMenuItemTagSubstitutionsMenu();
115 String contextMenuItemTagShowSubstitutions(bool show);
116 String contextMenuItemTagSmartCopyPaste();
117 String contextMenuItemTagSmartQuotes();
118 String contextMenuItemTagSmartDashes();
119 String contextMenuItemTagSmartLinks();
120 String contextMenuItemTagTextReplacement();
121 String contextMenuItemTagTransformationsMenu();
122 String contextMenuItemTagMakeUpperCase();
123 String contextMenuItemTagMakeLowerCase();
124 String contextMenuItemTagCapitalize();
125 String contextMenuItemTagChangeBack(const String& replacedString);
127 String contextMenuItemTagOpenVideoInNewWindow();
128 String contextMenuItemTagOpenAudioInNewWindow();
129 String contextMenuItemTagCopyVideoLinkToClipboard();
130 String contextMenuItemTagCopyAudioLinkToClipboard();
131 String contextMenuItemTagToggleMediaControls();
132 String contextMenuItemTagToggleMediaLoop();
133 String contextMenuItemTagEnterVideoFullscreen();
134 String contextMenuItemTagMediaPlay();
135 String contextMenuItemTagMediaPause();
136 String contextMenuItemTagMediaMute();
137 String contextMenuItemTagInspectElement();
138 #endif // ENABLE(CONTEXT_MENUS)
140 String searchMenuNoRecentSearchesText();
141 String searchMenuRecentSearchesText();
142 String searchMenuClearRecentSearchesText();
144 String AXWebAreaText();
146 String AXListMarkerText();
147 String AXImageMapText();
148 String AXHeadingText();
149 String AXDefinitionListTermText();
150 String AXDefinitionListDefinitionText();
153 String AXARIAContentGroupText(const String& ariaType);
156 String AXButtonActionVerb();
157 String AXRadioButtonActionVerb();
158 String AXTextFieldActionVerb();
159 String AXCheckedCheckBoxActionVerb();
160 String AXUncheckedCheckBoxActionVerb();
161 String AXMenuListActionVerb();
162 String AXMenuListPopupActionVerb();
163 String AXLinkActionVerb();
165 String missingPluginText();
166 String crashedPluginText();
167 String multipleFileUploadText(unsigned numberOfFiles);
168 String unknownFileSizeText();
171 String uploadFileText();
172 String allFilesText();
176 String builtInPDFPluginName();
177 String pdfDocumentTypeDescription();
178 String keygenMenuItem512();
179 String keygenMenuItem1024();
180 String keygenMenuItem2048();
181 String keygenKeychainItemName(const String& host);
184 String imageTitle(const String& filename, const IntSize& size);
186 String mediaElementLoadingStateText();
187 String mediaElementLiveBroadcastStateText();
188 String localizedMediaControlElementString(const String&);
189 String localizedMediaControlElementHelpText(const String&);
190 String localizedMediaTimeDescription(float);
192 String validationMessageValueMissingText();
193 String validationMessageValueMissingForCheckboxText();
194 String validationMessageValueMissingForFileText();
195 String validationMessageValueMissingForMultipleFileText();
196 String validationMessageValueMissingForRadioText();
197 String validationMessageValueMissingForSelectText();
198 String validationMessageTypeMismatchText();
199 String validationMessageTypeMismatchForEmailText();
200 String validationMessageTypeMismatchForMultipleEmailText();
201 String validationMessageTypeMismatchForURLText();
202 String validationMessagePatternMismatchText();
203 String validationMessageTooLongText(int valueLength, int maxLength);
204 String validationMessageRangeUnderflowText(const String& minimum);
205 String validationMessageRangeOverflowText(const String& maximum);
206 String validationMessageStepMismatchText(const String& base, const String& step);
207 #if ENABLE(TIZEN_SAVE_IMAGE)
208 String contextMenuItemTagSendImageToMessage();
209 String contextMenuItemTagSendImageToEmail();
213 #define WEB_UI_STRING(string, description) WebCore::localizedString(string)
214 #define WEB_UI_STRING_KEY(string, key, description) WebCore::localizedString(key)
216 String localizedString(const char* key);
218 } // namespace WebCore
220 #endif // LocalizedStrings_h