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