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