2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
4 * Copyright (C) 2007 Holger Hans Peter Freyther
5 * Copyright (C) 2008 Christian Dywan <christian@imendio.com>
6 * Copyright (C) 2008 Nuanti Ltd.
7 * Copyright (C) 2008 INdT Instituto Nokia de Tecnologia
8 * Copyright (C) 2009-2010 ProFUSION embedded systems
9 * Copyright (C) 2009-2010 Samsung Electronics
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
20 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
21 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
28 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 #include "LocalizedStrings.h"
36 #include "NotImplemented.h"
37 #include <wtf/text/WTFString.h>
41 String submitButtonDefaultLabel()
43 return String::fromUTF8("Submit");
46 String inputElementAltText()
48 return String::fromUTF8("Submit");
51 String resetButtonDefaultLabel()
53 return String::fromUTF8("Reset");
56 String defaultDetailsSummaryText()
58 return String::fromUTF8("Details");
61 String searchableIndexIntroduction()
63 return String::fromUTF8("This is a searchable index. Enter search keywords: ");
66 String fileButtonChooseFileLabel()
68 return String::fromUTF8("Choose File");
71 String fileButtonChooseMultipleFilesLabel()
73 return String::fromUTF8("Choose Files");
76 String fileButtonNoFileSelectedLabel()
78 return String::fromUTF8("No file selected");
81 String fileButtonNoFilesSelectedLabel()
83 return String::fromUTF8("No files selected");
86 String contextMenuItemTagOpenLinkInNewWindow()
88 return String::fromUTF8("Open Link in New Window");
91 String contextMenuItemTagDownloadLinkToDisk()
93 return String::fromUTF8("Download Linked File");
96 String contextMenuItemTagCopyLinkToClipboard()
98 return String::fromUTF8("Copy Link Location");
101 String contextMenuItemTagOpenImageInNewWindow()
103 return String::fromUTF8("Open Image in New Window");
106 String contextMenuItemTagDownloadImageToDisk()
108 return String::fromUTF8("Save Image As");
111 String contextMenuItemTagCopyImageToClipboard()
113 return String::fromUTF8("Copy Image");
116 String contextMenuItemTagCopyImageUrlToClipboard()
118 return String::fromUTF8("Copy Image Address");
121 String contextMenuItemTagOpenVideoInNewWindow()
123 return String::fromUTF8("Open Video in New Window");
126 String contextMenuItemTagOpenAudioInNewWindow()
128 return String::fromUTF8("Open Audio in New Window");
131 String contextMenuItemTagCopyVideoLinkToClipboard()
133 return String::fromUTF8("Copy Video Link Location");
136 String contextMenuItemTagCopyAudioLinkToClipboard()
138 return String::fromUTF8("Copy Audio Link Location");
141 String contextMenuItemTagToggleMediaControls()
143 return String::fromUTF8("Toggle Media Controls");
146 String contextMenuItemTagToggleMediaLoop()
148 return String::fromUTF8("Toggle Media Loop Playback");
151 String contextMenuItemTagEnterVideoFullscreen()
153 return String::fromUTF8("Switch Video to Fullscreen");
156 String contextMenuItemTagMediaPlay()
158 return String::fromUTF8("Play");
161 String contextMenuItemTagMediaPause()
163 return String::fromUTF8("Pause");
166 String contextMenuItemTagMediaMute()
168 return String::fromUTF8("Mute");
171 String contextMenuItemTagOpenFrameInNewWindow()
173 return String::fromUTF8("Open Frame in New Window");
176 String contextMenuItemTagCopy()
178 return String::fromUTF8("Copy");
181 String contextMenuItemTagDelete()
183 return String::fromUTF8("Delete");
186 String contextMenuItemTagSelectAll()
188 return String::fromUTF8("Select All");
191 String contextMenuItemTagUnicode()
193 return String::fromUTF8("Insert Unicode Control Character");
196 String contextMenuItemTagInputMethods()
198 return String::fromUTF8("Input Methods");
201 String contextMenuItemTagGoBack()
203 return String::fromUTF8("Go Back");
206 String contextMenuItemTagGoForward()
208 return String::fromUTF8("Go Forward");
211 String contextMenuItemTagStop()
213 return String::fromUTF8("Stop");
216 String contextMenuItemTagReload()
218 return String::fromUTF8("Reload");
221 String contextMenuItemTagCut()
223 return String::fromUTF8("Cut");
226 String contextMenuItemTagPaste()
228 return String::fromUTF8("Paste");
231 String contextMenuItemTagNoGuessesFound()
233 return String::fromUTF8("No Guesses Found");
236 String contextMenuItemTagIgnoreSpelling()
238 return String::fromUTF8("Ignore Spelling");
241 String contextMenuItemTagLearnSpelling()
243 return String::fromUTF8("Learn Spelling");
246 String contextMenuItemTagSearchWeb()
248 return String::fromUTF8("Search the Web");
251 String contextMenuItemTagLookUpInDictionary(const String&)
253 return String::fromUTF8("Look Up in Dictionary");
256 String contextMenuItemTagOpenLink()
258 return String::fromUTF8("Open Link");
261 String contextMenuItemTagIgnoreGrammar()
263 return String::fromUTF8("Ignore Grammar");
266 String contextMenuItemTagSpellingMenu()
268 return String::fromUTF8("Spelling and Grammar");
271 String contextMenuItemTagShowSpellingPanel(bool show)
273 return String::fromUTF8(show ? "Show Spelling and Grammar" : "Hide Spelling and Grammar");
276 String contextMenuItemTagCheckSpelling()
278 return String::fromUTF8("Check Document Now");
281 String contextMenuItemTagCheckSpellingWhileTyping()
283 return String::fromUTF8("Check Spelling While Typing");
286 String contextMenuItemTagCheckGrammarWithSpelling()
288 return String::fromUTF8("Check Grammar With Spelling");
291 String contextMenuItemTagFontMenu()
293 return String::fromUTF8("Font");
296 String contextMenuItemTagBold()
298 return String::fromUTF8("Bold");
301 String contextMenuItemTagItalic()
303 return String::fromUTF8("Italic");
306 String contextMenuItemTagUnderline()
308 return String::fromUTF8("Underline");
311 String contextMenuItemTagOutline()
313 return String::fromUTF8("Outline");
316 String contextMenuItemTagInspectElement()
318 return String::fromUTF8("Inspect Element");
321 String contextMenuItemTagRightToLeft()
323 return String::fromUTF8("Right to Left");
326 String contextMenuItemTagLeftToRight()
328 return String::fromUTF8("Left to Right");
331 String contextMenuItemTagWritingDirectionMenu()
333 return String::fromUTF8("Writing Direction");
336 String contextMenuItemTagTextDirectionMenu()
338 return String::fromUTF8("Text Direction");
341 String contextMenuItemTagDefaultDirection()
343 return String::fromUTF8("Default");
346 String searchMenuNoRecentSearchesText()
348 return String::fromUTF8("No recent searches");
351 String searchMenuRecentSearchesText()
353 return String::fromUTF8("Recent searches");
356 String searchMenuClearRecentSearchesText()
358 return String::fromUTF8("Clear recent searches");
361 String AXDefinitionText()
363 return String::fromUTF8("definition");
366 String AXDescriptionListText()
368 return String::fromUTF8("description list");
371 String AXDescriptionListTermText()
373 return String::fromUTF8("term");
376 String AXDescriptionListDetailText()
378 return String::fromUTF8("description");
381 String AXFooterRoleDescriptionText()
383 return String::fromUTF8("footer");
386 String AXButtonActionVerb()
388 return String::fromUTF8("press");
391 String AXRadioButtonActionVerb()
393 return String::fromUTF8("select");
396 String AXTextFieldActionVerb()
398 return String::fromUTF8("activate");
401 String AXCheckedCheckBoxActionVerb()
403 return String::fromUTF8("uncheck");
406 String AXUncheckedCheckBoxActionVerb()
408 return String::fromUTF8("check");
411 String AXLinkActionVerb()
413 return String::fromUTF8("jump");
416 String unknownFileSizeText()
418 return String::fromUTF8("Unknown");
421 String imageTitle(const String&, const IntSize&)
428 String localizedMediaControlElementString(const String&)
434 String localizedMediaControlElementHelpText(const String&)
440 String localizedMediaTimeDescription(float)
447 String mediaElementLoadingStateText()
449 return String::fromUTF8("Loading...");
452 String mediaElementLiveBroadcastStateText()
454 return String::fromUTF8("Live Broadcast");
457 String validationMessagePatternMismatchText()
459 return String::fromUTF8("pattern mismatch");
462 String validationMessageRangeOverflowText(const String& maximum)
464 return ASCIILiteral("Value must be less than or equal to ") + maximum;
467 String validationMessageRangeUnderflowText(const String& minimum)
469 return ASCIILiteral("Value must be greater than or equal to ") + minimum;
472 String validationMessageStepMismatchText(const String&, const String&)
474 return String::fromUTF8("step mismatch");
477 String validationMessageTooLongText(int, int)
479 return String::fromUTF8("too long");
482 String validationMessageTypeMismatchText()
484 return String::fromUTF8("type mismatch");
487 String validationMessageTypeMismatchForEmailText()
489 return ASCIILiteral("Please enter an email address");
492 String validationMessageTypeMismatchForMultipleEmailText()
494 return ASCIILiteral("Please enter an email address");
497 String validationMessageTypeMismatchForURLText()
499 return ASCIILiteral("Please enter a URL");
502 String validationMessageValueMissingText()
504 return String::fromUTF8("value missing");
507 String validationMessageValueMissingForCheckboxText()
510 return validationMessageValueMissingText();
513 String validationMessageValueMissingForFileText()
516 return validationMessageValueMissingText();
519 String validationMessageValueMissingForMultipleFileText()
522 return validationMessageValueMissingText();
525 String validationMessageValueMissingForRadioText()
528 return validationMessageValueMissingText();
531 String validationMessageValueMissingForSelectText()
534 return validationMessageValueMissingText();
537 String validationMessageBadInputForNumberText()
540 return validationMessageTypeMismatchText();
543 String missingPluginText()
545 return String::fromUTF8("missing plugin");
548 String AXMenuListPopupActionVerb()
553 String AXMenuListActionVerb()
558 String multipleFileUploadText(unsigned numberOfFiles)
560 return String::number(numberOfFiles) + String::fromUTF8(" files");
563 String crashedPluginText()
565 return String::fromUTF8("plugin crashed");
568 String blockedPluginByContentSecurityPolicyText()
574 String insecurePluginVersionText()
580 String inactivePluginText()
586 String unacceptableTLSCertificate()
588 return String::fromUTF8("Unacceptable TLS certificate");
591 String localizedString(const char* key)
593 return String::fromUTF8(key, strlen(key));
596 #if ENABLE(VIDEO_TRACK)
597 String textTrackClosedCaptionsText()
599 return String::fromUTF8("Closed Captions");
602 String textTrackSubtitlesText()
604 return String::fromUTF8("Subtitles");
607 String textTrackOffText()
609 return String::fromUTF8("Off");
612 String textTrackNoLabelText()
614 return String::fromUTF8("No label");
618 String snapshottedPlugInLabelTitle()
620 return String("Snapshotted Plug-In");
623 String snapshottedPlugInLabelSubtitle()
625 return String("Click to restart");