1/*
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
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
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.
19 *
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.
31 */
32
33#include "config.h"
34#include "LocalizedStrings.h"
35
36#include "NotImplemented.h"
37#include "PlatformString.h"
38
39namespace WebCore {
40
41String submitButtonDefaultLabel()
42{
43    return String::fromUTF8("Submit");
44}
45
46String inputElementAltText()
47{
48    return String::fromUTF8("Submit");
49}
50
51String resetButtonDefaultLabel()
52{
53    return String::fromUTF8("Reset");
54}
55
56String defaultDetailsSummaryText()
57{
58    return String::fromUTF8("Details");
59}
60
61String searchableIndexIntroduction()
62{
63    return String::fromUTF8("_Searchable Index");
64}
65
66String fileButtonChooseFileLabel()
67{
68    return String::fromUTF8("Choose File");
69}
70
71String fileButtonNoFileSelectedLabel()
72{
73    return String::fromUTF8("No file selected");
74}
75
76String contextMenuItemTagOpenLinkInNewWindow()
77{
78    return String::fromUTF8("Open Link in New Window");
79}
80
81String contextMenuItemTagDownloadLinkToDisk()
82{
83    return String::fromUTF8("Download Linked File");
84}
85
86String contextMenuItemTagCopyLinkToClipboard()
87{
88    return String::fromUTF8("Copy Link Location");
89}
90
91String contextMenuItemTagOpenImageInNewWindow()
92{
93    return String::fromUTF8("Open Image in New Window");
94}
95
96String contextMenuItemTagDownloadImageToDisk()
97{
98    return String::fromUTF8("Save Image As");
99}
100
101String contextMenuItemTagCopyImageToClipboard()
102{
103    return String::fromUTF8("Copy Image");
104}
105
106String contextMenuItemTagOpenVideoInNewWindow()
107{
108    return String::fromUTF8("Open Video in New Window");
109}
110
111String contextMenuItemTagOpenAudioInNewWindow()
112{
113    return String::fromUTF8("Open Audio in New Window");
114}
115
116String contextMenuItemTagCopyVideoLinkToClipboard()
117{
118    return String::fromUTF8("Copy Video Link Location");
119}
120
121String contextMenuItemTagCopyAudioLinkToClipboard()
122{
123    return String::fromUTF8("Copy Audio Link Location");
124}
125
126String contextMenuItemTagToggleMediaControls()
127{
128    return String::fromUTF8("Toggle Media Controls");
129}
130
131String contextMenuItemTagToggleMediaLoop()
132{
133    return String::fromUTF8("Toggle Media Loop Playback");
134}
135
136String contextMenuItemTagEnterVideoFullscreen()
137{
138    return String::fromUTF8("Switch Video to Fullscreen");
139}
140
141String contextMenuItemTagMediaPlay()
142{
143    return String::fromUTF8("Play");
144}
145
146String contextMenuItemTagMediaPause()
147{
148    return String::fromUTF8("Pause");
149}
150
151String contextMenuItemTagMediaMute()
152{
153    return String::fromUTF8("Mute");
154}
155
156String contextMenuItemTagOpenFrameInNewWindow()
157{
158    return String::fromUTF8("Open Frame in New Window");
159}
160
161String contextMenuItemTagCopy()
162{
163    static String stockLabel = String::fromUTF8("Copy");
164    return stockLabel;
165}
166
167String contextMenuItemTagDelete()
168{
169    static String stockLabel = String::fromUTF8("Delete");
170    return stockLabel;
171}
172
173String contextMenuItemTagSelectAll()
174{
175    static String stockLabel = String::fromUTF8("Select All");
176    return stockLabel;
177}
178
179String contextMenuItemTagUnicode()
180{
181    return String::fromUTF8("Insert Unicode Control Character");
182}
183
184String contextMenuItemTagInputMethods()
185{
186    return String::fromUTF8("Input Methods");
187}
188
189String contextMenuItemTagGoBack()
190{
191    static String stockLabel = String::fromUTF8("Go Back");
192    return stockLabel;
193}
194
195String contextMenuItemTagGoForward()
196{
197    static String stockLabel = String::fromUTF8("Go Forward");
198    return stockLabel;
199}
200
201String contextMenuItemTagStop()
202{
203    static String stockLabel = String::fromUTF8("Stop");
204    return stockLabel;
205}
206
207String contextMenuItemTagReload()
208{
209    return String::fromUTF8("Reload");
210}
211
212String contextMenuItemTagCut()
213{
214    static String stockLabel = String::fromUTF8("Cut");
215    return stockLabel;
216}
217
218String contextMenuItemTagPaste()
219{
220    static String stockLabel = String::fromUTF8("Paste");
221    return stockLabel;
222}
223
224String contextMenuItemTagNoGuessesFound()
225{
226    return String::fromUTF8("No Guesses Found");
227}
228
229String contextMenuItemTagIgnoreSpelling()
230{
231    return String::fromUTF8("Ignore Spelling");
232}
233
234String contextMenuItemTagLearnSpelling()
235{
236    return String::fromUTF8("Learn Spelling");
237}
238
239String contextMenuItemTagSearchWeb()
240{
241    return String::fromUTF8("Search the Web");
242}
243
244String contextMenuItemTagLookUpInDictionary(const String&)
245{
246    return String::fromUTF8("Look Up in Dictionary");
247}
248
249String contextMenuItemTagOpenLink()
250{
251    return String::fromUTF8("Open Link");
252}
253
254String contextMenuItemTagIgnoreGrammar()
255{
256    return String::fromUTF8("Ignore Grammar");
257}
258
259String contextMenuItemTagSpellingMenu()
260{
261    return String::fromUTF8("Spelling and Grammar");
262}
263
264String contextMenuItemTagShowSpellingPanel(bool show)
265{
266    return String::fromUTF8(show ? "Show Spelling and Grammar" : "Hide Spelling and Grammar");
267}
268
269String contextMenuItemTagCheckSpelling()
270{
271    return String::fromUTF8("Check Document Now");
272}
273
274String contextMenuItemTagCheckSpellingWhileTyping()
275{
276    return String::fromUTF8("Check Spelling While _Typing");
277}
278
279String contextMenuItemTagCheckGrammarWithSpelling()
280{
281    return String::fromUTF8("Check Grammar With Spelling");
282}
283
284String contextMenuItemTagFontMenu()
285{
286    return String::fromUTF8("Font");
287}
288
289String contextMenuItemTagBold()
290{
291    static String stockLabel = String::fromUTF8("Bold");
292    return stockLabel;
293}
294
295String contextMenuItemTagItalic()
296{
297    static String stockLabel = String::fromUTF8("Italic");
298    return stockLabel;
299}
300
301String contextMenuItemTagUnderline()
302{
303    static String stockLabel = String::fromUTF8("Underline");
304    return stockLabel;
305}
306
307String contextMenuItemTagOutline()
308{
309    return String::fromUTF8("Outline");
310}
311
312String contextMenuItemTagInspectElement()
313{
314    return String::fromUTF8("Inspect Element");
315}
316
317String contextMenuItemTagRightToLeft()
318{
319    return String();
320}
321
322String contextMenuItemTagLeftToRight()
323{
324    return String();
325}
326
327String contextMenuItemTagWritingDirectionMenu()
328{
329    return String();
330}
331
332String contextMenuItemTagTextDirectionMenu()
333{
334    return String();
335}
336
337String contextMenuItemTagDefaultDirection()
338{
339    return String();
340}
341
342String searchMenuNoRecentSearchesText()
343{
344    return String::fromUTF8("No recent searches");
345}
346
347String searchMenuRecentSearchesText()
348{
349    return String::fromUTF8("Recent searches");
350}
351
352String searchMenuClearRecentSearchesText()
353{
354    return String::fromUTF8("Clear recent searches");
355}
356
357String AXDefinitionListTermText()
358{
359    return String::fromUTF8("term");
360}
361
362String AXDefinitionListDefinitionText()
363{
364    return String::fromUTF8("definition");
365}
366
367String AXButtonActionVerb()
368{
369    return String::fromUTF8("press");
370}
371
372String AXRadioButtonActionVerb()
373{
374    return String::fromUTF8("select");
375}
376
377String AXTextFieldActionVerb()
378{
379    return String::fromUTF8("activate");
380}
381
382String AXCheckedCheckBoxActionVerb()
383{
384    return String::fromUTF8("uncheck");
385}
386
387String AXUncheckedCheckBoxActionVerb()
388{
389    return String::fromUTF8("check");
390}
391
392String AXLinkActionVerb()
393{
394    return String::fromUTF8("jump");
395}
396
397String unknownFileSizeText()
398{
399    return String::fromUTF8("Unknown");
400}
401
402String imageTitle(const String& filename, const IntSize& size)
403{
404    notImplemented();
405    return String();
406}
407
408#if ENABLE(VIDEO)
409String localizedMediaControlElementString(const String& name)
410{
411    notImplemented();
412    return String();
413}
414
415String localizedMediaControlElementHelpText(const String& name)
416{
417    notImplemented();
418    return String();
419}
420
421String localizedMediaTimeDescription(float time)
422{
423    notImplemented();
424    return String();
425}
426#endif
427
428String mediaElementLoadingStateText()
429{
430    return String::fromUTF8("Loading...");
431}
432
433String mediaElementLiveBroadcastStateText()
434{
435    return String::fromUTF8("Live Broadcast");
436}
437
438String validationMessagePatternMismatchText()
439{
440    return String::fromUTF8("pattern mismatch");
441}
442
443String validationMessageRangeOverflowText(const String&)
444{
445    return String::fromUTF8("range overflow");
446}
447
448String validationMessageRangeUnderflowText(const String&)
449{
450    return String::fromUTF8("range underflow");
451}
452
453String validationMessageStepMismatchText(const String&, const String&)
454{
455    return String::fromUTF8("step mismatch");
456}
457
458String validationMessageTooLongText(int, int)
459{
460    return String::fromUTF8("too long");
461}
462
463String validationMessageTypeMismatchText()
464{
465    return String::fromUTF8("type mismatch");
466}
467
468String validationMessageTypeMismatchForEmailText()
469{
470    return String::fromUTF8("type mismatch");
471}
472
473String validationMessageTypeMismatchForMultipleEmailText()
474{
475    return String::fromUTF8("type mismatch");
476}
477
478String validationMessageTypeMismatchForURLText()
479{
480    return String::fromUTF8("type mismatch");
481}
482
483String validationMessageValueMissingText()
484{
485    return String::fromUTF8("value missing");
486}
487
488String validationMessageValueMissingForCheckboxText()
489{
490    notImplemented();
491    return validationMessageValueMissingText();
492}
493
494String validationMessageValueMissingForFileText()
495{
496    notImplemented();
497    return validationMessageValueMissingText();
498}
499
500String validationMessageValueMissingForMultipleFileText()
501{
502    notImplemented();
503    return validationMessageValueMissingText();
504}
505
506String validationMessageValueMissingForRadioText()
507{
508    notImplemented();
509    return validationMessageValueMissingText();
510}
511
512String validationMessageValueMissingForSelectText()
513{
514    notImplemented();
515    return validationMessageValueMissingText();
516}
517
518String missingPluginText()
519{
520    return String::fromUTF8("missing plugin");
521}
522
523String AXMenuListPopupActionVerb()
524{
525    return String();
526}
527
528String AXMenuListActionVerb()
529{
530    return String();
531}
532
533String multipleFileUploadText(unsigned numberOfFiles)
534{
535    return String::number(numberOfFiles) + String::fromUTF8(" files");
536}
537
538String crashedPluginText()
539{
540    return String::fromUTF8("plugin crashed");
541}
542
543}
544