/* * Copyright (C) 2011-2021 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ #import "config.h" #import "LocalizedStrings.h" #import "NotImplemented.h" #import #import #import #import #import namespace WebCore { String copyImageUnknownFileLabel() { return WEB_UI_STRING("unknown", "Unknown filename"); } #if ENABLE(APP_HIGHLIGHTS) String contextMenuItemTagAddHighlightToCurrentQuickNote() { return WEB_UI_NSSTRING(@"Add to Quick Note", "Add to Quick Note context menu item."); } String contextMenuItemTagAddHighlightToNewQuickNote() { return WEB_UI_NSSTRING(@"New Quick Note", "New Quick Note context menu item."); } #endif #if ENABLE(CONTEXT_MENUS) String contextMenuItemTagSearchInSpotlight() { return WEB_UI_STRING("Search in Spotlight", "Search in Spotlight context menu item"); } String contextMenuItemTagSearchWeb() { auto searchProviderName = PAL::defaultSearchProviderDisplayName(); return WEB_UI_FORMAT_CFSTRING("Search with %@", "Search with search provider context menu item with provider name inserted", searchProviderName.get()); } String contextMenuItemTagShowFonts() { return WEB_UI_STRING("Show Fonts", "Show fonts context menu item"); } String contextMenuItemTagStyles() { return WEB_UI_STRING("Styles…", "Styles context menu item"); } String contextMenuItemTagShowColors() { return WEB_UI_STRING("Show Colors", "Show colors context menu item"); } String contextMenuItemTagSpeechMenu() { return WEB_UI_STRING("Speech", "Speech context sub-menu item"); } String contextMenuItemTagStartSpeaking() { return WEB_UI_STRING("Start Speaking", "Start speaking context menu item"); } String contextMenuItemTagStopSpeaking() { return WEB_UI_STRING("Stop Speaking", "Stop speaking context menu item"); } String contextMenuItemTagCorrectSpellingAutomatically() { return WEB_UI_STRING("Correct Spelling Automatically", "Correct Spelling Automatically context menu item"); } String contextMenuItemTagSubstitutionsMenu() { return WEB_UI_STRING("Substitutions", "Substitutions context sub-menu item"); } String contextMenuItemTagShowSubstitutions(bool show) { if (show) return WEB_UI_STRING("Show Substitutions", "menu item title"); return WEB_UI_STRING("Hide Substitutions", "menu item title"); } String contextMenuItemTagSmartCopyPaste() { return WEB_UI_STRING("Smart Copy/Paste", "Smart Copy/Paste context menu item"); } String contextMenuItemTagSmartQuotes() { return WEB_UI_STRING("Smart Quotes", "Smart Quotes context menu item"); } String contextMenuItemTagSmartDashes() { return WEB_UI_STRING("Smart Dashes", "Smart Dashes context menu item"); } String contextMenuItemTagSmartLinks() { return WEB_UI_STRING("Smart Links", "Smart Links context menu item"); } String contextMenuItemTagTextReplacement() { return WEB_UI_STRING("Text Replacement", "Text Replacement context menu item"); } String contextMenuItemTagTransformationsMenu() { return WEB_UI_STRING("Transformations", "Transformations context sub-menu item"); } String contextMenuItemTagMakeUpperCase() { return WEB_UI_STRING("Make Upper Case", "Make Upper Case context menu item"); } String contextMenuItemTagMakeLowerCase() { return WEB_UI_STRING("Make Lower Case", "Make Lower Case context menu item"); } String contextMenuItemTagCapitalize() { return WEB_UI_STRING("Capitalize", "Capitalize context menu item"); } String contextMenuItemTagChangeBack(const String& replacedString) { notImplemented(); return replacedString; } #if PLATFORM(MAC) && ENABLE(VIDEO_PRESENTATION_MODE) String contextMenuItemTagEnterVideoEnhancedFullscreen() { return WEB_UI_STRING("Enter Picture in Picture", "menu item"); } String contextMenuItemTagExitVideoEnhancedFullscreen() { return WEB_UI_STRING("Exit Picture in Picture", "menu item"); } #endif #endif // ENABLE(CONTEXT_MENUS) String AXMeterGaugeRegionOptimumText() { return WEB_UI_STRING("optimal value", "The optimum value description for a meter element."); } String AXMeterGaugeRegionSuboptimalText() { return WEB_UI_STRING("suboptimal value", "The suboptimal value description for a meter element."); } String AXMeterGaugeRegionLessGoodText() { return WEB_UI_STRING("critical value", "The less good value description for a meter element."); } String builtInPDFPluginName() { // Also exposed to DOM. return WEB_UI_STRING("WebKit built-in PDF", "Pseudo plug-in name, visible in the Installed Plug-ins page in Safari."); } String pdfDocumentTypeDescription() { // Also exposed to DOM. return WEB_UI_STRING("Portable Document Format", "Description of the primary type supported by the PDF pseudo plug-in. Visible in the Installed Plug-ins page in Safari."); } String postScriptDocumentTypeDescription() { // Also exposed to DOM. return WEB_UI_STRING("PostScript", "Description of the PostScript type supported by the PDF pseudo plug-in. Visible in the Installed Plug-ins page in Safari."); } String keygenMenuItem2048() { return WEB_UI_STRING("2048 (High Grade)", "Menu item title for KEYGEN pop-up menu"); } String keygenKeychainItemName(const String& host) { return WEB_UI_FORMAT_CFSTRING("Key from %@", "Name of keychain key generated by the KEYGEN tag", host.createCFString().get()); } #if PLATFORM(IOS_FAMILY) String htmlSelectMultipleItems(size_t count) { switch (count) { case 0: return WEB_UI_STRING("0 Items", "Present the element when a single