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 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 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 contextMenuItemTagDownloadVideoToDisk()
133 return String::fromUTF8("Download Video");
136 String contextMenuItemTagDownloadAudioToDisk()
138 return String::fromUTF8("Download Audio");
141 String contextMenuItemTagCopyVideoLinkToClipboard()
143 return String::fromUTF8("Copy Video Link Location");
146 String contextMenuItemTagCopyAudioLinkToClipboard()
148 return String::fromUTF8("Copy Audio Link Location");
151 String contextMenuItemTagToggleMediaControls()
153 return String::fromUTF8("Toggle Media Controls");
156 String contextMenuItemTagShowMediaControls()
158 return String::fromUTF8("Show Media Controls");
161 String contextMenuitemTagHideMediaControls()
163 return String::fromUTF8("Hide Media Controls");
166 String contextMenuItemTagToggleMediaLoop()
168 return String::fromUTF8("Toggle Media Loop Playback");
171 String contextMenuItemTagEnterVideoFullscreen()
173 return String::fromUTF8("Switch Video to Fullscreen");
176 String contextMenuItemTagMediaPlay()
178 return String::fromUTF8("Play");
181 String contextMenuItemTagMediaPause()
183 return String::fromUTF8("Pause");
186 String contextMenuItemTagMediaMute()
188 return String::fromUTF8("Mute");
191 String contextMenuItemTagOpenFrameInNewWindow()
193 return String::fromUTF8("Open Frame in New Window");
196 String contextMenuItemTagCopy()
198 return String::fromUTF8("Copy");
201 String contextMenuItemTagDelete()
203 return String::fromUTF8("Delete");
206 String contextMenuItemTagSelectAll()
208 return String::fromUTF8("Select All");
211 String contextMenuItemTagUnicode()
213 return String::fromUTF8("Insert Unicode Control Character");
216 String contextMenuItemTagInputMethods()
218 return String::fromUTF8("Input Methods");
221 String contextMenuItemTagGoBack()
223 return String::fromUTF8("Go Back");
226 String contextMenuItemTagGoForward()
228 return String::fromUTF8("Go Forward");
231 String contextMenuItemTagStop()
233 return String::fromUTF8("Stop");
236 String contextMenuItemTagReload()
238 return String::fromUTF8("Reload");
241 String contextMenuItemTagCut()
243 return String::fromUTF8("Cut");
246 String contextMenuItemTagPaste()
248 return String::fromUTF8("Paste");
251 String contextMenuItemTagNoGuessesFound()
253 return String::fromUTF8("No Guesses Found");
256 String contextMenuItemTagIgnoreSpelling()
258 return String::fromUTF8("Ignore Spelling");
261 String contextMenuItemTagLearnSpelling()
263 return String::fromUTF8("Learn Spelling");
266 String contextMenuItemTagSearchWeb()
268 return String::fromUTF8("Search the Web");
271 String contextMenuItemTagLookUpInDictionary(const String&)
273 return String::fromUTF8("Look Up in Dictionary");
276 String contextMenuItemTagOpenLink()
278 return String::fromUTF8("Open Link");
281 String contextMenuItemTagIgnoreGrammar()
283 return String::fromUTF8("Ignore Grammar");
286 String contextMenuItemTagSpellingMenu()
288 return String::fromUTF8("Spelling and Grammar");
291 String contextMenuItemTagShowSpellingPanel(bool show)
293 return String::fromUTF8(show ? "Show Spelling and Grammar" : "Hide Spelling and Grammar");
296 String contextMenuItemTagCheckSpelling()
298 return String::fromUTF8("Check Document Now");
301 String contextMenuItemTagCheckSpellingWhileTyping()
303 return String::fromUTF8("Check Spelling While Typing");
306 String contextMenuItemTagCheckGrammarWithSpelling()
308 return String::fromUTF8("Check Grammar With Spelling");
311 String contextMenuItemTagFontMenu()
313 return String::fromUTF8("Font");
316 String contextMenuItemTagBold()
318 return String::fromUTF8("Bold");
321 String contextMenuItemTagItalic()
323 return String::fromUTF8("Italic");
326 String contextMenuItemTagUnderline()
328 return String::fromUTF8("Underline");
331 String contextMenuItemTagOutline()
333 return String::fromUTF8("Outline");
336 String contextMenuItemTagInspectElement()
338 return String::fromUTF8("Inspect Element");
341 String contextMenuItemTagRightToLeft()
343 return String::fromUTF8("Right to Left");
346 String contextMenuItemTagLeftToRight()
348 return String::fromUTF8("Left to Right");
351 String contextMenuItemTagWritingDirectionMenu()
353 return String::fromUTF8("Writing Direction");
356 String contextMenuItemTagTextDirectionMenu()
358 return String::fromUTF8("Text Direction");
361 String contextMenuItemTagDefaultDirection()
363 return String::fromUTF8("Default");
366 String searchMenuNoRecentSearchesText()
368 return String::fromUTF8("No recent searches");
371 String searchMenuRecentSearchesText()
373 return String::fromUTF8("Recent searches");
376 String searchMenuClearRecentSearchesText()
378 return String::fromUTF8("Clear recent searches");
381 String AXDefinitionText()
383 return String::fromUTF8("definition");
386 String AXDescriptionListText()
388 return String::fromUTF8("description list");
391 String AXDescriptionListTermText()
393 return String::fromUTF8("term");
396 String AXDescriptionListDetailText()
398 return String::fromUTF8("description");
401 String AXFooterRoleDescriptionText()
403 return String::fromUTF8("footer");
406 String AXSearchFieldCancelButtonText()
408 return String::fromUTF8("cancel");
411 String AXButtonActionVerb()
413 return String::fromUTF8("press");
416 String AXRadioButtonActionVerb()
418 return String::fromUTF8("select");
421 String AXTextFieldActionVerb()
423 return String::fromUTF8("activate");
426 String AXCheckedCheckBoxActionVerb()
428 return String::fromUTF8("uncheck");
431 String AXUncheckedCheckBoxActionVerb()
433 return String::fromUTF8("check");
436 String AXLinkActionVerb()
438 return String::fromUTF8("jump");
441 String unknownFileSizeText()
443 return String::fromUTF8("Unknown");
446 String imageTitle(const String&, const IntSize&)
452 String AXListItemActionVerb()
459 String localizedMediaControlElementString(const String& name)
461 if (name == "AudioElement")
462 return String::fromUTF8("audio playback");
463 if (name == "VideoElement")
464 return String::fromUTF8("video playback");
465 if (name == "MuteButton")
466 return String::fromUTF8("mute");
467 if (name == "UnMuteButton")
468 return String::fromUTF8("unmute");
469 if (name == "PlayButton")
470 return String::fromUTF8("play");
471 if (name == "PauseButton")
472 return String::fromUTF8("pause");
473 if (name == "Slider")
474 return String::fromUTF8("movie time");
475 if (name == "SliderThumb")
476 return String::fromUTF8("timeline slider thumb");
477 if (name == "RewindButton")
478 return String::fromUTF8("back 30 seconds");
479 if (name == "ReturnToRealtimeButton")
480 return String::fromUTF8("return to realtime");
481 if (name == "CurrentTimeDisplay")
482 return String::fromUTF8("elapsed time");
483 if (name == "TimeRemainingDisplay")
484 return String::fromUTF8("remaining time");
485 if (name == "StatusDisplay")
486 return String::fromUTF8("status");
487 if (name == "EnterFullscreenButton")
488 return String::fromUTF8("enter fullscreen");
489 if (name == "ExitFullscreenButton")
490 return String::fromUTF8("exit fullscreen");
491 if (name == "SeekForwardButton")
492 return String::fromUTF8("fast forward");
493 if (name == "SeekBackButton")
494 return String::fromUTF8("fast reverse");
495 if (name == "ShowClosedCaptionsButton")
496 return String::fromUTF8("show closed captions");
497 if (name == "HideClosedCaptionsButton")
498 return String::fromUTF8("hide closed captions");
499 if (name == "ControlsPanel")
500 return String::fromUTF8("media controls");
502 ASSERT_NOT_REACHED();
506 String localizedMediaControlElementHelpText(const String&)
512 String localizedMediaTimeDescription(float)
519 String mediaElementLoadingStateText()
521 return String::fromUTF8("Loading...");
524 String mediaElementLiveBroadcastStateText()
526 return String::fromUTF8("Live Broadcast");
529 String validationMessagePatternMismatchText()
531 return ASCIILiteral("Please match the requested format:");
534 String validationMessageRangeOverflowText(const String& maximum)
536 return ASCIILiteral("Value must be less than or equal to ") + maximum;
539 String validationMessageRangeUnderflowText(const String& minimum)
541 return ASCIILiteral("Value must be greater than or equal to ") + minimum;
544 String validationMessageStepMismatchText(const String&, const String&)
546 return String::fromUTF8("step mismatch");
549 String validationMessageTooLongText(int, int)
551 return String::fromUTF8("too long");
554 String validationMessageTypeMismatchText()
556 return String::fromUTF8("type mismatch");
559 String validationMessageTypeMismatchForEmailText()
561 return ASCIILiteral("Please enter an email address");
564 String validationMessageTypeMismatchForMultipleEmailText()
566 return ASCIILiteral("Please enter an email address");
569 String validationMessageTypeMismatchForURLText()
571 return ASCIILiteral("Please enter a URL");
574 String validationMessageValueMissingText()
576 return ASCIILiteral("Please fill out this field.");
579 String validationMessageValueMissingForCheckboxText()
581 return ASCIILiteral("Please check this box if you want to proceed.");
584 String validationMessageValueMissingForFileText()
586 return ASCIILiteral("Please select a file.");
589 String validationMessageValueMissingForMultipleFileText()
591 return ASCIILiteral("Please select one or more files.");
594 String validationMessageValueMissingForRadioText()
596 return ASCIILiteral("Please select one of these options.");
599 String validationMessageValueMissingForSelectText()
601 return ASCIILiteral("Please select an item in the list.");
604 String validationMessageBadInputForNumberText()
606 return ASCIILiteral("Please enter a number.");
609 String missingPluginText()
611 return String::fromUTF8("missing plugin");
614 String AXMenuListPopupActionVerb()
619 String AXMenuListActionVerb()
624 String multipleFileUploadText(unsigned numberOfFiles)
626 return String::number(numberOfFiles) + String::fromUTF8(" files");
629 String crashedPluginText()
631 return String::fromUTF8("plugin crashed");
634 String blockedPluginByContentSecurityPolicyText()
640 String insecurePluginVersionText()
646 String inactivePluginText()
652 String unacceptableTLSCertificate()
654 return String::fromUTF8("Unacceptable TLS certificate");
657 String localizedString(const char* key)
659 return String::fromUTF8(key, strlen(key));
662 #if ENABLE(VIDEO_TRACK)
663 String textTrackClosedCaptionsText()
665 return String::fromUTF8("Closed Captions");
668 String textTrackSubtitlesText()
670 return String::fromUTF8("Subtitles");
673 String textTrackOffMenuItemText()
675 return String::fromUTF8("Off");
678 String textTrackAutomaticMenuItemText()
680 return String::fromUTF8("Auto");
683 String textTrackNoLabelText()
685 return String::fromUTF8("No label");
688 String audioTrackNoLabelText()
690 return String::fromUTF8("No label");
694 String snapshottedPlugInLabelTitle()
696 return String("Snapshotted Plug-In");
699 String snapshottedPlugInLabelSubtitle()
701 return String("Click to restart");