1 /*
2 * Copyright 2009, The Android Open Source Project
3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
4 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
5 * Copyright (C) 2007 Holger Hans Peter Freyther
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 *
17 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
18 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
21 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
25 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30 #include "config.h"
31 #include "LocalizedStrings.h"
32
33 #include "NotImplemented.h"
34 #include "PlatformBridge.h"
35 #include "PlatformString.h"
36
37 namespace WebCore {
38
39 // The following two strings are used for File Upload form control, ie
40 // <input type="file">. The first is the text that appears on the button
41 // that when pressed, the user can browse for and select a file. The
42 // second string is rendered on the screen when no file has been selected.
fileButtonChooseFileLabel()43 String fileButtonChooseFileLabel()
44 {
45 return *(PlatformBridge::globalLocalizedName(
46 PlatformBridge::FileUploadLabel));
47 }
48
fileButtonNoFileSelectedLabel()49 String fileButtonNoFileSelectedLabel()
50 {
51 return *(PlatformBridge::globalLocalizedName(
52 PlatformBridge::FileUploadNoFileChosenLabel));
53 }
54
contextMenuItemTagInspectElement()55 String contextMenuItemTagInspectElement()
56 {
57 return String("Inspect Element");
58 }
59
unknownFileSizeText()60 String unknownFileSizeText()
61 {
62 return String("Unknown");
63 }
64
contextMenuItemTagOpenLinkInNewWindow()65 String contextMenuItemTagOpenLinkInNewWindow()
66 {
67 notImplemented();
68 return String();
69 }
70
contextMenuItemTagDownloadLinkToDisk()71 String contextMenuItemTagDownloadLinkToDisk()
72 {
73 notImplemented();
74 return String();
75 }
76
contextMenuItemTagCopyLinkToClipboard()77 String contextMenuItemTagCopyLinkToClipboard()
78 {
79 notImplemented();
80 return String();
81 }
82
contextMenuItemTagOpenImageInNewWindow()83 String contextMenuItemTagOpenImageInNewWindow()
84 {
85 notImplemented();
86 return String();
87 }
88
contextMenuItemTagDownloadImageToDisk()89 String contextMenuItemTagDownloadImageToDisk()
90 {
91 notImplemented();
92 return String();
93 }
94
contextMenuItemTagCopyImageToClipboard()95 String contextMenuItemTagCopyImageToClipboard()
96 {
97 notImplemented();
98 return String();
99 }
100
contextMenuItemTagOpenVideoInNewWindow()101 String contextMenuItemTagOpenVideoInNewWindow()
102 {
103 notImplemented();
104 return String();
105 }
106
contextMenuItemTagOpenAudioInNewWindow()107 String contextMenuItemTagOpenAudioInNewWindow()
108 {
109 notImplemented();
110 return String();
111 }
112
contextMenuItemTagCopyVideoLinkToClipboard()113 String contextMenuItemTagCopyVideoLinkToClipboard()
114 {
115 notImplemented();
116 return String();
117 }
118
contextMenuItemTagCopyAudioLinkToClipboard()119 String contextMenuItemTagCopyAudioLinkToClipboard()
120 {
121 notImplemented();
122 return String();
123 }
124
contextMenuItemTagToggleMediaControls()125 String contextMenuItemTagToggleMediaControls()
126 {
127 notImplemented();
128 return String();
129 }
130
contextMenuItemTagToggleMediaLoop()131 String contextMenuItemTagToggleMediaLoop()
132 {
133 notImplemented();
134 return String();
135 }
136
contextMenuItemTagEnterVideoFullscreen()137 String contextMenuItemTagEnterVideoFullscreen()
138 {
139 notImplemented();
140 return String();
141 }
142
contextMenuItemTagMediaPlay()143 String contextMenuItemTagMediaPlay()
144 {
145 notImplemented();
146 return String();
147 }
148
contextMenuItemTagMediaPause()149 String contextMenuItemTagMediaPause()
150 {
151 notImplemented();
152 return String();
153 }
154
contextMenuItemTagMediaMute()155 String contextMenuItemTagMediaMute()
156 {
157 notImplemented();
158 return String();
159 }
160
contextMenuItemTagOpenFrameInNewWindow()161 String contextMenuItemTagOpenFrameInNewWindow()
162 {
163 notImplemented();
164 return String();
165 }
166
contextMenuItemTagCopy()167 String contextMenuItemTagCopy()
168 {
169 notImplemented();
170 return String();
171 }
172
contextMenuItemTagGoBack()173 String contextMenuItemTagGoBack()
174 {
175 notImplemented();
176 return String();
177 }
178
contextMenuItemTagGoForward()179 String contextMenuItemTagGoForward()
180 {
181 notImplemented();
182 return String();
183 }
184
contextMenuItemTagStop()185 String contextMenuItemTagStop()
186 {
187 notImplemented();
188 return String();
189 }
190
contextMenuItemTagReload()191 String contextMenuItemTagReload()
192 {
193 notImplemented();
194 return String();
195 }
196
contextMenuItemTagCut()197 String contextMenuItemTagCut()
198 {
199 notImplemented();
200 return String();
201 }
202
contextMenuItemTagPaste()203 String contextMenuItemTagPaste()
204 {
205 notImplemented();
206 return String();
207 }
208
contextMenuItemTagNoGuessesFound()209 String contextMenuItemTagNoGuessesFound()
210 {
211 notImplemented();
212 return String();
213 }
214
contextMenuItemTagIgnoreSpelling()215 String contextMenuItemTagIgnoreSpelling()
216 {
217 notImplemented();
218 return String();
219 }
220
contextMenuItemTagLearnSpelling()221 String contextMenuItemTagLearnSpelling()
222 {
223 notImplemented();
224 return String();
225 }
226
contextMenuItemTagSearchWeb()227 String contextMenuItemTagSearchWeb()
228 {
229 notImplemented();
230 return String();
231 }
232
contextMenuItemTagLookUpInDictionary(const String &)233 String contextMenuItemTagLookUpInDictionary(const String&)
234 {
235 notImplemented();
236 return String();
237 }
238
contextMenuItemTagOpenLink()239 String contextMenuItemTagOpenLink()
240 {
241 notImplemented();
242 return String();
243 }
244
contextMenuItemTagIgnoreGrammar()245 String contextMenuItemTagIgnoreGrammar()
246 {
247 notImplemented();
248 return String();
249 }
250
contextMenuItemTagSpellingMenu()251 String contextMenuItemTagSpellingMenu()
252 {
253 notImplemented();
254 return String();
255 }
256
contextMenuItemTagShowSpellingPanel(bool show)257 String contextMenuItemTagShowSpellingPanel(bool show)
258 {
259 notImplemented();
260 return String();
261 }
262
contextMenuItemTagCheckSpelling()263 String contextMenuItemTagCheckSpelling()
264 {
265 notImplemented();
266 return String();
267 }
268
contextMenuItemTagCheckSpellingWhileTyping()269 String contextMenuItemTagCheckSpellingWhileTyping()
270 {
271 notImplemented();
272 return String();
273 }
274
contextMenuItemTagCheckGrammarWithSpelling()275 String contextMenuItemTagCheckGrammarWithSpelling()
276 {
277 notImplemented();
278 return String();
279 }
280
contextMenuItemTagFontMenu()281 String contextMenuItemTagFontMenu()
282 {
283 notImplemented();
284 return String();
285 }
286
contextMenuItemTagBold()287 String contextMenuItemTagBold()
288 {
289 notImplemented();
290 return String();
291 }
292
contextMenuItemTagItalic()293 String contextMenuItemTagItalic()
294 {
295 notImplemented();
296 return String();
297 }
298
contextMenuItemTagUnderline()299 String contextMenuItemTagUnderline()
300 {
301 notImplemented();
302 return String();
303 }
304
contextMenuItemTagOutline()305 String contextMenuItemTagOutline()
306 {
307 notImplemented();
308 return String();
309 }
310
contextMenuItemTagWritingDirectionMenu()311 String contextMenuItemTagWritingDirectionMenu()
312 {
313 notImplemented();
314 return String();
315 }
316
contextMenuItemTagTextDirectionMenu()317 String contextMenuItemTagTextDirectionMenu()
318 {
319 notImplemented();
320 return String();
321 }
322
contextMenuItemTagDefaultDirection()323 String contextMenuItemTagDefaultDirection()
324 {
325 notImplemented();
326 return String();
327 }
328
contextMenuItemTagLeftToRight()329 String contextMenuItemTagLeftToRight()
330 {
331 notImplemented();
332 return String();
333 }
334
contextMenuItemTagRightToLeft()335 String contextMenuItemTagRightToLeft()
336 {
337 notImplemented();
338 return String();
339 }
340
imageTitle(const String & filename,const IntSize & size)341 String imageTitle(const String& filename, const IntSize& size)
342 {
343 notImplemented();
344 return String();
345 }
346
mediaElementLoadingStateText()347 String mediaElementLoadingStateText()
348 {
349 notImplemented();
350 return String();
351 }
352
mediaElementLiveBroadcastStateText()353 String mediaElementLiveBroadcastStateText()
354 {
355 notImplemented();
356 return String();
357 }
358
localizedMediaControlElementString(const String & controlName)359 String localizedMediaControlElementString(const String& controlName)
360 {
361 notImplemented();
362 return String();
363 }
364
localizedMediaControlElementHelpText(const String & controlName)365 String localizedMediaControlElementHelpText(const String& controlName)
366 {
367 notImplemented();
368 return String();
369 }
370
localizedMediaTimeDescription(const String & controlName)371 String localizedMediaTimeDescription(const String& controlName)
372 {
373 notImplemented();
374 return String();
375 }
376
searchableIndexIntroduction()377 String searchableIndexIntroduction()
378 {
379 notImplemented();
380 return String();
381 }
382
resetButtonDefaultLabel()383 String resetButtonDefaultLabel()
384 {
385 return *(PlatformBridge::globalLocalizedName(
386 PlatformBridge::ResetLabel));
387 }
388
defaultDetailsSummaryText()389 String defaultDetailsSummaryText()
390 {
391 return String("Details");
392 }
393
submitButtonDefaultLabel()394 String submitButtonDefaultLabel()
395 {
396 return *(PlatformBridge::globalLocalizedName(
397 PlatformBridge::SubmitLabel));
398 }
399
inputElementAltText()400 String inputElementAltText()
401 {
402 notImplemented();
403 return String();
404 }
405
validationMessageValueMissingText()406 String validationMessageValueMissingText()
407 {
408 notImplemented();
409 return String();
410 }
411
validationMessageValueMissingForCheckboxText()412 String validationMessageValueMissingForCheckboxText()
413 {
414 notImplemented();
415 return validationMessageValueMissingText();
416 }
417
validationMessageValueMissingForFileText()418 String validationMessageValueMissingForFileText()
419 {
420 notImplemented();
421 return validationMessageValueMissingText();
422 }
423
validationMessageValueMissingForMultipleFileText()424 String validationMessageValueMissingForMultipleFileText()
425 {
426 notImplemented();
427 return validationMessageValueMissingText();
428 }
429
validationMessageValueMissingForRadioText()430 String validationMessageValueMissingForRadioText()
431 {
432 notImplemented();
433 return validationMessageValueMissingText();
434 }
435
validationMessageValueMissingForSelectText()436 String validationMessageValueMissingForSelectText()
437 {
438 notImplemented();
439 return validationMessageValueMissingText();
440 }
441
validationMessageTypeMismatchText()442 String validationMessageTypeMismatchText()
443 {
444 notImplemented();
445 return String();
446 }
447
validationMessageTypeMismatchForEmailText()448 String validationMessageTypeMismatchForEmailText()
449 {
450 notImplemented();
451 return validationMessageTypeMismatchText();
452 }
453
validationMessageTypeMismatchForMultipleEmailText()454 String validationMessageTypeMismatchForMultipleEmailText()
455 {
456 notImplemented();
457 return validationMessageTypeMismatchText();
458 }
459
validationMessageTypeMismatchForURLText()460 String validationMessageTypeMismatchForURLText()
461 {
462 notImplemented();
463 return validationMessageTypeMismatchText();
464 }
465
validationMessagePatternMismatchText()466 String validationMessagePatternMismatchText()
467 {
468 notImplemented();
469 return String();
470 }
471
validationMessageTooLongText(int,int)472 String validationMessageTooLongText(int, int)
473 {
474 notImplemented();
475 return String();
476 }
477
validationMessageRangeUnderflowText(const String &)478 String validationMessageRangeUnderflowText(const String&)
479 {
480 notImplemented();
481 return String();
482 }
483
validationMessageRangeOverflowText(const String &)484 String validationMessageRangeOverflowText(const String&)
485 {
486 notImplemented();
487 return String();
488 }
489
validationMessageStepMismatchText(const String &,const String &)490 String validationMessageStepMismatchText(const String&, const String&)
491 {
492 notImplemented();
493 return String();
494 }
495
missingPluginText()496 String missingPluginText()
497 {
498 return String("Missing Plug-in");
499 }
500
crashedPluginText()501 String crashedPluginText()
502 {
503 return String("Plug-in Failure");
504 }
505
506 } // namespace WebCore
507