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-2012 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 "PlatformString.h"
39 #if ENABLE(TIZEN_WEBKIT2_TEXT_TRANSLATION)
45 String submitButtonDefaultLabel()
47 return String::fromUTF8("Submit");
50 String inputElementAltText()
52 return String::fromUTF8("Submit");
55 String resetButtonDefaultLabel()
57 return String::fromUTF8("Reset");
60 String defaultDetailsSummaryText()
62 return String::fromUTF8("Details");
65 String searchableIndexIntroduction()
67 return String::fromUTF8("This is a searchable index. Enter search keywords: ");
70 String fileButtonChooseFileLabel()
72 return String::fromUTF8("Choose File");
75 String fileButtonChooseMultipleFilesLabel()
77 return String::fromUTF8("Choose Files");
80 String fileButtonNoFileSelectedLabel()
82 return String::fromUTF8("No file selected");
85 #if ENABLE(TIZEN_WEBKIT2_TEXT_TRANSLATION)
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(dgettext("WebKit","IDS_WEBVIEW_OPT_COPY_IMAGE"));
116 String contextMenuItemTagCopyImageUrlToClipboard()
118 return String::fromUTF8("Copy image address");
121 String contextMenuItemTagOpenFrameInNewWindow()
123 return String::fromUTF8("Open frame in new window");
126 String contextMenuItemTagCopy()
128 return String::fromUTF8(dgettext("WebKit","IDS_WEBVIEW_OPT_COPY"));
131 String contextMenuItemTagGoBack()
133 return String::fromUTF8("Go back");
136 String contextMenuItemTagGoForward()
138 return String::fromUTF8("Go forward");
141 String contextMenuItemTagStop()
143 return String::fromUTF8("Stop");
146 String contextMenuItemTagReload()
148 return String::fromUTF8("Reload");
151 String contextMenuItemTagCut()
153 return String::fromUTF8(dgettext("WebKit","IDS_WEBVIEW_OPT_CUT_ABB"));
156 String contextMenuItemTagPaste()
158 return String::fromUTF8(dgettext("WebKit","IDS_WEBVIEW_OPT_PASTE"));
161 #if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
162 String contextMenuItemTagClipboard()
164 return String::fromUTF8(dgettext("WebKit","IDS_WEBVIEW_OPT_CLIPBOARD"));
168 String contextMenuItemTagSelectAll()
170 return String::fromUTF8(dgettext("WebKit","IDS_WEBVIEW_OPT_SELECT_ALL_ABB"));
173 String contextMenuItemTagSelectWord()
175 return String::fromUTF8(dgettext("WebKit","IDS_WEBVIEW_OPT_SELECT_ABB"));
178 String contextMenuItemTagNoGuessesFound()
180 return String::fromUTF8("No guesses found");
183 String contextMenuItemTagIgnoreSpelling()
185 return String::fromUTF8("Ignore spelling");
188 String contextMenuItemTagLearnSpelling()
190 return String::fromUTF8("Learn spelling");
193 String contextMenuItemTagSearchWeb()
195 return String::fromUTF8("Search the Web");
198 String contextMenuItemTagLookUpInDictionary()
200 return String::fromUTF8("Look up in dictionary");
203 String contextMenuItemTagOpenLink()
205 return String::fromUTF8("Open link");
208 String contextMenuItemTagIgnoreGrammar()
210 return String::fromUTF8("Ignore grammar");
213 String contextMenuItemTagSpellingMenu()
215 return String::fromUTF8("Spelling and grammar");
218 String contextMenuItemTagShowSpellingPanel(bool show)
220 return String::fromUTF8(show ? "Show spelling and grammar" : "Hide spelling and grammar");
223 String contextMenuItemTagCheckSpelling()
225 return String::fromUTF8("Check document now");
228 String contextMenuItemTagCheckSpellingWhileTyping()
230 return String::fromUTF8("Check spelling while _Typing");
233 String contextMenuItemTagCheckGrammarWithSpelling()
235 return String::fromUTF8("Check grammar with spelling");
238 String contextMenuItemTagFontMenu()
240 return String::fromUTF8("Font");
243 String contextMenuItemTagBold()
245 return String::fromUTF8("Bold");
248 String contextMenuItemTagItalic()
250 return String::fromUTF8("Italic");
253 String contextMenuItemTagUnderline()
255 return String::fromUTF8("Underline");
258 String contextMenuItemTagOutline()
260 return String::fromUTF8("Outline");
263 String contextMenuItemTagWritingDirectionMenu()
268 String contextMenuItemTagTextDirectionMenu()
273 String contextMenuItemTagDefaultDirection()
278 String contextMenuItemTagLeftToRight()
283 String contextMenuItemTagRightToLeft()
288 String contextMenuItemTagOpenVideoInNewWindow()
290 return String::fromUTF8("Open video in new window");
293 String contextMenuItemTagOpenAudioInNewWindow()
295 return String::fromUTF8("Open audio in new window");
298 String contextMenuItemTagCopyVideoLinkToClipboard()
300 return String::fromUTF8("Copy video link location");
303 String contextMenuItemTagCopyAudioLinkToClipboard()
305 return String::fromUTF8("Copy audio link location");
308 String contextMenuItemTagToggleMediaControls()
310 return String::fromUTF8("Toggle media controls");
313 String contextMenuItemTagToggleMediaLoop()
315 return String::fromUTF8("Toggle media loop playback");
318 String contextMenuItemTagEnterVideoFullscreen()
320 return String::fromUTF8("Switch video to fullscreen");
323 String contextMenuItemTagMediaPlay()
325 return String::fromUTF8("Play");
328 String contextMenuItemTagMediaPause()
330 return String::fromUTF8("Pause");
333 String contextMenuItemTagMediaMute()
335 return String::fromUTF8("Mute");
338 String contextMenuItemTagInspectElement()
340 return String::fromUTF8("Inspect element");
343 String fileButtonNoFilesSelectedLabel()
348 #if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_TEXT_SELECTION_MODE)
349 String contextMenuItemTagTextSelectionMode()
351 return String::fromUTF8(dgettext("WebKit","IDS_WEBVIEW_OPT_SELECTION_MODE_ABB"));
355 #if ENABLE(TIZEN_DRAG_SUPPORT)
356 String contextMenuItemTagDrag()
358 static String stockLabel = String::fromUTF8("Drag");
363 #endif // #if ENABLE(TIZEN_WEBKIT2_TEXT_TRANSLATION)
365 String searchMenuNoRecentSearchesText()
367 return String::fromUTF8("No recent searches");
370 String searchMenuRecentSearchesText()
372 return String::fromUTF8("Recent searches");
375 String searchMenuClearRecentSearchesText()
377 return String::fromUTF8("Clear recent searches");
380 String AXDefinitionListTermText()
382 return String::fromUTF8("term");
385 String AXDefinitionListDefinitionText()
387 return String::fromUTF8("definition");
390 String AXFooterRoleDescriptionText()
392 return String::fromUTF8("footer");
395 String AXButtonActionVerb()
397 return String::fromUTF8("press");
400 String AXRadioButtonActionVerb()
402 return String::fromUTF8("select");
405 String AXTextFieldActionVerb()
407 return String::fromUTF8("activate");
410 String AXCheckedCheckBoxActionVerb()
412 return String::fromUTF8("uncheck");
415 String AXUncheckedCheckBoxActionVerb()
417 return String::fromUTF8("check");
420 String AXLinkActionVerb()
422 return String::fromUTF8("jump");
425 String unknownFileSizeText()
427 return String::fromUTF8("Unknown");
430 String imageTitle(const String& filename, const IntSize& size)
437 String localizedMediaControlElementString(const String& name)
443 String localizedMediaControlElementHelpText(const String& name)
449 String localizedMediaTimeDescription(float time)
456 String mediaElementLoadingStateText()
458 return String::fromUTF8("Loading...");
461 String mediaElementLiveBroadcastStateText()
463 return String::fromUTF8("Live Broadcast");
466 String validationMessagePatternMismatchText()
468 return String::fromUTF8("pattern mismatch");
471 String validationMessageRangeOverflowText(const String&)
473 return String::fromUTF8("range overflow");
476 String validationMessageRangeUnderflowText(const String&)
478 return String::fromUTF8("range underflow");
481 String validationMessageStepMismatchText(const String&, const String&)
483 return String::fromUTF8("step mismatch");
486 String validationMessageTooLongText(int, int)
488 return String::fromUTF8("too long");
491 String validationMessageTypeMismatchText()
493 return String::fromUTF8("type mismatch");
496 String validationMessageTypeMismatchForEmailText()
498 return String::fromUTF8("type mismatch");
501 String validationMessageTypeMismatchForMultipleEmailText()
503 return String::fromUTF8("type mismatch");
506 String validationMessageTypeMismatchForURLText()
508 return String::fromUTF8("type mismatch");
511 String validationMessageValueMissingText()
513 return String::fromUTF8("value missing");
516 String validationMessageValueMissingForCheckboxText()
519 return validationMessageValueMissingText();
522 String validationMessageValueMissingForFileText()
525 return validationMessageValueMissingText();
528 String validationMessageValueMissingForMultipleFileText()
531 return validationMessageValueMissingText();
534 String validationMessageValueMissingForRadioText()
537 return validationMessageValueMissingText();
540 String validationMessageValueMissingForSelectText()
543 return validationMessageValueMissingText();
546 String missingPluginText()
548 return String::fromUTF8("missing plugin");
551 String AXMenuListPopupActionVerb()
556 String AXMenuListActionVerb()
561 String multipleFileUploadText(unsigned numberOfFiles)
563 return String::number(numberOfFiles) + String::fromUTF8(" files");
566 String crashedPluginText()
568 return String::fromUTF8("plugin crashed");
571 String insecurePluginVersionText()
577 String localizedString(const char* key)
579 return String::fromUTF8(key, strlen(key));