platform/ContentType.cpp
platform/CrossThreadCopier.cpp
platform/DateComponents.cpp
- platform/DefaultLocalizationStrategy.cpp
platform/DragData.cpp
platform/DragImage.cpp
platform/FileChooser.cpp
+2012-02-20 Benjamin Poulain <benjamin@webkit.org>
+
+ Get rid of the LocalizationStrategy
+ https://bugs.webkit.org/show_bug.cgi?id=78324
+
+ Reviewed by Sam Weinig.
+
+ Remove LocalizationStrategy and unify the localization behind
+ LocalizedStrings.h and LocalizedStrings.cpp.
+
+ * CMakeLists.txt:
+ * GNUmakefile.list.am:
+ * Target.pri:
+ * WebCore.exp.in:
+ * WebCore.gypi:
+ * WebCore.order:
+ * WebCore.vcproj/WebCore.vcproj:
+ * WebCore.xcodeproj/project.pbxproj:
+ * platform/DefaultLocalizationStrategy.cpp: Removed.
+ * platform/DefaultLocalizationStrategy.h: Removed.
+ * platform/LocalizationStrategy.h: Removed.
+ * platform/LocalizedStrings.cpp:
+ * platform/LocalizedStrings.h:
+ (WebCore):
+ * platform/PlatformStrategies.cpp:
+ * platform/PlatformStrategies.h:
+ (WebCore):
+ (WebCore::PlatformStrategies::PlatformStrategies):
+ (PlatformStrategies):
+ * platform/qt/LocalizedStringsQt.cpp: Copied from Source/WebKit/qt/WebCoreSupport/PlatformStrategiesQt.cpp.
+
2012-02-20 Kentaro Hara <haraken@chromium.org>
Remove [TreatReturnedNullStringAsNull] from HTMLMediaElement.mediaGroup
Source/WebCore/platform/Cursor.h \
Source/WebCore/platform/DateComponents.cpp \
Source/WebCore/platform/DateComponents.h \
- Source/WebCore/platform/DefaultLocalizationStrategy.cpp \
- Source/WebCore/platform/DefaultLocalizationStrategy.h \
Source/WebCore/platform/DragData.cpp \
Source/WebCore/platform/DragData.h \
Source/WebCore/platform/DragImage.cpp \
platform/ContentType.cpp \
platform/CrossThreadCopier.cpp \
platform/DateComponents.cpp \
- platform/DefaultLocalizationStrategy.cpp \
platform/DragData.cpp \
platform/DragImage.cpp \
platform/FileChooser.cpp \
platform/UUID.cpp \
platform/Widget.cpp \
platform/PlatformStrategies.cpp \
- platform/LocalizedStrings.cpp \
plugins/IFrameShimSupport.cpp \
plugins/PluginDatabase.cpp \
plugins/PluginDebug.cpp \
platform/ContextMenu.h \
platform/CrossThreadCopier.h \
platform/DateComponents.h \
- platform/DefaultLocalizationStrategy.h \
platform/DragData.h \
platform/DragImage.h \
platform/FileChooser.h \
platform/qt/SoundQt.cpp \
platform/qt/LoggingQt.cpp \
platform/qt/LanguageQt.cpp \
+ platform/qt/LocalizedStringsQt.cpp \
platform/qt/TemporaryLinkStubsQt.cpp \
platform/text/qt/TextBoundariesQt.cpp \
platform/text/qt/TextBreakIteratorInternalICUQt.cpp \
__ZN7WebCore17cacheDOMStructureEPNS_17JSDOMGlobalObjectEPN3JSC9StructureEPKNS2_9ClassInfoE
__ZN7WebCore17openTemporaryFileERKN3WTF6StringERi
__ZN7WebCore18HTMLContentElement6createEPNS_8DocumentE
-__ZN7WebCore18PlatformStrategies26createLocalizationStrategyEv
__ZN7WebCore18PlatformPasteboard13bufferForTypeERKN3WTF6StringE
__ZN7WebCore18PlatformPasteboard13stringForTypeERKN3WTF6StringE
__ZN7WebCore18PlatformPasteboard19setPathnamesForTypeERKN3WTF6VectorINS1_6StringELm0EEERKS3_
__ZTVN7WebCore12ChromeClientE
__ZTVN7WebCore16IconDatabaseBaseE
__ZTVN7WebCore17FrameLoaderClientE
-__ZTVN7WebCore18PlatformStrategiesE
__ZTVN7WebCore25HistoryPropertyListWriterE
__ZTVN7WebCore28InspectorFrontendClientLocal8SettingsE
_filenameByFixingIllegalCharacters
'platform/CookiesStrategy.h',
'platform/Cursor.h',
'platform/DateComponents.h',
- 'platform/DefaultLocalizationStrategy.h',
'platform/DragData.h',
'platform/DragImage.h',
'platform/FileChooser.h',
'platform/LengthBox.h',
'platform/LengthSize.h',
'platform/LinkHash.h',
- 'platform/LocalizationStrategy.h',
'platform/LocalizedStrings.h',
'platform/Logging.h',
'platform/MemoryPressureHandler.h',
'platform/CrossThreadCopier.h',
'platform/Cursor.cpp',
'platform/DateComponents.cpp',
- 'platform/DefaultLocalizationStrategy.cpp',
'platform/DragData.cpp',
'platform/DragImage.cpp',
'platform/EventLoop.h',
'platform/Language.cpp',
'platform/Length.cpp',
'platform/LinkHash.cpp',
- 'platform/LocalizedStrings.cpp',
'platform/Logging.cpp',
'platform/MemoryPressureHandler.cpp',
'platform/MIMETypeRegistry.cpp',
-[AccessibilityObjectWrapper roleDescription]
__ZN7WebCore13AXHeadingTextEv
__ZN7WebCore21hasPlatformStrategiesEv
-__ZN7WebCore18PlatformStrategies26createLocalizationStrategyEv
-__ZN7WebCore27DefaultLocalizationStrategyC1Ev
-__ZN7WebCore27DefaultLocalizationStrategy13AXHeadingTextEv
__ZNK7WebCore25AccessibilityRenderObject4sizeEv
__ZNK7WebCore25AccessibilityRenderObject11elementRectEv
__ZNK7WebCore19AccessibilityObject13isRadioButtonEv
__ZNK7WebCore4KURL17lastPathComponentEv
__ZN7WebCore24decodeURLEscapeSequencesERKN3WTF6StringE
__ZN7WebCore10imageTitleERKN3WTF6StringERKNS_7IntSizeE
-__ZN7WebCore27DefaultLocalizationStrategy10imageTitleERKN3WTF6StringERKNS_7IntSizeE
__ZN7WebCoreL21formatLocalizedStringEN3WTF6StringEz
__ZN7WebCore8Document8setTitleERKN3WTF6StringE
__ZN7WebCore8Document4headEv
__ZN7WebCore16JSHTMLPreElementC1EPN3JSC9StructureEPNS_17JSDOMGlobalObjectEN3WTF10PassRefPtrINS_14HTMLPreElementEEE
__ZN7WebCore12cacheWrapperINS_14HTMLPreElementEEEvPNS_15DOMWrapperWorldEPT_PNS_12JSDOMWrapperE
__ZN7WebCore13AXWebAreaTextEv
-__ZN7WebCore27DefaultLocalizationStrategy13AXWebAreaTextEv
__ZN7WebCore10RenderView13absoluteQuadsERN3WTF6VectorINS_9FloatQuadELm0EEE
__ZN7WebCore25AccessibilityRenderObject16getDocumentLinksERN3WTF6VectorINS1_6RefPtrINS_19AccessibilityObjectEEELm0EEE
__ZN7WebCore8Document5linksEv
__ZNK7WebCore25AccessibilityRenderObject24estimatedLoadingProgressEv
__ZNK7WebCore15ProgressTracker17estimatedProgressEv
__ZN7WebCore10AXLinkTextEv
-__ZN7WebCore27DefaultLocalizationStrategy10AXLinkTextEv
__ZN7WebCore12RenderInline25culledInlineAbsoluteRectsEPKS0_RN3WTF6VectorINS_7IntRectELm0EEERKNS_7IntSizeE
__ZNK7WebCore25AccessibilityRenderObject19internalLinkElementEv
__ZNK7WebCore17HTMLAnchorElement4hrefEv
__ZNK7WebCore17AccessibilityList13isOrderedListEv
__ZNK7WebCore17AccessibilityList16isDefinitionListEv
__ZN7WebCore24AXDefinitionListTermTextEv
-__ZN7WebCore27DefaultLocalizationStrategy24AXDefinitionListTermTextEv
__ZN7WebCore30AXDefinitionListDefinitionTextEv
-__ZN7WebCore27DefaultLocalizationStrategy30AXDefinitionListDefinitionTextEv
__ZN7WebCore19HTMLFieldSetElementD0Ev
__ZN7WebCore17HTMLLegendElementD0Ev
__ZN7WebCoreL16videoConstructorERKNS_13QualifiedNameEPNS_8DocumentEPNS_15HTMLFormElementEb
__ZN7WebCore11MediaPlayer12networkStateEv
__ZN7WebCore16HTMLMediaElement15setNetworkStateENS_11MediaPlayer12NetworkStateE
__ZN7WebCore28mediaElementLoadingStateTextEv
-__ZN7WebCore27DefaultLocalizationStrategy28mediaElementLoadingStateTextEv
__ZN7WebCore34MediaPlayerPrivateAVFoundationObjC19createAVAssetForURLERKN3WTF6StringE
__ZN7WebCore30MediaPlayerPrivateAVFoundation17setDelayCallbacksEb
__ZL38initAVURLAssetReferenceRestrictionsKeyv
__ZNK7WebCore35AccessibilityMediaControlsContainer24accessibilityDescriptionEv
__ZNK7WebCore35AccessibilityMediaControlsContainer15elementTypeNameEv
__ZN7WebCore34localizedMediaControlElementStringERKN3WTF6StringE
-__ZN7WebCore27DefaultLocalizationStrategy34localizedMediaControlElementStringERKN3WTF6StringE
__ZN7WebCore15DynamicNodeList15invalidateCacheEv
__ZNK7WebCore24MediaControlInputElement21isMediaControlElementEv
__ZNK7WebCore25AccessibilityMediaControl22accessibilityIsIgnoredEv
__ZN7WebCore23RenderFileUploadControl17updateFromElementEv
__ZN7WebCore18ShadowInputElement6createEPNS_11HTMLElementE
__ZN7WebCore25fileButtonChooseFileLabelEv
-__ZN7WebCore27DefaultLocalizationStrategy25fileButtonChooseFileLabelEv
__ZN7WebCore9InputType12valueChangedEv
__ZN7WebCore22HTMLFormControlElement11setDisabledEb
__ZN7WebCore23RenderFileUploadControl29computePreferredLogicalWidthsEv
__ZNK7WebCore13FileInputType12isFileUploadEv
__ZN7WebCore23RenderFileUploadControl11paintObjectERNS_9PaintInfoEii
__ZN7WebCore29fileButtonNoFileSelectedLabelEv
-__ZN7WebCore27DefaultLocalizationStrategy29fileButtonNoFileSelectedLabelEv
__ZN7WebCore12RenderObject23absoluteBoundingBoxRectEb
__ZN7WebCore11RenderBlock13absoluteRectsERN3WTF6VectorINS_7IntRectELm0EEEii
__ZThn8_N7WebCore19HTMLTextAreaElementD0Ev
__ZN3WTF9HashTableINS_6StringESt4pairIS1_PKN7WebCore21EditorInternalCommandEENS_18PairFirstExtractorIS7_EENS_15CaseFoldingHashENS_14PairHashTraitsINS_10HashTraitsIS1_EENSC_IS6_EEEESD_E6lookupIS1_NS_22IdentityHashTranslatorIS1_S7_SA_EEEEPS7_RKT_
__ZN3WTF9HashTableINS_6StringESt4pairIS1_PKN7WebCore21EditorInternalCommandEENS_18PairFirstExtractorIS7_EENS_15CaseFoldingHashENS_14PairHashTraitsINS_10HashTraitsIS1_EENSC_IS6_EEEESD_E6rehashEi
__ZN7WebCore35contextMenuItemTagShowSubstitutionsEb
-__ZN7WebCore27DefaultLocalizationStrategy6sharedEv
-__ZN7WebCore27DefaultLocalizationStrategy35contextMenuItemTagShowSubstitutionsEb
__ZN7WebCore35contextMenuItemTagShowSpellingPanelEb
-__ZN7WebCore27DefaultLocalizationStrategy35contextMenuItemTagShowSpellingPanelEb
__ZN7WebCoreL22centerTruncateToBufferERKN3WTF6StringEjjPt
__ZN7WebCore11isTextBreakEPNS_17TextBreakIteratorEi
__ZN7WebCore15SQLiteStatement8bindNullEi
__ZNK7WebCore17HTMLObjectElement18containsJavaAppletEv
__ZN7WebCore20RenderEmbeddedObject30setShowsMissingPluginIndicatorEv
__ZN7WebCore17missingPluginTextEv
-__ZN7WebCore27DefaultLocalizationStrategy17missingPluginTextEv
__ZN7WebCore20RenderEmbeddedObject13paintReplacedERNS_9PaintInfoEii
__ZN7WebCore20RenderEmbeddedObject26getReplacementTextGeometryEiiRNS_9FloatRectERNS_4PathES2_RNS_4FontERNS_7TextRunERf
__ZN7WebCore4Path14addRoundedRectERKNS_9FloatRectERKNS_9FloatSizeE
__ZN3WTF6String10makeSecureEt
__ZN7WebCore9InputType27shouldRespectAlignAttributeEv
__ZN7WebCore19inputElementAltTextEv
-__ZN7WebCore27DefaultLocalizationStrategy19inputElementAltTextEv
__ZNK7WebCore17RenderTextControl36requiresForcedStyleRecalcPropagationEv
__ZN7WebCore30jsHTMLInputElementDefaultValueEPN3JSC9ExecStateENS0_7JSValueERKNS0_10IdentifierE
__ZN7WebCore32jsHTMLInputElementDefaultCheckedEPN3JSC9ExecStateENS0_7JSValueERKNS0_10IdentifierE
__ZN7WebCore17HTMLKeygenElementC2ERKNS_13QualifiedNameEPNS_8DocumentEPNS_15HTMLFormElementE
__ZN7WebCore20getSupportedKeySizesERN3WTF6VectorINS0_6StringELm0EEE
__ZN7WebCore18keygenMenuItem2048Ev
-__ZN7WebCore27DefaultLocalizationStrategy18keygenMenuItem2048Ev
__ZN7WebCore18keygenMenuItem1024Ev
-__ZN7WebCore27DefaultLocalizationStrategy18keygenMenuItem1024Ev
__ZN7WebCore17keygenMenuItem512Ev
-__ZN7WebCore27DefaultLocalizationStrategy17keygenMenuItem512Ev
__ZN7WebCore17HTMLSelectElementC2ERKNS_13QualifiedNameEPNS_8DocumentEPNS_15HTMLFormElementE
__ZN7WebCore17HTMLOptionElement6createEPNS_8DocumentEPNS_15HTMLFormElementE
__ZN7WebCore13SelectElement13deselectItemsERNS_17SelectElementDataEPNS_7ElementES4_
__ZN7WebCore11ContextMenuC2Ev
__ZN7WebCore21ContextMenuController8populateEv
__ZN7WebCore26contextMenuItemTagOpenLinkEv
-__ZN7WebCore27DefaultLocalizationStrategy26contextMenuItemTagOpenLinkEv
__ZN7WebCore15ContextMenuItemC1ENS_19ContextMenuItemTypeENS_17ContextMenuActionERKN3WTF6StringEPNS_11ContextMenuE
__ZN7WebCore15ContextMenuItemC2ENS_19ContextMenuItemTypeENS_17ContextMenuActionERKN3WTF6StringEPNS_11ContextMenuE
__ZN7WebCoreL33createPlatformMenuItemDescriptionENS_19ContextMenuItemTypeENS_17ContextMenuActionERKN3WTF6StringEbb
__ZN7WebCore37contextMenuItemTagOpenLinkInNewWindowEv
-__ZN7WebCore27DefaultLocalizationStrategy37contextMenuItemTagOpenLinkInNewWindowEv
__ZN7WebCore36contextMenuItemTagDownloadLinkToDiskEv
-__ZN7WebCore27DefaultLocalizationStrategy36contextMenuItemTagDownloadLinkToDiskEv
__ZN7WebCore37contextMenuItemTagCopyLinkToClipboardEv
-__ZN7WebCore27DefaultLocalizationStrategy37contextMenuItemTagCopyLinkToClipboardEv
__ZN7WebCore38contextMenuItemTagOpenImageInNewWindowEv
-__ZN7WebCore27DefaultLocalizationStrategy38contextMenuItemTagOpenImageInNewWindowEv
__ZN7WebCore37contextMenuItemTagDownloadImageToDiskEv
-__ZN7WebCore27DefaultLocalizationStrategy37contextMenuItemTagDownloadImageToDiskEv
__ZN7WebCore38contextMenuItemTagCopyImageToClipboardEv
-__ZN7WebCore27DefaultLocalizationStrategy38contextMenuItemTagCopyImageToClipboardEv
__ZN7WebCore27contextMenuItemTagMediaPlayEv
-__ZN7WebCore27DefaultLocalizationStrategy27contextMenuItemTagMediaPlayEv
__ZN7WebCore27contextMenuItemTagMediaMuteEv
-__ZN7WebCore27DefaultLocalizationStrategy27contextMenuItemTagMediaMuteEv
__ZN7WebCore37contextMenuItemTagToggleMediaControlsEv
-__ZN7WebCore27DefaultLocalizationStrategy37contextMenuItemTagToggleMediaControlsEv
__ZN7WebCore33contextMenuItemTagToggleMediaLoopEv
-__ZN7WebCore27DefaultLocalizationStrategy33contextMenuItemTagToggleMediaLoopEv
__ZN7WebCore38contextMenuItemTagEnterVideoFullscreenEv
-__ZN7WebCore27DefaultLocalizationStrategy38contextMenuItemTagEnterVideoFullscreenEv
__ZN7WebCore35contextMenuItemTagSearchInSpotlightEv
-__ZN7WebCore27DefaultLocalizationStrategy35contextMenuItemTagSearchInSpotlightEv
__ZN7WebCore27contextMenuItemTagSearchWebEv
-__ZN7WebCore27DefaultLocalizationStrategy27contextMenuItemTagSearchWebEv
__ZN7WebCore22contextMenuItemTagCopyEv
-__ZN7WebCore27DefaultLocalizationStrategy22contextMenuItemTagCopyEv
__ZN7WebCore24contextMenuItemTagGoBackEv
-__ZN7WebCore27DefaultLocalizationStrategy24contextMenuItemTagGoBackEv
__ZN7WebCore27contextMenuItemTagGoForwardEv
-__ZN7WebCore27DefaultLocalizationStrategy27contextMenuItemTagGoForwardEv
__ZN7WebCore22contextMenuItemTagStopEv
-__ZN7WebCore27DefaultLocalizationStrategy22contextMenuItemTagStopEv
__ZN7WebCore24contextMenuItemTagReloadEv
-__ZN7WebCore27DefaultLocalizationStrategy24contextMenuItemTagReloadEv
__ZN7WebCore38contextMenuItemTagOpenFrameInNewWindowEv
-__ZN7WebCore27DefaultLocalizationStrategy38contextMenuItemTagOpenFrameInNewWindowEv
__ZN7WebCore32contextMenuItemTagNoGuessesFoundEv
-__ZN7WebCore27DefaultLocalizationStrategy32contextMenuItemTagNoGuessesFoundEv
__ZN7WebCore32contextMenuItemTagIgnoreSpellingEv
-__ZN7WebCore27DefaultLocalizationStrategy32contextMenuItemTagIgnoreSpellingEv
__ZN7WebCore31contextMenuItemTagLearnSpellingEv
-__ZN7WebCore27DefaultLocalizationStrategy31contextMenuItemTagLearnSpellingEv
__ZN7WebCore31contextMenuItemTagIgnoreGrammarEv
-__ZN7WebCore27DefaultLocalizationStrategy31contextMenuItemTagIgnoreGrammarEv
__ZN7WebCore21contextMenuItemTagCutEv
-__ZN7WebCore27DefaultLocalizationStrategy21contextMenuItemTagCutEv
__ZN7WebCore23contextMenuItemTagPasteEv
-__ZN7WebCore27DefaultLocalizationStrategy23contextMenuItemTagPasteEv
__ZNK7WebCore13HitTestResult17isContentEditableEv
__ZNK7WebCore21ContextMenuController21checkOrEnableIfNeededERNS_15ContextMenuItemE
__ZNK7WebCore15ContextMenuItem4typeEv
__ZN7WebCore15ContextMenuItemD1Ev
__ZN7WebCore21ContextMenuController21addInspectElementItemEv
__ZN7WebCore32contextMenuItemTagInspectElementEv
-__ZN7WebCore27DefaultLocalizationStrategy32contextMenuItemTagInspectElementEv
__ZNK7WebCore11ContextMenu19platformDescriptionEv
__ZN7WebCore11ContextMenu22setPlatformDescriptionEP14NSMutableArray
__ZN7WebCore8Document23activeChainNodeDetachedEPNS_4NodeE
__ZNK7WebCore13HitTestResult14replacedStringEv
__ZN7WebCoreL29selectionContainsPossibleWordEPNS_5FrameE
__ZN7WebCore30contextMenuItemTagSpellingMenuEv
-__ZN7WebCore27DefaultLocalizationStrategy30contextMenuItemTagSpellingMenuEv
__ZN7WebCore21ContextMenuController40createAndAppendSpellingAndGrammarSubMenuERNS_15ContextMenuItemE
__ZN7WebCore31contextMenuItemTagCheckSpellingEv
-__ZN7WebCore27DefaultLocalizationStrategy31contextMenuItemTagCheckSpellingEv
__ZN7WebCore42contextMenuItemTagCheckSpellingWhileTypingEv
-__ZN7WebCore27DefaultLocalizationStrategy42contextMenuItemTagCheckSpellingWhileTypingEv
__ZN7WebCore42contextMenuItemTagCheckGrammarWithSpellingEv
-__ZN7WebCore27DefaultLocalizationStrategy42contextMenuItemTagCheckGrammarWithSpellingEv
__ZN7WebCore46contextMenuItemTagCorrectSpellingAutomaticallyEv
-__ZN7WebCore27DefaultLocalizationStrategy46contextMenuItemTagCorrectSpellingAutomaticallyEv
__ZN7WebCore6Editor22spellingPanelIsShowingEv
__ZN7WebCore15ContextMenuItem8setTitleERKN3WTF6StringE
__ZN7WebCore6Editor24isGrammarCheckingEnabledEv
__ZN7WebCore15ContextMenuItem10setSubMenuEPNS_11ContextMenuE
__ZN7WebCore11ContextMenuD1Ev
__ZN7WebCore35contextMenuItemTagSubstitutionsMenuEv
-__ZN7WebCore27DefaultLocalizationStrategy35contextMenuItemTagSubstitutionsMenuEv
__ZN7WebCore21ContextMenuController35createAndAppendSubstitutionsSubMenuERNS_15ContextMenuItemE
__ZN7WebCore32contextMenuItemTagSmartCopyPasteEv
-__ZN7WebCore27DefaultLocalizationStrategy32contextMenuItemTagSmartCopyPasteEv
__ZN7WebCore29contextMenuItemTagSmartQuotesEv
-__ZN7WebCore27DefaultLocalizationStrategy29contextMenuItemTagSmartQuotesEv
__ZN7WebCore29contextMenuItemTagSmartDashesEv
-__ZN7WebCore27DefaultLocalizationStrategy29contextMenuItemTagSmartDashesEv
__ZN7WebCore28contextMenuItemTagSmartLinksEv
-__ZN7WebCore27DefaultLocalizationStrategy28contextMenuItemTagSmartLinksEv
__ZN7WebCore33contextMenuItemTagTextReplacementEv
-__ZN7WebCore27DefaultLocalizationStrategy33contextMenuItemTagTextReplacementEv
__ZN7WebCore6Editor27substitutionsPanelIsShowingEv
__ZN7WebCore6Editor35isAutomaticQuoteSubstitutionEnabledEv
__ZN7WebCore6Editor34isAutomaticDashSubstitutionEnabledEv
__ZN7WebCore6Editor31isAutomaticLinkDetectionEnabledEv
__ZN7WebCore6Editor33isAutomaticTextReplacementEnabledEv
__ZN7WebCore37contextMenuItemTagTransformationsMenuEv
-__ZN7WebCore27DefaultLocalizationStrategy37contextMenuItemTagTransformationsMenuEv
__ZN7WebCore21ContextMenuController37createAndAppendTransformationsSubMenuERNS_15ContextMenuItemE
__ZN7WebCore31contextMenuItemTagMakeUpperCaseEv
-__ZN7WebCore27DefaultLocalizationStrategy31contextMenuItemTagMakeUpperCaseEv
__ZN7WebCore31contextMenuItemTagMakeLowerCaseEv
-__ZN7WebCore27DefaultLocalizationStrategy31contextMenuItemTagMakeLowerCaseEv
__ZN7WebCore28contextMenuItemTagCapitalizeEv
-__ZN7WebCore27DefaultLocalizationStrategy28contextMenuItemTagCapitalizeEv
__ZN7WebCore26contextMenuItemTagFontMenuEv
-__ZN7WebCore27DefaultLocalizationStrategy26contextMenuItemTagFontMenuEv
__ZN7WebCore21ContextMenuController26createAndAppendFontSubMenuERNS_15ContextMenuItemE
__ZN7WebCore27contextMenuItemTagShowFontsEv
-__ZN7WebCore27DefaultLocalizationStrategy27contextMenuItemTagShowFontsEv
__ZN7WebCore22contextMenuItemTagBoldEv
-__ZN7WebCore27DefaultLocalizationStrategy22contextMenuItemTagBoldEv
__ZN7WebCore24contextMenuItemTagItalicEv
-__ZN7WebCore27DefaultLocalizationStrategy24contextMenuItemTagItalicEv
__ZN7WebCore27contextMenuItemTagUnderlineEv
-__ZN7WebCore27DefaultLocalizationStrategy27contextMenuItemTagUnderlineEv
__ZN7WebCore25contextMenuItemTagOutlineEv
-__ZN7WebCore27DefaultLocalizationStrategy25contextMenuItemTagOutlineEv
__ZN7WebCore24contextMenuItemTagStylesEv
-__ZN7WebCore27DefaultLocalizationStrategy24contextMenuItemTagStylesEv
__ZN7WebCore28contextMenuItemTagShowColorsEv
-__ZN7WebCore27DefaultLocalizationStrategy28contextMenuItemTagShowColorsEv
__ZN7WebCore28contextMenuItemTagSpeechMenuEv
-__ZN7WebCore27DefaultLocalizationStrategy28contextMenuItemTagSpeechMenuEv
__ZN7WebCore21ContextMenuController28createAndAppendSpeechSubMenuERNS_15ContextMenuItemE
__ZN7WebCore31contextMenuItemTagStartSpeakingEv
-__ZN7WebCore27DefaultLocalizationStrategy31contextMenuItemTagStartSpeakingEv
__ZN7WebCore30contextMenuItemTagStopSpeakingEv
__ZN7WebCore30overrideUserPreferredLanguagesERKN3WTF6VectorINS0_6StringELm0EEE
-__ZN7WebCore27DefaultLocalizationStrategy30contextMenuItemTagStopSpeakingEv
__ZN7WebCore38contextMenuItemTagWritingDirectionMenuEv
-__ZN7WebCore27DefaultLocalizationStrategy38contextMenuItemTagWritingDirectionMenuEv
__ZN7WebCore21ContextMenuController38createAndAppendWritingDirectionSubMenuERNS_15ContextMenuItemE
__ZN7WebCore34contextMenuItemTagDefaultDirectionEv
-__ZN7WebCore27DefaultLocalizationStrategy34contextMenuItemTagDefaultDirectionEv
__ZN7WebCore29contextMenuItemTagLeftToRightEv
-__ZN7WebCore27DefaultLocalizationStrategy29contextMenuItemTagLeftToRightEv
__ZN7WebCore29contextMenuItemTagRightToLeftEv
-__ZN7WebCore27DefaultLocalizationStrategy29contextMenuItemTagRightToLeftEv
__ZNK7WebCore6Editor16hasBidiSelectionEv
__ZNK7WebCore13KeyboardEvent8charCodeEv
__ZN7WebCore18jsDOMSelectionTypeEPN3JSC9ExecStateENS0_7JSValueERKNS0_10IdentifierE
__ZNK7WebCore19ApplyPropertyLengthILNS_10LengthAutoE1ELNS_15LengthIntrinsicE1ELNS_18LengthMinIntrinsicE1ELNS_10LengthNoneE1ELNS_15LengthUndefinedE1EE10applyValueEPNS_16CSSStyleSelectorEPNS_8CSSValueE
__ZN7WebCore11RenderStyle11setMaxWidthENS_6LengthE
__ZN7WebCore36contextMenuItemTagLookUpInDictionaryERKN3WTF6StringE
-__ZN7WebCore27DefaultLocalizationStrategy36contextMenuItemTagLookUpInDictionaryERKN3WTF6StringE
__ZNK7WebCore19InspectorController26hasInspectorFrontendClientEv
__ZNK7WebCore21BackForwardController18canGoBackOrForwardEi
__ZNK7WebCore4Page18canGoBackOrForwardEi
__ZN7WebCore17SMILTimeContainer10unscheduleEPNS_14SVGSMILElementE
__ZNK7WebCore17RenderDeprecatedFlexibleBox10renderNameEv
__ZN7WebCore27searchableIndexIntroductionEv
-__ZN7WebCore27DefaultLocalizationStrategy27searchableIndexIntroductionEv
__ZN7WebCore14RenderRubyTextC1EPNS_4NodeE
__ZNK7WebCore13RenderRubyRun11hasRubyTextEv
__ZNK7WebCore14RenderRubyText10isRubyTextEv
__ZN7WebCore17StylePendingImage12removeClientEPNS_12RenderObjectE
__ZN7WebCore15SubmitInputType12defaultValueEv
__ZN7WebCore24submitButtonDefaultLabelEv
-__ZN7WebCore27DefaultLocalizationStrategy24submitButtonDefaultLabelEv
__ZNK7WebCore11RenderTable20firstLineBoxBaselineEv
__ZNK7WebCore18RenderTableSection20firstLineBoxBaselineEv
__ZNK7WebCore15RenderWordBreak10renderNameEv
__ZN7WebCoreL25BottomGradientInterpolateEPvPKdPd
__ZN7WebCore14ResetInputType12defaultValueEv
__ZN7WebCore23resetButtonDefaultLabelEv
-__ZN7WebCore27DefaultLocalizationStrategy23resetButtonDefaultLabelEv
__ZN7WebCore12URLInputType6createEPNS_16HTMLInputElementE
__ZNK7WebCore12URLInputType15formControlTypeEv
__ZN7WebCore14InputTypeNames3urlEv
__ZN7WebCore11EventSourceD0Ev
__ZNK3JSC14JSGlobalObject14isGlobalObjectEv
__ZN7WebCore22multipleFileUploadTextEj
-__ZN7WebCore27DefaultLocalizationStrategy22multipleFileUploadTextEj
__ZN7WebCore17RenderDeprecatedFlexibleBox22calcVerticalPrefWidthsEv
__ZN7WebCore11RenderStyle15setBoxFlexGroupEj
__ZNK7WebCore13RenderListBox10renderNameEv
__ZNK7WebCore16HTMLInputElement16valueMissingTextEv
__ZNK7WebCore9InputType16valueMissingTextEv
__ZN7WebCore33validationMessageValueMissingTextEv
-__ZN7WebCore27DefaultLocalizationStrategy33validationMessageValueMissingTextEv
__ZN7WebCore17ValidationMessage6createEPNS_21FormAssociatedElementE
__ZN7WebCore17ValidationMessage10setMessageERKN3WTF6StringE
__ZN7WebCore5TimerINS_17ValidationMessageEE5firedEv
__ZNK7WebCore14RadioInputType16valueMissingTextEv
__ZN7WebCore41validationMessageValueMissingForRadioTextEv
__ZN7WebCore36validationMessagePatternMismatchTextEv
-__ZN7WebCore27DefaultLocalizationStrategy36validationMessagePatternMismatchTextEv
__ZNK7WebCore16HTMLInputElement16typeMismatchTextEv
__ZNK7WebCore14EmailInputType16typeMismatchTextEv
__ZN7WebCore41validationMessageTypeMismatchForEmailTextEv
-__ZN7WebCore27DefaultLocalizationStrategy33validationMessageTypeMismatchTextEv
__ZN7WebCore38jsHTMLFieldSetElementValidationMessageEPN3JSC9ExecStateENS0_7JSValueERKNS0_10IdentifierE
__ZN7WebCore36jsHTMLKeygenElementValidationMessageEPN3JSC9ExecStateENS0_7JSValueERKNS0_10IdentifierE
__ZN7WebCore33jsHTMLFieldSetElementWillValidateEPN3JSC9ExecStateENS0_7JSValueERKNS0_10IdentifierE
__ZN3JSC8Bindings13RuntimeObject23throwInvalidAccessErrorEPNS_9ExecStateE
__ZN7WebCore20RenderEmbeddedObject30setShowsCrashedPluginIndicatorEv
__ZN7WebCore17crashedPluginTextEv
-__ZN7WebCore27DefaultLocalizationStrategy17crashedPluginTextEv
__ZN7WebCore16ScriptController11createWorldEv
__ZN7WebCore9PageGroup20addUserScriptToWorldEPNS_15DOMWrapperWorldERKN3WTF6StringERKNS_4KURLENS3_10PassOwnPtrINS3_6VectorIS4_Lm0EEEEESD_NS_23UserScriptInjectionTimeENS_25UserContentInjectedFramesE
__ZN7WebCore10UserScriptC2ERKN3WTF6StringERKNS_4KURLENS1_10PassOwnPtrINS1_6VectorIS2_Lm0EEEEESB_NS_23UserScriptInjectionTimeENS_25UserContentInjectedFramesE
>
</File>
<File
- RelativePath="..\platform\DefaultLocalizationStrategy.cpp"
- >
- </File>
- <File
- RelativePath="..\platform\DefaultLocalizationStrategy.h"
- >
- </File>
- <File
RelativePath="..\platform\DragData.cpp"
>
</File>
>
</File>
<File
- RelativePath="..\platform\LocalizationStrategy.h"
- >
- </File>
- <File
RelativePath="..\platform\LocalizedStrings.cpp"
>
</File>
BC5A86B60C3367E800EEA649 /* JSDOMSelection.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5A86B40C3367E800EEA649 /* JSDOMSelection.h */; };
BC5C762A1497FE1400BC4775 /* PlatformEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC5C76281497FE1400BC4775 /* PlatformEvent.cpp */; };
BC5C762B1497FE1400BC4775 /* PlatformEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5C76291497FE1400BC4775 /* PlatformEvent.h */; settings = {ATTRIBUTES = (Private, ); }; };
- BC5CFCA911F793320099ED09 /* LocalizationStrategy.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5CFCA811F793320099ED09 /* LocalizationStrategy.h */; settings = {ATTRIBUTES = (Private, ); }; };
BC5EB5DB0E81B7EA00B25965 /* BorderValue.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB5DA0E81B7EA00B25965 /* BorderValue.h */; settings = {ATTRIBUTES = (Private, ); }; };
BC5EB5DD0E81B8DD00B25965 /* OutlineValue.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB5DC0E81B8DD00B25965 /* OutlineValue.h */; settings = {ATTRIBUTES = (Private, ); }; };
BC5EB5DF0E81B9AB00B25965 /* CollapsedBorderValue.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB5DE0E81B9AB00B25965 /* CollapsedBorderValue.h */; settings = {ATTRIBUTES = (Private, ); }; };
BCC065880F3CE2A700CD2D87 /* JSClientRect.h in Headers */ = {isa = PBXBuildFile; fileRef = BCC065840F3CE2A700CD2D87 /* JSClientRect.h */; };
BCC065890F3CE2A700CD2D87 /* JSClientRectList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCC065850F3CE2A700CD2D87 /* JSClientRectList.cpp */; };
BCC0658A0F3CE2A700CD2D87 /* JSClientRectList.h in Headers */ = {isa = PBXBuildFile; fileRef = BCC065860F3CE2A700CD2D87 /* JSClientRectList.h */; };
- BCC36EB81342AA3F004BEEF7 /* DefaultLocalizationStrategy.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCC36EB61342AA3F004BEEF7 /* DefaultLocalizationStrategy.cpp */; };
- BCC36EB91342AA3F004BEEF7 /* DefaultLocalizationStrategy.h in Headers */ = {isa = PBXBuildFile; fileRef = BCC36EB71342AA3F004BEEF7 /* DefaultLocalizationStrategy.h */; };
BCC438780E886CC700533DD5 /* JSHTMLInputElementCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCC438770E886CC700533DD5 /* JSHTMLInputElementCustom.cpp */; };
BCC573350D695BBE006EF517 /* DOMProgressEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = BCC573330D695BBE006EF517 /* DOMProgressEvent.h */; };
BCC573360D695BBE006EF517 /* DOMProgressEvent.mm in Sources */ = {isa = PBXBuildFile; fileRef = BCC573340D695BBE006EF517 /* DOMProgressEvent.mm */; };
BC5A86B40C3367E800EEA649 /* JSDOMSelection.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSDOMSelection.h; sourceTree = "<group>"; };
BC5C76281497FE1400BC4775 /* PlatformEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PlatformEvent.cpp; sourceTree = "<group>"; };
BC5C76291497FE1400BC4775 /* PlatformEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PlatformEvent.h; sourceTree = "<group>"; };
- BC5CFCA811F793320099ED09 /* LocalizationStrategy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocalizationStrategy.h; sourceTree = "<group>"; };
BC5EB5DA0E81B7EA00B25965 /* BorderValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BorderValue.h; path = style/BorderValue.h; sourceTree = "<group>"; };
BC5EB5DC0E81B8DD00B25965 /* OutlineValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OutlineValue.h; path = style/OutlineValue.h; sourceTree = "<group>"; };
BC5EB5DE0E81B9AB00B25965 /* CollapsedBorderValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CollapsedBorderValue.h; path = style/CollapsedBorderValue.h; sourceTree = "<group>"; };
BCC065840F3CE2A700CD2D87 /* JSClientRect.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSClientRect.h; sourceTree = "<group>"; };
BCC065850F3CE2A700CD2D87 /* JSClientRectList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSClientRectList.cpp; sourceTree = "<group>"; };
BCC065860F3CE2A700CD2D87 /* JSClientRectList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSClientRectList.h; sourceTree = "<group>"; };
- BCC36EB61342AA3F004BEEF7 /* DefaultLocalizationStrategy.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DefaultLocalizationStrategy.cpp; sourceTree = "<group>"; };
- BCC36EB71342AA3F004BEEF7 /* DefaultLocalizationStrategy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DefaultLocalizationStrategy.h; sourceTree = "<group>"; };
BCC438770E886CC700533DD5 /* JSHTMLInputElementCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLInputElementCustom.cpp; sourceTree = "<group>"; };
BCC573330D695BBE006EF517 /* DOMProgressEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMProgressEvent.h; sourceTree = "<group>"; };
BCC573340D695BBE006EF517 /* DOMProgressEvent.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMProgressEvent.mm; sourceTree = "<group>"; };
F587868402DE3B8601EA4122 /* Cursor.h */,
A5732B08136A161D005C8D7C /* DateComponents.cpp */,
A5732B09136A161D005C8D7C /* DateComponents.h */,
- BCC36EB61342AA3F004BEEF7 /* DefaultLocalizationStrategy.cpp */,
- BCC36EB71342AA3F004BEEF7 /* DefaultLocalizationStrategy.h */,
A79546420B5C4CB4007B438F /* DragData.cpp */,
A7B6E69D0B291A9600D0529F /* DragData.h */,
A7CFB3CF0B7ED10A0070C32D /* DragImage.cpp */,
BCFF64900EAD15C200C1D6F7 /* LengthSize.h */,
A7AD2F850EC89D07008AB002 /* LinkHash.cpp */,
A7AD2F860EC89D07008AB002 /* LinkHash.h */,
- BC5CFCA811F793320099ED09 /* LocalizationStrategy.h */,
C046E1AB1208A9FE00BA2CF7 /* LocalizedStrings.cpp */,
935207BD09BD410A00F2038D /* LocalizedStrings.h */,
A8239DFE09B3CF8A00B60641 /* Logging.cpp */,
4162A451101145AE00DFF3ED /* DedicatedWorkerContext.h in Headers */,
41A3D58F101C152D00316D07 /* DedicatedWorkerThread.h in Headers */,
FD06DFA6134A4DEF006F5D7D /* DefaultAudioDestinationNode.h in Headers */,
- BCC36EB91342AA3F004BEEF7 /* DefaultLocalizationStrategy.h in Headers */,
4167EBF6102962BA003D252A /* DefaultSharedWorkerRepository.h in Headers */,
FD31602C12B0267600C1A359 /* DelayDSPKernel.h in Headers */,
FD31602E12B0267600C1A359 /* DelayNode.h in Headers */,
06E81ED70AB5D5E900C87837 /* LocalCurrentGraphicsContext.h in Headers */,
7633A72613D8B33A008501B6 /* LocaleToScriptMapping.h in Headers */,
89878568122CA064003AABDA /* LocalFileSystem.h in Headers */,
- BC5CFCA911F793320099ED09 /* LocalizationStrategy.h in Headers */,
A5732B0D136A16C4005C8D7C /* LocalizedDate.h in Headers */,
F5142C69123F12B000F5BD4C /* LocalizedNumber.h in Headers */,
935207BE09BD410A00F2038D /* LocalizedStrings.h in Headers */,
4162A450101145AE00DFF3ED /* DedicatedWorkerContext.cpp in Sources */,
41A3D58E101C152D00316D07 /* DedicatedWorkerThread.cpp in Sources */,
FD06DFA5134A4DEF006F5D7D /* DefaultAudioDestinationNode.cpp in Sources */,
- BCC36EB81342AA3F004BEEF7 /* DefaultLocalizationStrategy.cpp in Sources */,
4167EBF5102962BA003D252A /* DefaultSharedWorkerRepository.cpp in Sources */,
FD31602B12B0267600C1A359 /* DelayDSPKernel.cpp in Sources */,
FD31602D12B0267600C1A359 /* DelayNode.cpp in Sources */,
+++ /dev/null
-/*
- * Copyright (C) 2010, 2011 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.
- */
-
-#include "config.h"
-#include "DefaultLocalizationStrategy.h"
-
-#if USE(PLATFORM_STRATEGIES)
-
-#include "IntSize.h"
-#include "LocalizedStrings.h"
-#include "NotImplemented.h"
-#include "PlatformString.h"
-#include <wtf/MathExtras.h>
-#include <wtf/text/CString.h>
-#include <wtf/unicode/CharacterNames.h>
-#include <wtf/UnusedParam.h>
-
-#if USE(CF)
-#include <wtf/RetainPtr.h>
-#endif
-
-#if PLATFORM(MAC)
-#include "WebCoreSystemInterface.h"
-#endif
-
-namespace WebCore {
-
-// We can't use String::format for two reasons:
-// 1) It doesn't handle non-ASCII characters in the format string.
-// 2) It doesn't handle the %2$d syntax.
-// Note that because |format| is used as the second parameter to va_start, it cannot be a reference
-// type according to section 18.7/3 of the C++ N1905 standard.
-static String formatLocalizedString(String format, ...)
-{
-#if USE(CF)
- va_list arguments;
- va_start(arguments, format);
- RetainPtr<CFStringRef> formatCFString(AdoptCF, format.createCFString());
- RetainPtr<CFStringRef> result(AdoptCF, CFStringCreateWithFormatAndArguments(0, 0, formatCFString.get(), arguments));
- va_end(arguments);
- return result.get();
-#elif PLATFORM(QT)
- va_list arguments;
- va_start(arguments, format);
- QString result;
- result.vsprintf(format.latin1().data(), arguments);
- va_end(arguments);
- return result;
-#else
- notImplemented();
- return format;
-#endif
-}
-
-#if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
-static String truncatedStringForLookupMenuItem(const String& original)
-{
- if (original.isEmpty())
- return original;
-
- // Truncate the string if it's too long. This is in consistency with AppKit.
- unsigned maxNumberOfGraphemeClustersInLookupMenuItem = 24;
- DEFINE_STATIC_LOCAL(String, ellipsis, (&horizontalEllipsis, 1));
-
- String trimmed = original.stripWhiteSpace();
- unsigned numberOfCharacters = numCharactersInGraphemeClusters(trimmed, maxNumberOfGraphemeClustersInLookupMenuItem);
- return numberOfCharacters == trimmed.length() ? trimmed : trimmed.left(numberOfCharacters) + ellipsis;
-}
-#endif
-
-DefaultLocalizationStrategy& DefaultLocalizationStrategy::shared()
-{
- DEFINE_STATIC_LOCAL(DefaultLocalizationStrategy, defaultLocalizationStrategy, ());
- return defaultLocalizationStrategy;
-}
-
-DefaultLocalizationStrategy::DefaultLocalizationStrategy()
-{
-}
-
-String DefaultLocalizationStrategy::inputElementAltText()
-{
- return WEB_UI_STRING_KEY("Submit", "Submit (input element)", "alt text for <input> elements with no alt, title, or value");
-}
-
-String DefaultLocalizationStrategy::resetButtonDefaultLabel()
-{
- return WEB_UI_STRING("Reset", "default label for Reset buttons in forms on web pages");
-}
-
-String DefaultLocalizationStrategy::searchableIndexIntroduction()
-{
- return WEB_UI_STRING("This is a searchable index. Enter search keywords: ",
- "text that appears at the start of nearly-obsolete web pages in the form of a 'searchable index'");
-}
-
-String DefaultLocalizationStrategy::submitButtonDefaultLabel()
-{
- return WEB_UI_STRING("Submit", "default label for Submit buttons in forms on web pages");
-}
-
-String DefaultLocalizationStrategy::fileButtonChooseFileLabel()
-{
- return WEB_UI_STRING("Choose File", "title for a single file chooser button used in HTML forms");
-}
-
-String DefaultLocalizationStrategy::fileButtonChooseMultipleFilesLabel()
-{
- return WEB_UI_STRING("Choose Files", "title for a multiple file chooser button used in HTML forms. This title should be as short as possible.");
-}
-
-String DefaultLocalizationStrategy::fileButtonNoFileSelectedLabel()
-{
- return WEB_UI_STRING("no file selected", "text to display in file button used in HTML forms when no file is selected");
-}
-
-String DefaultLocalizationStrategy::fileButtonNoFilesSelectedLabel()
-{
- return WEB_UI_STRING("no files selected", "text to display in file button used in HTML forms when no files are selected and the button allows multiple files to be selected");
-}
-
-String DefaultLocalizationStrategy::defaultDetailsSummaryText()
-{
- return WEB_UI_STRING("Details", "text to display in <details> tag when it has no <summary> child");
-}
-
-#if PLATFORM(MAC)
-String DefaultLocalizationStrategy::copyImageUnknownFileLabel()
-{
- return WEB_UI_STRING("unknown", "Unknown filename");
-}
-#endif
-
-#if ENABLE(CONTEXT_MENUS)
-
-String DefaultLocalizationStrategy::contextMenuItemTagOpenLinkInNewWindow()
-{
- return WEB_UI_STRING("Open Link in New Window", "Open in New Window context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagDownloadLinkToDisk()
-{
- return WEB_UI_STRING("Download Linked File", "Download Linked File context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagCopyLinkToClipboard()
-{
- return WEB_UI_STRING("Copy Link", "Copy Link context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagOpenImageInNewWindow()
-{
- return WEB_UI_STRING("Open Image in New Window", "Open Image in New Window context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagDownloadImageToDisk()
-{
- return WEB_UI_STRING("Download Image", "Download Image context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagCopyImageToClipboard()
-{
- return WEB_UI_STRING("Copy Image", "Copy Image context menu item");
-}
-
-#if PLATFORM(QT)
-String DefaultLocalizationStrategy::contextMenuItemTagCopyImageUrlToClipboard()
-{
- return WEB_UI_STRING("Copy Image Address", "Copy Image Address menu item");
-}
-#endif
-
-String DefaultLocalizationStrategy::contextMenuItemTagOpenVideoInNewWindow()
-{
- return WEB_UI_STRING("Open Video in New Window", "Open Video in New Window context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagOpenAudioInNewWindow()
-{
- return WEB_UI_STRING("Open Audio in New Window", "Open Audio in New Window context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagCopyVideoLinkToClipboard()
-{
- return WEB_UI_STRING("Copy Video Address", "Copy Video Address Location context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagCopyAudioLinkToClipboard()
-{
- return WEB_UI_STRING("Copy Audio Address", "Copy Audio Address Location context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagToggleMediaControls()
-{
- return WEB_UI_STRING("Controls", "Media Controls context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagToggleMediaLoop()
-{
- return WEB_UI_STRING("Loop", "Media Loop context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagEnterVideoFullscreen()
-{
- return WEB_UI_STRING("Enter Fullscreen", "Video Enter Fullscreen context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagMediaPlay()
-{
- return WEB_UI_STRING("Play", "Media Play context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagMediaPause()
-{
- return WEB_UI_STRING("Pause", "Media Pause context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagMediaMute()
-{
- return WEB_UI_STRING("Mute", "Media Mute context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagOpenFrameInNewWindow()
-{
- return WEB_UI_STRING("Open Frame in New Window", "Open Frame in New Window context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagCopy()
-{
- return WEB_UI_STRING("Copy", "Copy context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagGoBack()
-{
- return WEB_UI_STRING("Back", "Back context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagGoForward()
-{
- return WEB_UI_STRING("Forward", "Forward context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagStop()
-{
- return WEB_UI_STRING("Stop", "Stop context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagReload()
-{
- return WEB_UI_STRING("Reload", "Reload context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagCut()
-{
- return WEB_UI_STRING("Cut", "Cut context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagPaste()
-{
- return WEB_UI_STRING("Paste", "Paste context menu item");
-}
-
-#if PLATFORM(GTK)
-
-String DefaultLocalizationStrategy::contextMenuItemTagDelete()
-{
- notImplemented();
- return "Delete";
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagInputMethods()
-{
- notImplemented();
- return "Input Methods";
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagUnicode()
-{
- notImplemented();
- return "Unicode";
-}
-
-#endif
-
-#if PLATFORM(GTK) || PLATFORM(QT)
-
-String DefaultLocalizationStrategy::contextMenuItemTagSelectAll()
-{
- notImplemented();
- return "Select All";
-}
-
-#endif
-
-String DefaultLocalizationStrategy::contextMenuItemTagNoGuessesFound()
-{
- return WEB_UI_STRING("No Guesses Found", "No Guesses Found context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagIgnoreSpelling()
-{
- return WEB_UI_STRING("Ignore Spelling", "Ignore Spelling context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagLearnSpelling()
-{
- return WEB_UI_STRING("Learn Spelling", "Learn Spelling context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagSearchWeb()
-{
-#if PLATFORM(MAC) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
- RetainPtr<CFStringRef> searchProviderName(AdoptCF, wkCopyDefaultSearchProviderDisplayName());
- return formatLocalizedString(WEB_UI_STRING("Search with %@", "Search with search provider context menu item with provider name inserted"), searchProviderName.get());
-#else
- return WEB_UI_STRING("Search with Google", "Search with Google context menu item");
-#endif
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagLookUpInDictionary(const String& selectedString)
-{
-#if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD)
- UNUSED_PARAM(selectedString);
- return WEB_UI_STRING("Look Up in Dictionary", "Look Up in Dictionary context menu item");
-#else
-#if USE(CF)
- RetainPtr<CFStringRef> selectedCFString(AdoptCF, truncatedStringForLookupMenuItem(selectedString).createCFString());
- return formatLocalizedString(WEB_UI_STRING("Look Up “%@”", "Look Up context menu item with selected word"), selectedCFString.get());
-#else
- return WEB_UI_STRING("Look Up “<selection>”", "Look Up context menu item with selected word").replace("<selection>", truncatedStringForLookupMenuItem(selectedString));
-#endif
-#endif
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagOpenLink()
-{
- return WEB_UI_STRING("Open Link", "Open Link context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagIgnoreGrammar()
-{
- return WEB_UI_STRING("Ignore Grammar", "Ignore Grammar context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagSpellingMenu()
-{
- return WEB_UI_STRING("Spelling and Grammar", "Spelling and Grammar context sub-menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagShowSpellingPanel(bool show)
-{
- if (show)
- return WEB_UI_STRING("Show Spelling and Grammar", "menu item title");
- return WEB_UI_STRING("Hide Spelling and Grammar", "menu item title");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagCheckSpelling()
-{
- return WEB_UI_STRING("Check Document Now", "Check spelling context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagCheckSpellingWhileTyping()
-{
- return WEB_UI_STRING("Check Spelling While Typing", "Check spelling while typing context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagCheckGrammarWithSpelling()
-{
- return WEB_UI_STRING("Check Grammar With Spelling", "Check grammar with spelling context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagFontMenu()
-{
- return WEB_UI_STRING("Font", "Font context sub-menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagBold()
-{
- return WEB_UI_STRING("Bold", "Bold context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagItalic()
-{
- return WEB_UI_STRING("Italic", "Italic context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagUnderline()
-{
- return WEB_UI_STRING("Underline", "Underline context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagOutline()
-{
- return WEB_UI_STRING("Outline", "Outline context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagWritingDirectionMenu()
-{
- return WEB_UI_STRING("Paragraph Direction", "Paragraph direction context sub-menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagTextDirectionMenu()
-{
- return WEB_UI_STRING("Selection Direction", "Selection direction context sub-menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagDefaultDirection()
-{
- return WEB_UI_STRING("Default", "Default writing direction context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagLeftToRight()
-{
- return WEB_UI_STRING("Left to Right", "Left to Right context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagRightToLeft()
-{
- return WEB_UI_STRING("Right to Left", "Right to Left context menu item");
-}
-
-#if PLATFORM(MAC)
-
-String DefaultLocalizationStrategy::contextMenuItemTagSearchInSpotlight()
-{
- return WEB_UI_STRING("Search in Spotlight", "Search in Spotlight context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagShowFonts()
-{
- return WEB_UI_STRING("Show Fonts", "Show fonts context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagStyles()
-{
- return WEB_UI_STRING("Styles...", "Styles context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagShowColors()
-{
- return WEB_UI_STRING("Show Colors", "Show colors context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagSpeechMenu()
-{
- return WEB_UI_STRING("Speech", "Speech context sub-menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagStartSpeaking()
-{
- return WEB_UI_STRING("Start Speaking", "Start speaking context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagStopSpeaking()
-{
- return WEB_UI_STRING("Stop Speaking", "Stop speaking context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagCorrectSpellingAutomatically()
-{
- return WEB_UI_STRING("Correct Spelling Automatically", "Correct Spelling Automatically context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagSubstitutionsMenu()
-{
- return WEB_UI_STRING("Substitutions", "Substitutions context sub-menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagShowSubstitutions(bool show)
-{
- if (show)
- return WEB_UI_STRING("Show Substitutions", "menu item title");
- return WEB_UI_STRING("Hide Substitutions", "menu item title");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagSmartCopyPaste()
-{
- return WEB_UI_STRING("Smart Copy/Paste", "Smart Copy/Paste context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagSmartQuotes()
-{
- return WEB_UI_STRING("Smart Quotes", "Smart Quotes context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagSmartDashes()
-{
- return WEB_UI_STRING("Smart Dashes", "Smart Dashes context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagSmartLinks()
-{
- return WEB_UI_STRING("Smart Links", "Smart Links context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagTextReplacement()
-{
- return WEB_UI_STRING("Text Replacement", "Text Replacement context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagTransformationsMenu()
-{
- return WEB_UI_STRING("Transformations", "Transformations context sub-menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagMakeUpperCase()
-{
- return WEB_UI_STRING("Make Upper Case", "Make Upper Case context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagMakeLowerCase()
-{
- return WEB_UI_STRING("Make Lower Case", "Make Lower Case context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagCapitalize()
-{
- return WEB_UI_STRING("Capitalize", "Capitalize context menu item");
-}
-
-String DefaultLocalizationStrategy::contextMenuItemTagChangeBack(const String& replacedString)
-{
- notImplemented();
- return replacedString;
-}
-
-#endif
-
-String DefaultLocalizationStrategy::contextMenuItemTagInspectElement()
-{
- return WEB_UI_STRING("Inspect Element", "Inspect Element context menu item");
-}
-
-#endif // ENABLE(CONTEXT_MENUS)
-
-String DefaultLocalizationStrategy::searchMenuNoRecentSearchesText()
-{
- return WEB_UI_STRING("No recent searches", "Label for only item in menu that appears when clicking on the search field image, when no searches have been performed");
-}
-
-String DefaultLocalizationStrategy::searchMenuRecentSearchesText()
-{
- return WEB_UI_STRING("Recent Searches", "label for first item in the menu that appears when clicking on the search field image, used as embedded menu title");
-}
-
-String DefaultLocalizationStrategy::searchMenuClearRecentSearchesText()
-{
- return WEB_UI_STRING("Clear Recent Searches", "menu item in Recent Searches menu that empties menu's contents");
-}
-
-String DefaultLocalizationStrategy::AXWebAreaText()
-{
- return WEB_UI_STRING("HTML content", "accessibility role description for web area");
-}
-
-String DefaultLocalizationStrategy::AXLinkText()
-{
- return WEB_UI_STRING("link", "accessibility role description for link");
-}
-
-String DefaultLocalizationStrategy::AXListMarkerText()
-{
- return WEB_UI_STRING("list marker", "accessibility role description for list marker");
-}
-
-String DefaultLocalizationStrategy::AXImageMapText()
-{
- return WEB_UI_STRING("image map", "accessibility role description for image map");
-}
-
-String DefaultLocalizationStrategy::AXHeadingText()
-{
- return WEB_UI_STRING("heading", "accessibility role description for headings");
-}
-
-String DefaultLocalizationStrategy::AXDefinitionListTermText()
-{
- return WEB_UI_STRING("term", "term word of a definition");
-}
-
-String DefaultLocalizationStrategy::AXDefinitionListDefinitionText()
-{
- return WEB_UI_STRING("definition", "definition phrase");
-}
-
-#if PLATFORM(MAC)
-String DefaultLocalizationStrategy::AXARIAContentGroupText(const String& ariaType)
-{
- if (ariaType == "ARIAApplicationAlert")
- return WEB_UI_STRING("alert", "An ARIA accessibility group that acts as an alert.");
- if (ariaType == "ARIAApplicationAlertDialog")
- return WEB_UI_STRING("alert dialog", "An ARIA accessibility group that acts as an alert dialog.");
- if (ariaType == "ARIAApplicationDialog")
- return WEB_UI_STRING("dialog", "An ARIA accessibility group that acts as an dialog.");
- if (ariaType == "ARIAApplicationLog")
- return WEB_UI_STRING("log", "An ARIA accessibility group that acts as a console log.");
- if (ariaType == "ARIAApplicationMarquee")
- return WEB_UI_STRING("marquee", "An ARIA accessibility group that acts as a marquee.");
- if (ariaType == "ARIAApplicationStatus")
- return WEB_UI_STRING("application status", "An ARIA accessibility group that acts as a status update.");
- if (ariaType == "ARIAApplicationTimer")
- return WEB_UI_STRING("timer", "An ARIA accessibility group that acts as an updating timer.");
- if (ariaType == "ARIADocument")
- return WEB_UI_STRING("document", "An ARIA accessibility group that acts as a document.");
- if (ariaType == "ARIADocumentArticle")
- return WEB_UI_STRING("article", "An ARIA accessibility group that acts as an article.");
- if (ariaType == "ARIADocumentNote")
- return WEB_UI_STRING("note", "An ARIA accessibility group that acts as a note in a document.");
- if (ariaType == "ARIADocumentRegion")
- return WEB_UI_STRING("region", "An ARIA accessibility group that acts as a distinct region in a document.");
- if (ariaType == "ARIALandmarkApplication")
- return WEB_UI_STRING("application", "An ARIA accessibility group that acts as an application.");
- if (ariaType == "ARIALandmarkBanner")
- return WEB_UI_STRING("banner", "An ARIA accessibility group that acts as a banner.");
- if (ariaType == "ARIALandmarkComplementary")
- return WEB_UI_STRING("complementary", "An ARIA accessibility group that acts as a region of complementary information.");
- if (ariaType == "ARIALandmarkContentInfo")
- return WEB_UI_STRING("content", "An ARIA accessibility group that contains content.");
- if (ariaType == "ARIALandmarkMain")
- return WEB_UI_STRING("main", "An ARIA accessibility group that is the main portion of the website.");
- if (ariaType == "ARIALandmarkNavigation")
- return WEB_UI_STRING("navigation", "An ARIA accessibility group that contains the main navigation elements of a website.");
- if (ariaType == "ARIALandmarkSearch")
- return WEB_UI_STRING("search", "An ARIA accessibility group that contains a search feature of a website.");
- if (ariaType == "ARIAUserInterfaceTooltip")
- return WEB_UI_STRING("tooltip", "An ARIA accessibility group that acts as a tooltip.");
- if (ariaType == "ARIATabPanel")
- return WEB_UI_STRING("tab panel", "An ARIA accessibility group that contains the content of a tab.");
- if (ariaType == "ARIADocumentMath")
- return WEB_UI_STRING("math", "An ARIA accessibility group that contains mathematical symbols.");
- return String();
-}
-#endif
-
-String DefaultLocalizationStrategy::AXButtonActionVerb()
-{
- return WEB_UI_STRING("press", "Verb stating the action that will occur when a button is pressed, as used by accessibility");
-}
-
-String DefaultLocalizationStrategy::AXRadioButtonActionVerb()
-{
- return WEB_UI_STRING("select", "Verb stating the action that will occur when a radio button is clicked, as used by accessibility");
-}
-
-String DefaultLocalizationStrategy::AXTextFieldActionVerb()
-{
- return WEB_UI_STRING("activate", "Verb stating the action that will occur when a text field is selected, as used by accessibility");
-}
-
-String DefaultLocalizationStrategy::AXCheckedCheckBoxActionVerb()
-{
- return WEB_UI_STRING("uncheck", "Verb stating the action that will occur when a checked checkbox is clicked, as used by accessibility");
-}
-
-String DefaultLocalizationStrategy::AXUncheckedCheckBoxActionVerb()
-{
- return WEB_UI_STRING("check", "Verb stating the action that will occur when an unchecked checkbox is clicked, as used by accessibility");
-}
-
-String DefaultLocalizationStrategy::AXMenuListActionVerb()
-{
- notImplemented();
- return "select";
-}
-
-String DefaultLocalizationStrategy::AXMenuListPopupActionVerb()
-{
- notImplemented();
- return "select";
-}
-
-String DefaultLocalizationStrategy::AXLinkActionVerb()
-{
- return WEB_UI_STRING("jump", "Verb stating the action that will occur when a link is clicked, as used by accessibility");
-}
-
-String DefaultLocalizationStrategy::missingPluginText()
-{
- return WEB_UI_STRING("Missing Plug-in", "Label text to be used when a plugin is missing");
-}
-
-String DefaultLocalizationStrategy::crashedPluginText()
-{
- return WEB_UI_STRING("Plug-in Failure", "Label text to be used if plugin host process has crashed");
-}
-
-String DefaultLocalizationStrategy::multipleFileUploadText(unsigned numberOfFiles)
-{
- return formatLocalizedString(WEB_UI_STRING("%d files", "Label to describe the number of files selected in a file upload control that allows multiple files"), numberOfFiles);
-}
-
-String DefaultLocalizationStrategy::unknownFileSizeText()
-{
- return WEB_UI_STRING("Unknown", "Unknown filesize FTP directory listing item");
-}
-
-#if PLATFORM(WIN)
-
-String DefaultLocalizationStrategy::uploadFileText()
-{
- notImplemented();
- return "upload";
-}
-
-String DefaultLocalizationStrategy::allFilesText()
-{
- notImplemented();
- return "all files";
-}
-
-#endif
-
-#if PLATFORM(MAC)
-
-String DefaultLocalizationStrategy::builtInPDFPluginName()
-{
- // Also exposed to DOM.
- return WEB_UI_STRING("WebKit built-in PDF", "Pseudo plug-in name, visible in Installed Plug-ins page in Safari.");
-}
-
-String DefaultLocalizationStrategy::pdfDocumentTypeDescription()
-{
- // Also exposed to DOM.
- return WEB_UI_STRING("Portable Document Format", "Description of the (only) type supported by PDF pseudo plug-in. Visible in Installed Plug-ins page in Safari.");
-}
-
-String DefaultLocalizationStrategy::keygenMenuItem512()
-{
- return WEB_UI_STRING("512 (Low Grade)", "Menu item title for KEYGEN pop-up menu");
-}
-
-String DefaultLocalizationStrategy::keygenMenuItem1024()
-{
- return WEB_UI_STRING("1024 (Medium Grade)", "Menu item title for KEYGEN pop-up menu");
-}
-
-String DefaultLocalizationStrategy::keygenMenuItem2048()
-{
- return WEB_UI_STRING("2048 (High Grade)", "Menu item title for KEYGEN pop-up menu");
-}
-
-String DefaultLocalizationStrategy::keygenKeychainItemName(const String& host)
-{
- RetainPtr<CFStringRef> hostCFString(AdoptCF, host.createCFString());
- return formatLocalizedString(WEB_UI_STRING("Key from %@", "Name of keychain key generated by the KEYGEN tag"), hostCFString.get());
-}
-
-#if PLATFORM(IOS)
-String DefaultLocalizationStrategy::htmlSelectMultipleItems(size_t count)
-{
- switch (count) {
- case 0:
- return WEB_UI_STRING("0 Items", "Present the element <select multiple> when no <option> items are selected (iOS only)");
- case 1:
- return WEB_UI_STRING("1 Item", "Present the element <select multiple> when a single <option> is selected (iOS only)");
- default:
- return formatLocalizedString(WEB_UI_STRING("%zu Items", "Present the number of selected <option> items in a <select multiple> element (iOS only)"), count);
- }
-}
-#endif // PLATFORM(IOS)
-#endif // PLATFORM(MAC)
-
-String DefaultLocalizationStrategy::imageTitle(const String& filename, const IntSize& size)
-{
-#if USE(CF)
-#if !defined(BUILDING_ON_LEOPARD)
- RetainPtr<CFStringRef> filenameCFString(AdoptCF, filename.createCFString());
- RetainPtr<CFLocaleRef> locale(AdoptCF, CFLocaleCopyCurrent());
- RetainPtr<CFNumberFormatterRef> formatter(AdoptCF, CFNumberFormatterCreate(0, locale.get(), kCFNumberFormatterDecimalStyle));
-
- int widthInt = size.width();
- RetainPtr<CFNumberRef> width(AdoptCF, CFNumberCreate(0, kCFNumberIntType, &widthInt));
- RetainPtr<CFStringRef> widthString(AdoptCF, CFNumberFormatterCreateStringWithNumber(0, formatter.get(), width.get()));
-
- int heightInt = size.height();
- RetainPtr<CFNumberRef> height(AdoptCF, CFNumberCreate(0, kCFNumberIntType, &heightInt));
- RetainPtr<CFStringRef> heightString(AdoptCF, CFNumberFormatterCreateStringWithNumber(0, formatter.get(), height.get()));
-
- return formatLocalizedString(WEB_UI_STRING("%@ %@×%@ pixels", "window title for a standalone image (uses multiplication symbol, not x)"), filenameCFString.get(), widthString.get(), heightString.get());
-#else
- RetainPtr<CFStringRef> filenameCFString(AdoptCF, filename.createCFString());
- return formatLocalizedString(WEB_UI_STRING("%@ %d×%d pixels", "window title for a standalone image (uses multiplication symbol, not x)"), filenameCFString.get(), size.width(), size.height());
-#endif
-#else
- return formatLocalizedString(WEB_UI_STRING("<filename> %d×%d pixels", "window title for a standalone image (uses multiplication symbol, not x)"), size.width(), size.height()).replace("<filename>", filename);
-#endif
-}
-
-String DefaultLocalizationStrategy::mediaElementLoadingStateText()
-{
- return WEB_UI_STRING("Loading...", "Media controller status message when the media is loading");
-}
-
-String DefaultLocalizationStrategy::mediaElementLiveBroadcastStateText()
-{
- return WEB_UI_STRING("Live Broadcast", "Media controller status message when watching a live broadcast");
-}
-
-String DefaultLocalizationStrategy::localizedMediaControlElementString(const String& name)
-{
- if (name == "AudioElement")
- return WEB_UI_STRING("audio element controller", "accessibility role description for audio element controller");
- if (name == "VideoElement")
- return WEB_UI_STRING("video element controller", "accessibility role description for video element controller");
- if (name == "MuteButton")
- return WEB_UI_STRING("mute", "accessibility role description for mute button");
- if (name == "UnMuteButton")
- return WEB_UI_STRING("unmute", "accessibility role description for turn mute off button");
- if (name == "PlayButton")
- return WEB_UI_STRING("play", "accessibility role description for play button");
- if (name == "PauseButton")
- return WEB_UI_STRING("pause", "accessibility role description for pause button");
- if (name == "Slider")
- return WEB_UI_STRING("movie time", "accessibility role description for timeline slider");
- if (name == "SliderThumb")
- return WEB_UI_STRING("timeline slider thumb", "accessibility role description for timeline thumb");
- if (name == "RewindButton")
- return WEB_UI_STRING("back 30 seconds", "accessibility role description for seek back 30 seconds button");
- if (name == "ReturnToRealtimeButton")
- return WEB_UI_STRING("return to realtime", "accessibility role description for return to real time button");
- if (name == "CurrentTimeDisplay")
- return WEB_UI_STRING("elapsed time", "accessibility role description for elapsed time display");
- if (name == "TimeRemainingDisplay")
- return WEB_UI_STRING("remaining time", "accessibility role description for time remaining display");
- if (name == "StatusDisplay")
- return WEB_UI_STRING("status", "accessibility role description for movie status");
- if (name == "FullscreenButton")
- return WEB_UI_STRING("fullscreen", "accessibility role description for enter fullscreen button");
- if (name == "SeekForwardButton")
- return WEB_UI_STRING("fast forward", "accessibility role description for fast forward button");
- if (name == "SeekBackButton")
- return WEB_UI_STRING("fast reverse", "accessibility role description for fast reverse button");
- if (name == "ShowClosedCaptionsButton")
- return WEB_UI_STRING("show closed captions", "accessibility role description for show closed captions button");
- if (name == "HideClosedCaptionsButton")
- return WEB_UI_STRING("hide closed captions", "accessibility role description for hide closed captions button");
-
- // FIXME: the ControlsPanel container should never be visible in the accessibility hierarchy.
- if (name == "ControlsPanel")
- return String();
-
- ASSERT_NOT_REACHED();
- return String();
-}
-
-String DefaultLocalizationStrategy::localizedMediaControlElementHelpText(const String& name)
-{
- if (name == "AudioElement")
- return WEB_UI_STRING("audio element playback controls and status display", "accessibility role description for audio element controller");
- if (name == "VideoElement")
- return WEB_UI_STRING("video element playback controls and status display", "accessibility role description for video element controller");
- if (name == "MuteButton")
- return WEB_UI_STRING("mute audio tracks", "accessibility help text for mute button");
- if (name == "UnMuteButton")
- return WEB_UI_STRING("unmute audio tracks", "accessibility help text for un mute button");
- if (name == "PlayButton")
- return WEB_UI_STRING("begin playback", "accessibility help text for play button");
- if (name == "PauseButton")
- return WEB_UI_STRING("pause playback", "accessibility help text for pause button");
- if (name == "Slider")
- return WEB_UI_STRING("movie time scrubber", "accessibility help text for timeline slider");
- if (name == "SliderThumb")
- return WEB_UI_STRING("movie time scrubber thumb", "accessibility help text for timeline slider thumb");
- if (name == "RewindButton")
- return WEB_UI_STRING("seek movie back 30 seconds", "accessibility help text for jump back 30 seconds button");
- if (name == "ReturnToRealtimeButton")
- return WEB_UI_STRING("return streaming movie to real time", "accessibility help text for return streaming movie to real time button");
- if (name == "CurrentTimeDisplay")
- return WEB_UI_STRING("current movie time in seconds", "accessibility help text for elapsed time display");
- if (name == "TimeRemainingDisplay")
- return WEB_UI_STRING("number of seconds of movie remaining", "accessibility help text for remaining time display");
- if (name == "StatusDisplay")
- return WEB_UI_STRING("current movie status", "accessibility help text for movie status display");
- if (name == "SeekBackButton")
- return WEB_UI_STRING("seek quickly back", "accessibility help text for fast rewind button");
- if (name == "SeekForwardButton")
- return WEB_UI_STRING("seek quickly forward", "accessibility help text for fast forward button");
- if (name == "FullscreenButton")
- return WEB_UI_STRING("Play movie in fullscreen mode", "accessibility help text for enter fullscreen button");
- if (name == "ShowClosedCaptionsButton")
- return WEB_UI_STRING("start displaying closed captions", "accessibility help text for show closed captions button");
- if (name == "HideClosedCaptionsButton")
- return WEB_UI_STRING("stop displaying closed captions", "accessibility help text for hide closed captions button");
-
- ASSERT_NOT_REACHED();
- return String();
-}
-
-String DefaultLocalizationStrategy::localizedMediaTimeDescription(float time)
-{
- if (!isfinite(time))
- return WEB_UI_STRING("indefinite time", "accessibility help text for an indefinite media controller time value");
-
- int seconds = static_cast<int>(fabsf(time));
- int days = seconds / (60 * 60 * 24);
- int hours = seconds / (60 * 60);
- int minutes = (seconds / 60) % 60;
- seconds %= 60;
-
- if (days)
- return formatLocalizedString(WEB_UI_STRING("%1$d days %2$d hours %3$d minutes %4$d seconds", "accessibility help text for media controller time value >= 1 day"), days, hours, minutes, seconds);
- if (hours)
- return formatLocalizedString(WEB_UI_STRING("%1$d hours %2$d minutes %3$d seconds", "accessibility help text for media controller time value >= 60 minutes"), hours, minutes, seconds);
- if (minutes)
- return formatLocalizedString(WEB_UI_STRING("%1$d minutes %2$d seconds", "accessibility help text for media controller time value >= 60 seconds"), minutes, seconds);
- return formatLocalizedString(WEB_UI_STRING("%1$d seconds", "accessibility help text for media controller time value < 60 seconds"), seconds);
-}
-
-String DefaultLocalizationStrategy::validationMessageValueMissingText()
-{
- return WEB_UI_STRING("value missing", "Validation message for required form control elements that have no value");
-}
-
-String DefaultLocalizationStrategy::validationMessageTypeMismatchText()
-{
- return WEB_UI_STRING("type mismatch", "Validation message for input form controls with a value not matching type");
-}
-
-String DefaultLocalizationStrategy::validationMessagePatternMismatchText()
-{
- return WEB_UI_STRING("pattern mismatch", "Validation message for input form controls requiring a constrained value according to pattern");
-}
-
-String DefaultLocalizationStrategy::validationMessageTooLongText()
-{
- return WEB_UI_STRING("too long", "Validation message for form control elements with a value longer than maximum allowed length");
-}
-
-String DefaultLocalizationStrategy::validationMessageRangeUnderflowText()
-{
- return WEB_UI_STRING("range underflow", "Validation message for input form controls with value lower than allowed minimum");
-}
-
-String DefaultLocalizationStrategy::validationMessageRangeOverflowText()
-{
- return WEB_UI_STRING("range overflow", "Validation message for input form controls with value higher than allowed maximum");
-}
-
-String DefaultLocalizationStrategy::validationMessageStepMismatchText()
-{
- return WEB_UI_STRING("step mismatch", "Validation message for input form controls with value not respecting the step attribute");
-}
-
-} // namespace WebCore
-
-#endif // USE(PLATFORM_STRATEGIES)
+++ /dev/null
-/*
- * Copyright (C) 2010, 2011 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.
- */
-
-#ifndef DefaultLocalizationStrategy_h
-#define DefaultLocalizationStrategy_h
-
-#if USE(PLATFORM_STRATEGIES)
-
-#include "LocalizationStrategy.h"
-#include <wtf/text/WTFString.h>
-
-namespace WebCore {
-
-class DefaultLocalizationStrategy : public LocalizationStrategy {
-public:
- DefaultLocalizationStrategy();
-
- static DefaultLocalizationStrategy& shared();
-
- virtual String inputElementAltText();
- virtual String resetButtonDefaultLabel();
- virtual String searchableIndexIntroduction();
- virtual String submitButtonDefaultLabel();
- virtual String fileButtonChooseFileLabel();
- virtual String fileButtonChooseMultipleFilesLabel();
- virtual String fileButtonNoFileSelectedLabel();
- virtual String fileButtonNoFilesSelectedLabel();
- virtual String defaultDetailsSummaryText();
-#if PLATFORM(MAC)
- virtual String copyImageUnknownFileLabel();
-#endif
-#if ENABLE(CONTEXT_MENUS)
- virtual String contextMenuItemTagOpenLinkInNewWindow();
- virtual String contextMenuItemTagDownloadLinkToDisk();
- virtual String contextMenuItemTagCopyLinkToClipboard();
- virtual String contextMenuItemTagOpenImageInNewWindow();
- virtual String contextMenuItemTagDownloadImageToDisk();
- virtual String contextMenuItemTagCopyImageToClipboard();
-#if PLATFORM(QT)
- virtual String contextMenuItemTagCopyImageUrlToClipboard();
-#endif
- virtual String contextMenuItemTagOpenFrameInNewWindow();
- virtual String contextMenuItemTagCopy();
- virtual String contextMenuItemTagGoBack();
- virtual String contextMenuItemTagGoForward();
- virtual String contextMenuItemTagStop();
- virtual String contextMenuItemTagReload();
- virtual String contextMenuItemTagCut();
- virtual String contextMenuItemTagPaste();
-#if PLATFORM(GTK)
- virtual String contextMenuItemTagDelete();
- virtual String contextMenuItemTagInputMethods();
- virtual String contextMenuItemTagUnicode();
-#endif
-#if PLATFORM(GTK) || PLATFORM(QT)
- virtual String contextMenuItemTagSelectAll();
-#endif
- virtual String contextMenuItemTagNoGuessesFound();
- virtual String contextMenuItemTagIgnoreSpelling();
- virtual String contextMenuItemTagLearnSpelling();
- virtual String contextMenuItemTagSearchWeb();
- virtual String contextMenuItemTagLookUpInDictionary(const String& selectedString);
- virtual String contextMenuItemTagOpenLink();
- virtual String contextMenuItemTagIgnoreGrammar();
- virtual String contextMenuItemTagSpellingMenu();
- virtual String contextMenuItemTagShowSpellingPanel(bool show);
- virtual String contextMenuItemTagCheckSpelling();
- virtual String contextMenuItemTagCheckSpellingWhileTyping();
- virtual String contextMenuItemTagCheckGrammarWithSpelling();
- virtual String contextMenuItemTagFontMenu();
- virtual String contextMenuItemTagBold();
- virtual String contextMenuItemTagItalic();
- virtual String contextMenuItemTagUnderline();
- virtual String contextMenuItemTagOutline();
- virtual String contextMenuItemTagWritingDirectionMenu();
- virtual String contextMenuItemTagTextDirectionMenu();
- virtual String contextMenuItemTagDefaultDirection();
- virtual String contextMenuItemTagLeftToRight();
- virtual String contextMenuItemTagRightToLeft();
-#if PLATFORM(MAC)
- virtual String contextMenuItemTagSearchInSpotlight();
- virtual String contextMenuItemTagShowFonts();
- virtual String contextMenuItemTagStyles();
- virtual String contextMenuItemTagShowColors();
- virtual String contextMenuItemTagSpeechMenu();
- virtual String contextMenuItemTagStartSpeaking();
- virtual String contextMenuItemTagStopSpeaking();
- virtual String contextMenuItemTagCorrectSpellingAutomatically();
- virtual String contextMenuItemTagSubstitutionsMenu();
- virtual String contextMenuItemTagShowSubstitutions(bool show);
- virtual String contextMenuItemTagSmartCopyPaste();
- virtual String contextMenuItemTagSmartQuotes();
- virtual String contextMenuItemTagSmartDashes();
- virtual String contextMenuItemTagSmartLinks();
- virtual String contextMenuItemTagTextReplacement();
- virtual String contextMenuItemTagTransformationsMenu();
- virtual String contextMenuItemTagMakeUpperCase();
- virtual String contextMenuItemTagMakeLowerCase();
- virtual String contextMenuItemTagCapitalize();
- virtual String contextMenuItemTagChangeBack(const String& replacedString);
-#endif
- virtual String contextMenuItemTagInspectElement();
- virtual String contextMenuItemTagOpenVideoInNewWindow();
- virtual String contextMenuItemTagOpenAudioInNewWindow();
- virtual String contextMenuItemTagCopyVideoLinkToClipboard();
- virtual String contextMenuItemTagCopyAudioLinkToClipboard();
- virtual String contextMenuItemTagToggleMediaControls();
- virtual String contextMenuItemTagToggleMediaLoop();
- virtual String contextMenuItemTagEnterVideoFullscreen();
- virtual String contextMenuItemTagMediaPlay();
- virtual String contextMenuItemTagMediaPause();
- virtual String contextMenuItemTagMediaMute();
-#endif // ENABLE(CONTEXT_MENUS)
- virtual String searchMenuNoRecentSearchesText();
- virtual String searchMenuRecentSearchesText();
- virtual String searchMenuClearRecentSearchesText();
- virtual String AXWebAreaText();
- virtual String AXLinkText();
- virtual String AXListMarkerText();
- virtual String AXImageMapText();
- virtual String AXHeadingText();
- virtual String AXDefinitionListTermText();
- virtual String AXDefinitionListDefinitionText();
-#if PLATFORM(MAC)
- virtual String AXARIAContentGroupText(const String& ariaType);
-#endif
- virtual String AXButtonActionVerb();
- virtual String AXRadioButtonActionVerb();
- virtual String AXTextFieldActionVerb();
- virtual String AXCheckedCheckBoxActionVerb();
- virtual String AXUncheckedCheckBoxActionVerb();
- virtual String AXMenuListActionVerb();
- virtual String AXMenuListPopupActionVerb();
- virtual String AXLinkActionVerb();
- virtual String missingPluginText();
- virtual String crashedPluginText();
- virtual String multipleFileUploadText(unsigned numberOfFiles);
- virtual String unknownFileSizeText();
-#if PLATFORM(WIN)
- virtual String uploadFileText();
- virtual String allFilesText();
-#endif
-#if PLATFORM(MAC)
- virtual String builtInPDFPluginName();
- virtual String pdfDocumentTypeDescription();
- virtual String keygenMenuItem512();
- virtual String keygenMenuItem1024();
- virtual String keygenMenuItem2048();
- virtual String keygenKeychainItemName(const String& host);
-#if PLATFORM(IOS)
- virtual String htmlSelectMultipleItems(size_t);
-#endif // PLATFORM(IOS)
-#endif // PLATFORM(MAC)
- virtual String imageTitle(const String& filename, const IntSize&);
- virtual String mediaElementLoadingStateText();
- virtual String mediaElementLiveBroadcastStateText();
- virtual String localizedMediaControlElementString(const String&);
- virtual String localizedMediaControlElementHelpText(const String&);
- virtual String localizedMediaTimeDescription(float);
- virtual String validationMessageValueMissingText();
- virtual String validationMessageTypeMismatchText();
- virtual String validationMessagePatternMismatchText();
- virtual String validationMessageTooLongText();
- virtual String validationMessageRangeUnderflowText();
- virtual String validationMessageRangeOverflowText();
- virtual String validationMessageStepMismatchText();
-};
-
-} // namespace WebCore
-
-#endif // USE(PLATFORM_STRATEGIES)
-
-#endif // DefaultLocalizationStrategy_h
+++ /dev/null
-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- * Copyright (C) 2010 Igalia S.L
- *
- * 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.
- */
-
-#ifndef LocalizationStrategy_h
-#define LocalizationStrategy_h
-
-#if USE(PLATFORM_STRATEGIES)
-
-#include <wtf/Forward.h>
-
-namespace WebCore {
-
-class IntSize;
-
-class LocalizationStrategy {
-public:
- virtual String inputElementAltText() = 0;
- virtual String resetButtonDefaultLabel() = 0;
- virtual String searchableIndexIntroduction() = 0;
- virtual String submitButtonDefaultLabel() = 0;
- virtual String fileButtonChooseFileLabel() = 0;
- virtual String fileButtonChooseMultipleFilesLabel() = 0;
- virtual String fileButtonNoFileSelectedLabel() = 0;
- virtual String fileButtonNoFilesSelectedLabel() = 0;
- virtual String defaultDetailsSummaryText() = 0;
-
-#if PLATFORM(MAC)
- virtual String copyImageUnknownFileLabel() = 0;
-#endif
-
-#if ENABLE(CONTEXT_MENUS)
- virtual String contextMenuItemTagOpenLinkInNewWindow() = 0;
- virtual String contextMenuItemTagDownloadLinkToDisk() = 0;
- virtual String contextMenuItemTagCopyLinkToClipboard() = 0;
- virtual String contextMenuItemTagOpenImageInNewWindow() = 0;
- virtual String contextMenuItemTagDownloadImageToDisk() = 0;
- virtual String contextMenuItemTagCopyImageToClipboard() = 0;
-#if PLATFORM(QT) || PLATFORM(GTK) || PLATFORM(EFL)
- virtual String contextMenuItemTagCopyImageUrlToClipboard() = 0;
-#endif
- virtual String contextMenuItemTagOpenFrameInNewWindow() = 0;
- virtual String contextMenuItemTagCopy() = 0;
- virtual String contextMenuItemTagGoBack() = 0;
- virtual String contextMenuItemTagGoForward() = 0;
- virtual String contextMenuItemTagStop() = 0;
- virtual String contextMenuItemTagReload() = 0;
- virtual String contextMenuItemTagCut() = 0;
- virtual String contextMenuItemTagPaste() = 0;
-#if PLATFORM(GTK)
- virtual String contextMenuItemTagDelete() = 0;
- virtual String contextMenuItemTagInputMethods() = 0;
- virtual String contextMenuItemTagUnicode() = 0;
-#endif
-#if PLATFORM(GTK) || PLATFORM(QT) || PLATFORM(EFL)
- virtual String contextMenuItemTagSelectAll() = 0;
-#endif
- virtual String contextMenuItemTagNoGuessesFound() = 0;
- virtual String contextMenuItemTagIgnoreSpelling() = 0;
- virtual String contextMenuItemTagLearnSpelling() = 0;
- virtual String contextMenuItemTagSearchWeb() = 0;
- virtual String contextMenuItemTagLookUpInDictionary(const String& selectedString) = 0;
- virtual String contextMenuItemTagOpenLink() = 0;
- virtual String contextMenuItemTagIgnoreGrammar() = 0;
- virtual String contextMenuItemTagSpellingMenu() = 0;
- virtual String contextMenuItemTagShowSpellingPanel(bool show) = 0;
- virtual String contextMenuItemTagCheckSpelling() = 0;
- virtual String contextMenuItemTagCheckSpellingWhileTyping() = 0;
- virtual String contextMenuItemTagCheckGrammarWithSpelling() = 0;
- virtual String contextMenuItemTagFontMenu() = 0;
- virtual String contextMenuItemTagBold() = 0;
- virtual String contextMenuItemTagItalic() = 0;
- virtual String contextMenuItemTagUnderline() = 0;
- virtual String contextMenuItemTagOutline() = 0;
- virtual String contextMenuItemTagWritingDirectionMenu() = 0;
- virtual String contextMenuItemTagTextDirectionMenu() = 0;
- virtual String contextMenuItemTagDefaultDirection() = 0;
- virtual String contextMenuItemTagLeftToRight() = 0;
- virtual String contextMenuItemTagRightToLeft() = 0;
-#if PLATFORM(MAC)
- virtual String contextMenuItemTagSearchInSpotlight() = 0;
- virtual String contextMenuItemTagShowFonts() = 0;
- virtual String contextMenuItemTagStyles() = 0;
- virtual String contextMenuItemTagShowColors() = 0;
- virtual String contextMenuItemTagSpeechMenu() = 0;
- virtual String contextMenuItemTagStartSpeaking() = 0;
- virtual String contextMenuItemTagStopSpeaking() = 0;
- virtual String contextMenuItemTagCorrectSpellingAutomatically() = 0;
- virtual String contextMenuItemTagSubstitutionsMenu() = 0;
- virtual String contextMenuItemTagShowSubstitutions(bool show) = 0;
- virtual String contextMenuItemTagSmartCopyPaste() = 0;
- virtual String contextMenuItemTagSmartQuotes() = 0;
- virtual String contextMenuItemTagSmartDashes() = 0;
- virtual String contextMenuItemTagSmartLinks() = 0;
- virtual String contextMenuItemTagTextReplacement() = 0;
- virtual String contextMenuItemTagTransformationsMenu() = 0;
- virtual String contextMenuItemTagMakeUpperCase() = 0;
- virtual String contextMenuItemTagMakeLowerCase() = 0;
- virtual String contextMenuItemTagCapitalize() = 0;
- virtual String contextMenuItemTagChangeBack(const String& replacedString) = 0;
-#endif
- virtual String contextMenuItemTagOpenVideoInNewWindow() = 0;
- virtual String contextMenuItemTagOpenAudioInNewWindow() = 0;
- virtual String contextMenuItemTagCopyVideoLinkToClipboard() = 0;
- virtual String contextMenuItemTagCopyAudioLinkToClipboard() = 0;
- virtual String contextMenuItemTagToggleMediaControls() = 0;
- virtual String contextMenuItemTagToggleMediaLoop() = 0;
- virtual String contextMenuItemTagEnterVideoFullscreen() = 0;
- virtual String contextMenuItemTagMediaPlay() = 0;
- virtual String contextMenuItemTagMediaPause() = 0;
- virtual String contextMenuItemTagMediaMute() = 0;
- virtual String contextMenuItemTagInspectElement() = 0;
-#endif // ENABLE(CONTEXT_MENUS)
-
- virtual String searchMenuNoRecentSearchesText() = 0;
- virtual String searchMenuRecentSearchesText() = 0;
- virtual String searchMenuClearRecentSearchesText() = 0;
-
- virtual String AXWebAreaText() = 0;
- virtual String AXLinkText() = 0;
- virtual String AXListMarkerText() = 0;
- virtual String AXImageMapText() = 0;
- virtual String AXHeadingText() = 0;
- virtual String AXDefinitionListTermText() = 0;
- virtual String AXDefinitionListDefinitionText() = 0;
-
-#if PLATFORM(MAC)
- virtual String AXARIAContentGroupText(const String& ariaType) = 0;
-#endif
-
- virtual String AXButtonActionVerb() = 0;
- virtual String AXRadioButtonActionVerb() = 0;
- virtual String AXTextFieldActionVerb() = 0;
- virtual String AXCheckedCheckBoxActionVerb() = 0;
- virtual String AXUncheckedCheckBoxActionVerb() = 0;
- virtual String AXMenuListActionVerb() = 0;
- virtual String AXMenuListPopupActionVerb() = 0;
- virtual String AXLinkActionVerb() = 0;
-
- virtual String missingPluginText() = 0;
- virtual String crashedPluginText() = 0;
- virtual String multipleFileUploadText(unsigned numberOfFiles) = 0;
- virtual String unknownFileSizeText() = 0;
-
-#if PLATFORM(WIN)
- virtual String uploadFileText() = 0;
- virtual String allFilesText() = 0;
-#endif
-
-#if PLATFORM(MAC)
- virtual String builtInPDFPluginName() = 0;
- virtual String pdfDocumentTypeDescription() = 0;
- virtual String keygenMenuItem512() = 0;
- virtual String keygenMenuItem1024() = 0;
- virtual String keygenMenuItem2048() = 0;
- virtual String keygenKeychainItemName(const String& host) = 0;
-#endif
-
- virtual String imageTitle(const String& filename, const IntSize& size) = 0;
-
- virtual String mediaElementLoadingStateText() = 0;
- virtual String mediaElementLiveBroadcastStateText() = 0;
- virtual String localizedMediaControlElementString(const String&) = 0;
- virtual String localizedMediaControlElementHelpText(const String&) = 0;
- virtual String localizedMediaTimeDescription(float) = 0;
-
- virtual String validationMessageValueMissingText() = 0;
- virtual String validationMessageTypeMismatchText() = 0;
- virtual String validationMessagePatternMismatchText() = 0;
- virtual String validationMessageTooLongText() = 0;
- virtual String validationMessageRangeUnderflowText() = 0;
- virtual String validationMessageRangeOverflowText() = 0;
- virtual String validationMessageStepMismatchText() = 0;
-
-protected:
- virtual ~LocalizationStrategy()
- {
- }
-};
-
-} // namespace WebCore
-
-#endif // USE(PLATFORM_STRATEGIES)
-
-#endif // LocalizationStrategy_h
/*
- * Copyright (C) 2003, 2006, 2009, 2010 Apple Inc. All rights reserved.
+ * Copyright (C) 2003, 2006, 2009, 2010, 2012 Apple Inc. All rights reserved.
* Copyright (C) 2010 Igalia S.L
*
* Redistribution and use in source and binary forms, with or without
#include "config.h"
#include "LocalizedStrings.h"
-#include "DefaultLocalizationStrategy.h"
#include "IntSize.h"
-#include "PlatformStrategies.h"
+#include "NotImplemented.h"
#include "PlatformString.h"
+#include <wtf/MathExtras.h>
+#if USE(CF)
+#include <wtf/RetainPtr.h>
+#endif
+#include <wtf/UnusedParam.h>
+#include <wtf/unicode/CharacterNames.h>
+
+#if PLATFORM(MAC)
+#include "WebCoreSystemInterface.h"
+#endif
namespace WebCore {
-#if USE(PLATFORM_STRATEGIES)
+// We can't use String::format for two reasons:
+// 1) It doesn't handle non-ASCII characters in the format string.
+// 2) It doesn't handle the %2$d syntax.
+// Note that because |format| is used as the second parameter to va_start, it cannot be a reference
+// type according to section 18.7/3 of the C++ N1905 standard.
+static String formatLocalizedString(String format, ...)
+{
+#if USE(CF)
+ va_list arguments;
+ va_start(arguments, format);
+ RetainPtr<CFStringRef> formatCFString(AdoptCF, format.createCFString());
+ RetainPtr<CFStringRef> result(AdoptCF, CFStringCreateWithFormatAndArguments(0, 0, formatCFString.get(), arguments));
+ va_end(arguments);
+ return result.get();
+#else
+ notImplemented();
+ return format;
+#endif
+}
-static inline LocalizationStrategy* localizationStrategy()
+#if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
+static String truncatedStringForLookupMenuItem(const String& original)
{
- if (hasPlatformStrategies())
- return platformStrategies()->localizationStrategy();
+ if (original.isEmpty())
+ return original;
+
+ // Truncate the string if it's too long. This is in consistency with AppKit.
+ unsigned maxNumberOfGraphemeClustersInLookupMenuItem = 24;
+ DEFINE_STATIC_LOCAL(String, ellipsis, (&horizontalEllipsis, 1));
- return &DefaultLocalizationStrategy::shared();
+ String trimmed = original.stripWhiteSpace();
+ unsigned numberOfCharacters = numCharactersInGraphemeClusters(trimmed, maxNumberOfGraphemeClustersInLookupMenuItem);
+ return numberOfCharacters == trimmed.length() ? trimmed : trimmed.left(numberOfCharacters) + ellipsis;
}
+#endif
String inputElementAltText()
{
- return localizationStrategy()->inputElementAltText();
+ return WEB_UI_STRING_KEY("Submit", "Submit (input element)", "alt text for <input> elements with no alt, title, or value");
}
String resetButtonDefaultLabel()
{
- return localizationStrategy()->resetButtonDefaultLabel();
+ return WEB_UI_STRING("Reset", "default label for Reset buttons in forms on web pages");
}
String searchableIndexIntroduction()
{
- return localizationStrategy()->searchableIndexIntroduction();
+ return WEB_UI_STRING("This is a searchable index. Enter search keywords: ",
+ "text that appears at the start of nearly-obsolete web pages in the form of a 'searchable index'");
}
String submitButtonDefaultLabel()
{
- return localizationStrategy()->submitButtonDefaultLabel();
+ return WEB_UI_STRING("Submit", "default label for Submit buttons in forms on web pages");
}
String fileButtonChooseFileLabel()
{
- return localizationStrategy()->fileButtonChooseFileLabel();
+ return WEB_UI_STRING("Choose File", "title for a single file chooser button used in HTML forms");
}
String fileButtonChooseMultipleFilesLabel()
{
- return localizationStrategy()->fileButtonChooseMultipleFilesLabel();
+ return WEB_UI_STRING("Choose Files", "title for a multiple file chooser button used in HTML forms. This title should be as short as possible.");
}
String fileButtonNoFileSelectedLabel()
{
- return localizationStrategy()->fileButtonNoFileSelectedLabel();
+ return WEB_UI_STRING("no file selected", "text to display in file button used in HTML forms when no file is selected");
}
String fileButtonNoFilesSelectedLabel()
{
- return localizationStrategy()->fileButtonNoFilesSelectedLabel();
+ return WEB_UI_STRING("no files selected", "text to display in file button used in HTML forms when no files are selected and the button allows multiple files to be selected");
}
String defaultDetailsSummaryText()
{
- return localizationStrategy()->defaultDetailsSummaryText();
+ return WEB_UI_STRING("Details", "text to display in <details> tag when it has no <summary> child");
}
#if PLATFORM(MAC)
String copyImageUnknownFileLabel()
{
- return localizationStrategy()->copyImageUnknownFileLabel();
+ return WEB_UI_STRING("unknown", "Unknown filename");
}
#endif
#if ENABLE(CONTEXT_MENUS)
String contextMenuItemTagOpenLinkInNewWindow()
{
- return localizationStrategy()->contextMenuItemTagOpenLinkInNewWindow();
+ return WEB_UI_STRING("Open Link in New Window", "Open in New Window context menu item");
}
String contextMenuItemTagDownloadLinkToDisk()
{
- return localizationStrategy()->contextMenuItemTagDownloadLinkToDisk();
+ return WEB_UI_STRING("Download Linked File", "Download Linked File context menu item");
}
String contextMenuItemTagCopyLinkToClipboard()
{
- return localizationStrategy()->contextMenuItemTagCopyLinkToClipboard();
+ return WEB_UI_STRING("Copy Link", "Copy Link context menu item");
}
String contextMenuItemTagOpenImageInNewWindow()
{
- return localizationStrategy()->contextMenuItemTagOpenImageInNewWindow();
+ return WEB_UI_STRING("Open Image in New Window", "Open Image in New Window context menu item");
}
String contextMenuItemTagDownloadImageToDisk()
{
- return localizationStrategy()->contextMenuItemTagDownloadImageToDisk();
+ return WEB_UI_STRING("Download Image", "Download Image context menu item");
}
String contextMenuItemTagCopyImageToClipboard()
{
- return localizationStrategy()->contextMenuItemTagCopyImageToClipboard();
-}
-
-#if PLATFORM(QT) || PLATFORM(GTK) || PLATFORM(EFL)
-String contextMenuItemTagCopyImageUrlToClipboard()
-{
- return localizationStrategy()->contextMenuItemTagCopyImageUrlToClipboard();
+ return WEB_UI_STRING("Copy Image", "Copy Image context menu item");
}
-#endif
String contextMenuItemTagOpenFrameInNewWindow()
{
- return localizationStrategy()->contextMenuItemTagOpenFrameInNewWindow();
+ return WEB_UI_STRING("Open Frame in New Window", "Open Frame in New Window context menu item");
}
String contextMenuItemTagCopy()
{
- return localizationStrategy()->contextMenuItemTagCopy();
+ return WEB_UI_STRING("Copy", "Copy context menu item");
}
String contextMenuItemTagGoBack()
{
- return localizationStrategy()->contextMenuItemTagGoBack();
+ return WEB_UI_STRING("Back", "Back context menu item");
}
String contextMenuItemTagGoForward()
{
- return localizationStrategy()->contextMenuItemTagGoForward();
+ return WEB_UI_STRING("Forward", "Forward context menu item");
}
String contextMenuItemTagStop()
{
- return localizationStrategy()->contextMenuItemTagStop();
+ return WEB_UI_STRING("Stop", "Stop context menu item");
}
String contextMenuItemTagReload()
{
- return localizationStrategy()->contextMenuItemTagReload();
+ return WEB_UI_STRING("Reload", "Reload context menu item");
}
String contextMenuItemTagCut()
{
- return localizationStrategy()->contextMenuItemTagCut();
+ return WEB_UI_STRING("Cut", "Cut context menu item");
}
String contextMenuItemTagPaste()
{
- return localizationStrategy()->contextMenuItemTagPaste();
+ return WEB_UI_STRING("Paste", "Paste context menu item");
}
#if PLATFORM(QT)
String contextMenuItemTagSelectAll()
{
- return localizationStrategy()->contextMenuItemTagSelectAll();
+ notImplemented();
+ return "Select All";
}
#endif
String contextMenuItemTagNoGuessesFound()
{
- return localizationStrategy()->contextMenuItemTagNoGuessesFound();
+ return WEB_UI_STRING("No Guesses Found", "No Guesses Found context menu item");
}
String contextMenuItemTagIgnoreSpelling()
{
- return localizationStrategy()->contextMenuItemTagIgnoreSpelling();
+ return WEB_UI_STRING("Ignore Spelling", "Ignore Spelling context menu item");
}
String contextMenuItemTagLearnSpelling()
{
- return localizationStrategy()->contextMenuItemTagLearnSpelling();
+ return WEB_UI_STRING("Learn Spelling", "Learn Spelling context menu item");
}
#if PLATFORM(MAC)
String contextMenuItemTagSearchInSpotlight()
{
- return localizationStrategy()->contextMenuItemTagSearchInSpotlight();
+ return WEB_UI_STRING("Search in Spotlight", "Search in Spotlight context menu item");
}
#endif
String contextMenuItemTagSearchWeb()
{
- return localizationStrategy()->contextMenuItemTagSearchWeb();
+#if PLATFORM(MAC) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
+ RetainPtr<CFStringRef> searchProviderName(AdoptCF, wkCopyDefaultSearchProviderDisplayName());
+ return formatLocalizedString(WEB_UI_STRING("Search with %@", "Search with search provider context menu item with provider name inserted"), searchProviderName.get());
+#else
+ return WEB_UI_STRING("Search with Google", "Search with Google context menu item");
+#endif
}
String contextMenuItemTagLookUpInDictionary(const String& selectedString)
{
- return localizationStrategy()->contextMenuItemTagLookUpInDictionary(selectedString);
+#if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD)
+ UNUSED_PARAM(selectedString);
+ return WEB_UI_STRING("Look Up in Dictionary", "Look Up in Dictionary context menu item");
+#else
+#if USE(CF)
+ RetainPtr<CFStringRef> selectedCFString(AdoptCF, truncatedStringForLookupMenuItem(selectedString).createCFString());
+ return formatLocalizedString(WEB_UI_STRING("Look Up “%@”", "Look Up context menu item with selected word"), selectedCFString.get());
+#else
+ return WEB_UI_STRING("Look Up “<selection>”", "Look Up context menu item with selected word").replace("<selection>", truncatedStringForLookupMenuItem(selectedString));
+#endif
+#endif
}
String contextMenuItemTagOpenLink()
{
- return localizationStrategy()->contextMenuItemTagOpenLink();
+ return WEB_UI_STRING("Open Link", "Open Link context menu item");
}
String contextMenuItemTagIgnoreGrammar()
{
- return localizationStrategy()->contextMenuItemTagIgnoreGrammar();
+ return WEB_UI_STRING("Ignore Grammar", "Ignore Grammar context menu item");
}
String contextMenuItemTagSpellingMenu()
{
- return localizationStrategy()->contextMenuItemTagSpellingMenu();
+ return WEB_UI_STRING("Spelling and Grammar", "Spelling and Grammar context sub-menu item");
}
String contextMenuItemTagShowSpellingPanel(bool show)
{
- return localizationStrategy()->contextMenuItemTagShowSpellingPanel(show);
+ if (show)
+ return WEB_UI_STRING("Show Spelling and Grammar", "menu item title");
+ return WEB_UI_STRING("Hide Spelling and Grammar", "menu item title");
}
String contextMenuItemTagCheckSpelling()
{
- return localizationStrategy()->contextMenuItemTagCheckSpelling();
+ return WEB_UI_STRING("Check Document Now", "Check spelling context menu item");
}
String contextMenuItemTagCheckSpellingWhileTyping()
{
- return localizationStrategy()->contextMenuItemTagCheckSpellingWhileTyping();
+ return WEB_UI_STRING("Check Spelling While Typing", "Check spelling while typing context menu item");
}
String contextMenuItemTagCheckGrammarWithSpelling()
{
- return localizationStrategy()->contextMenuItemTagCheckGrammarWithSpelling();
+ return WEB_UI_STRING("Check Grammar With Spelling", "Check grammar with spelling context menu item");
}
String contextMenuItemTagFontMenu()
{
- return localizationStrategy()->contextMenuItemTagFontMenu();
+ return WEB_UI_STRING("Font", "Font context sub-menu item");
}
#if PLATFORM(MAC)
String contextMenuItemTagShowFonts()
{
- return localizationStrategy()->contextMenuItemTagShowFonts();
+ return WEB_UI_STRING("Show Fonts", "Show fonts context menu item");
}
#endif
String contextMenuItemTagBold()
{
- return localizationStrategy()->contextMenuItemTagBold();
+ return WEB_UI_STRING("Bold", "Bold context menu item");
}
String contextMenuItemTagItalic()
{
- return localizationStrategy()->contextMenuItemTagItalic();
+ return WEB_UI_STRING("Italic", "Italic context menu item");
}
String contextMenuItemTagUnderline()
{
- return localizationStrategy()->contextMenuItemTagUnderline();
+ return WEB_UI_STRING("Underline", "Underline context menu item");
}
String contextMenuItemTagOutline()
{
- return localizationStrategy()->contextMenuItemTagOutline();
+ return WEB_UI_STRING("Outline", "Outline context menu item");
}
#if PLATFORM(MAC)
String contextMenuItemTagStyles()
{
- return localizationStrategy()->contextMenuItemTagStyles();
+ return WEB_UI_STRING("Styles...", "Styles context menu item");
}
String contextMenuItemTagShowColors()
{
- return localizationStrategy()->contextMenuItemTagShowColors();
+ return WEB_UI_STRING("Show Colors", "Show colors context menu item");
}
String contextMenuItemTagSpeechMenu()
{
- return localizationStrategy()->contextMenuItemTagSpeechMenu();
+ return WEB_UI_STRING("Speech", "Speech context sub-menu item");
}
String contextMenuItemTagStartSpeaking()
{
- return localizationStrategy()->contextMenuItemTagStartSpeaking();
+ return WEB_UI_STRING("Start Speaking", "Start speaking context menu item");
}
String contextMenuItemTagStopSpeaking()
{
- return localizationStrategy()->contextMenuItemTagStopSpeaking();
+ return WEB_UI_STRING("Stop Speaking", "Stop speaking context menu item");
}
#endif
String contextMenuItemTagWritingDirectionMenu()
{
- return localizationStrategy()->contextMenuItemTagWritingDirectionMenu();
+ return WEB_UI_STRING("Paragraph Direction", "Paragraph direction context sub-menu item");
}
String contextMenuItemTagTextDirectionMenu()
{
- return localizationStrategy()->contextMenuItemTagTextDirectionMenu();
+ return WEB_UI_STRING("Selection Direction", "Selection direction context sub-menu item");
}
String contextMenuItemTagDefaultDirection()
{
- return localizationStrategy()->contextMenuItemTagDefaultDirection();
+ return WEB_UI_STRING("Default", "Default writing direction context menu item");
}
String contextMenuItemTagLeftToRight()
{
- return localizationStrategy()->contextMenuItemTagLeftToRight();
+ return WEB_UI_STRING("Left to Right", "Left to Right context menu item");
}
String contextMenuItemTagRightToLeft()
{
- return localizationStrategy()->contextMenuItemTagRightToLeft();
+ return WEB_UI_STRING("Right to Left", "Right to Left context menu item");
}
#if PLATFORM(MAC)
String contextMenuItemTagCorrectSpellingAutomatically()
{
- return localizationStrategy()->contextMenuItemTagCorrectSpellingAutomatically();
+ return WEB_UI_STRING("Correct Spelling Automatically", "Correct Spelling Automatically context menu item");
}
String contextMenuItemTagSubstitutionsMenu()
{
- return localizationStrategy()->contextMenuItemTagSubstitutionsMenu();
+ return WEB_UI_STRING("Substitutions", "Substitutions context sub-menu item");
}
String contextMenuItemTagShowSubstitutions(bool show)
{
- return localizationStrategy()->contextMenuItemTagShowSubstitutions(show);
+ if (show)
+ return WEB_UI_STRING("Show Substitutions", "menu item title");
+ return WEB_UI_STRING("Hide Substitutions", "menu item title");
}
String contextMenuItemTagSmartCopyPaste()
{
- return localizationStrategy()->contextMenuItemTagSmartCopyPaste();
+ return WEB_UI_STRING("Smart Copy/Paste", "Smart Copy/Paste context menu item");
}
String contextMenuItemTagSmartQuotes()
{
- return localizationStrategy()->contextMenuItemTagSmartQuotes();
+ return WEB_UI_STRING("Smart Quotes", "Smart Quotes context menu item");
}
String contextMenuItemTagSmartDashes()
{
- return localizationStrategy()->contextMenuItemTagSmartDashes();
+ return WEB_UI_STRING("Smart Dashes", "Smart Dashes context menu item");
}
String contextMenuItemTagSmartLinks()
{
- return localizationStrategy()->contextMenuItemTagSmartLinks();
+ return WEB_UI_STRING("Smart Links", "Smart Links context menu item");
}
String contextMenuItemTagTextReplacement()
{
- return localizationStrategy()->contextMenuItemTagTextReplacement();
+ return WEB_UI_STRING("Text Replacement", "Text Replacement context menu item");
}
String contextMenuItemTagTransformationsMenu()
{
- return localizationStrategy()->contextMenuItemTagTransformationsMenu();
+ return WEB_UI_STRING("Transformations", "Transformations context sub-menu item");
}
String contextMenuItemTagMakeUpperCase()
{
- return localizationStrategy()->contextMenuItemTagMakeUpperCase();
+ return WEB_UI_STRING("Make Upper Case", "Make Upper Case context menu item");
}
String contextMenuItemTagMakeLowerCase()
{
- return localizationStrategy()->contextMenuItemTagMakeLowerCase();
+ return WEB_UI_STRING("Make Lower Case", "Make Lower Case context menu item");
}
String contextMenuItemTagCapitalize()
{
- return localizationStrategy()->contextMenuItemTagCapitalize();
+ return WEB_UI_STRING("Capitalize", "Capitalize context menu item");
}
String contextMenuItemTagChangeBack(const String& replacedString)
{
- return localizationStrategy()->contextMenuItemTagChangeBack(replacedString);
+ notImplemented();
+ return replacedString;
}
#endif // PLATFORM(MAC)
String contextMenuItemTagOpenVideoInNewWindow()
{
- return localizationStrategy()->contextMenuItemTagOpenVideoInNewWindow();
+ return WEB_UI_STRING("Open Video in New Window", "Open Video in New Window context menu item");
}
String contextMenuItemTagOpenAudioInNewWindow()
{
- return localizationStrategy()->contextMenuItemTagOpenAudioInNewWindow();
+ return WEB_UI_STRING("Open Audio in New Window", "Open Audio in New Window context menu item");
}
String contextMenuItemTagCopyVideoLinkToClipboard()
{
- return localizationStrategy()->contextMenuItemTagCopyVideoLinkToClipboard();
+ return WEB_UI_STRING("Copy Video Address", "Copy Video Address Location context menu item");
}
String contextMenuItemTagCopyAudioLinkToClipboard()
{
- return localizationStrategy()->contextMenuItemTagCopyAudioLinkToClipboard();
+ return WEB_UI_STRING("Copy Audio Address", "Copy Audio Address Location context menu item");
}
String contextMenuItemTagToggleMediaControls()
{
- return localizationStrategy()->contextMenuItemTagToggleMediaControls();
+ return WEB_UI_STRING("Controls", "Media Controls context menu item");
}
String contextMenuItemTagToggleMediaLoop()
{
- return localizationStrategy()->contextMenuItemTagToggleMediaLoop();
+ return WEB_UI_STRING("Loop", "Media Loop context menu item");
}
String contextMenuItemTagEnterVideoFullscreen()
{
- return localizationStrategy()->contextMenuItemTagEnterVideoFullscreen();
+ return WEB_UI_STRING("Enter Fullscreen", "Video Enter Fullscreen context menu item");
}
String contextMenuItemTagMediaPlay()
{
- return localizationStrategy()->contextMenuItemTagMediaPlay();
+ return WEB_UI_STRING("Play", "Media Play context menu item");
}
String contextMenuItemTagMediaPause()
{
- return localizationStrategy()->contextMenuItemTagMediaPause();
+ return WEB_UI_STRING("Pause", "Media Pause context menu item");
}
String contextMenuItemTagMediaMute()
{
- return localizationStrategy()->contextMenuItemTagMediaMute();
+ return WEB_UI_STRING("Mute", "Media Mute context menu item");
}
String contextMenuItemTagInspectElement()
{
- return localizationStrategy()->contextMenuItemTagInspectElement();
+ return WEB_UI_STRING("Inspect Element", "Inspect Element context menu item");
}
#endif // ENABLE(CONTEXT_MENUS)
String searchMenuNoRecentSearchesText()
{
- return localizationStrategy()->searchMenuNoRecentSearchesText();
+ return WEB_UI_STRING("No recent searches", "Label for only item in menu that appears when clicking on the search field image, when no searches have been performed");
}
-String searchMenuRecentSearchesText ()
+String searchMenuRecentSearchesText()
{
- return localizationStrategy()->searchMenuRecentSearchesText ();
+ return WEB_UI_STRING("Recent Searches", "label for first item in the menu that appears when clicking on the search field image, used as embedded menu title");
}
String searchMenuClearRecentSearchesText()
{
- return localizationStrategy()->searchMenuClearRecentSearchesText();
+ return WEB_UI_STRING("Clear Recent Searches", "menu item in Recent Searches menu that empties menu's contents");
}
String AXWebAreaText()
{
- return localizationStrategy()->AXWebAreaText();
+ return WEB_UI_STRING("HTML content", "accessibility role description for web area");
}
String AXLinkText()
{
- return localizationStrategy()->AXLinkText();
+ return WEB_UI_STRING("link", "accessibility role description for link");
}
String AXListMarkerText()
{
- return localizationStrategy()->AXListMarkerText();
+ return WEB_UI_STRING("list marker", "accessibility role description for list marker");
}
String AXImageMapText()
{
- return localizationStrategy()->AXImageMapText();
+ return WEB_UI_STRING("image map", "accessibility role description for image map");
}
String AXHeadingText()
{
- return localizationStrategy()->AXHeadingText();
+ return WEB_UI_STRING("heading", "accessibility role description for headings");
}
String AXDefinitionListTermText()
{
- return localizationStrategy()->AXDefinitionListTermText();
+ return WEB_UI_STRING("term", "term word of a definition");
}
String AXDefinitionListDefinitionText()
{
- return localizationStrategy()->AXDefinitionListDefinitionText();
+ return WEB_UI_STRING("definition", "definition phrase");
}
#if PLATFORM(MAC)
String AXARIAContentGroupText(const String& ariaType)
{
- return localizationStrategy()->AXARIAContentGroupText(ariaType);
+ if (ariaType == "ARIAApplicationAlert")
+ return WEB_UI_STRING("alert", "An ARIA accessibility group that acts as an alert.");
+ if (ariaType == "ARIAApplicationAlertDialog")
+ return WEB_UI_STRING("alert dialog", "An ARIA accessibility group that acts as an alert dialog.");
+ if (ariaType == "ARIAApplicationDialog")
+ return WEB_UI_STRING("dialog", "An ARIA accessibility group that acts as an dialog.");
+ if (ariaType == "ARIAApplicationLog")
+ return WEB_UI_STRING("log", "An ARIA accessibility group that acts as a console log.");
+ if (ariaType == "ARIAApplicationMarquee")
+ return WEB_UI_STRING("marquee", "An ARIA accessibility group that acts as a marquee.");
+ if (ariaType == "ARIAApplicationStatus")
+ return WEB_UI_STRING("application status", "An ARIA accessibility group that acts as a status update.");
+ if (ariaType == "ARIAApplicationTimer")
+ return WEB_UI_STRING("timer", "An ARIA accessibility group that acts as an updating timer.");
+ if (ariaType == "ARIADocument")
+ return WEB_UI_STRING("document", "An ARIA accessibility group that acts as a document.");
+ if (ariaType == "ARIADocumentArticle")
+ return WEB_UI_STRING("article", "An ARIA accessibility group that acts as an article.");
+ if (ariaType == "ARIADocumentNote")
+ return WEB_UI_STRING("note", "An ARIA accessibility group that acts as a note in a document.");
+ if (ariaType == "ARIADocumentRegion")
+ return WEB_UI_STRING("region", "An ARIA accessibility group that acts as a distinct region in a document.");
+ if (ariaType == "ARIALandmarkApplication")
+ return WEB_UI_STRING("application", "An ARIA accessibility group that acts as an application.");
+ if (ariaType == "ARIALandmarkBanner")
+ return WEB_UI_STRING("banner", "An ARIA accessibility group that acts as a banner.");
+ if (ariaType == "ARIALandmarkComplementary")
+ return WEB_UI_STRING("complementary", "An ARIA accessibility group that acts as a region of complementary information.");
+ if (ariaType == "ARIALandmarkContentInfo")
+ return WEB_UI_STRING("content", "An ARIA accessibility group that contains content.");
+ if (ariaType == "ARIALandmarkMain")
+ return WEB_UI_STRING("main", "An ARIA accessibility group that is the main portion of the website.");
+ if (ariaType == "ARIALandmarkNavigation")
+ return WEB_UI_STRING("navigation", "An ARIA accessibility group that contains the main navigation elements of a website.");
+ if (ariaType == "ARIALandmarkSearch")
+ return WEB_UI_STRING("search", "An ARIA accessibility group that contains a search feature of a website.");
+ if (ariaType == "ARIAUserInterfaceTooltip")
+ return WEB_UI_STRING("tooltip", "An ARIA accessibility group that acts as a tooltip.");
+ if (ariaType == "ARIATabPanel")
+ return WEB_UI_STRING("tab panel", "An ARIA accessibility group that contains the content of a tab.");
+ if (ariaType == "ARIADocumentMath")
+ return WEB_UI_STRING("math", "An ARIA accessibility group that contains mathematical symbols.");
+ return String();
}
#endif
String AXButtonActionVerb()
{
- return localizationStrategy()->AXButtonActionVerb();
+ return WEB_UI_STRING("press", "Verb stating the action that will occur when a button is pressed, as used by accessibility");
}
String AXRadioButtonActionVerb()
{
- return localizationStrategy()->AXRadioButtonActionVerb();
+ return WEB_UI_STRING("select", "Verb stating the action that will occur when a radio button is clicked, as used by accessibility");
}
String AXTextFieldActionVerb()
{
- return localizationStrategy()->AXTextFieldActionVerb();
+ return WEB_UI_STRING("activate", "Verb stating the action that will occur when a text field is selected, as used by accessibility");
}
String AXCheckedCheckBoxActionVerb()
{
- return localizationStrategy()->AXCheckedCheckBoxActionVerb();
+ return WEB_UI_STRING("uncheck", "Verb stating the action that will occur when a checked checkbox is clicked, as used by accessibility");
}
String AXUncheckedCheckBoxActionVerb()
{
- return localizationStrategy()->AXUncheckedCheckBoxActionVerb();
+ return WEB_UI_STRING("check", "Verb stating the action that will occur when an unchecked checkbox is clicked, as used by accessibility");
}
String AXLinkActionVerb()
{
- return localizationStrategy()->AXLinkActionVerb();
+ return WEB_UI_STRING("jump", "Verb stating the action that will occur when a link is clicked, as used by accessibility");
}
String AXMenuListPopupActionVerb()
{
- return localizationStrategy()->AXMenuListPopupActionVerb();
+ notImplemented();
+ return "select";
}
String AXMenuListActionVerb()
{
- return localizationStrategy()->AXMenuListActionVerb();
+ notImplemented();
+ return "select";
}
String missingPluginText()
{
- return localizationStrategy()->missingPluginText();
+ return WEB_UI_STRING("Missing Plug-in", "Label text to be used when a plugin is missing");
}
String crashedPluginText()
{
- return localizationStrategy()->crashedPluginText();
+ return WEB_UI_STRING("Plug-in Failure", "Label text to be used if plugin host process has crashed");
}
String multipleFileUploadText(unsigned numberOfFiles)
{
- return localizationStrategy()->multipleFileUploadText(numberOfFiles);
+ return formatLocalizedString(WEB_UI_STRING("%d files", "Label to describe the number of files selected in a file upload control that allows multiple files"), numberOfFiles);
}
String unknownFileSizeText()
{
- return localizationStrategy()->unknownFileSizeText();
+ return WEB_UI_STRING("Unknown", "Unknown filesize FTP directory listing item");
}
#if PLATFORM(WIN)
String uploadFileText()
{
- return localizationStrategy()->uploadFileText();
+ notImplemented();
+ return "upload";
}
String allFilesText()
{
- return localizationStrategy()->allFilesText();
+ notImplemented();
+ return "all files";
}
#endif
#if PLATFORM(MAC)
String builtInPDFPluginName()
{
- return localizationStrategy()->builtInPDFPluginName();
+ // Also exposed to DOM.
+ return WEB_UI_STRING("WebKit built-in PDF", "Pseudo plug-in name, visible in Installed Plug-ins page in Safari.");
}
String pdfDocumentTypeDescription()
{
- return localizationStrategy()->pdfDocumentTypeDescription();
+ // Also exposed to DOM.
+ return WEB_UI_STRING("Portable Document Format", "Description of the (only) type supported by PDF pseudo plug-in. Visible in Installed Plug-ins page in Safari.");
}
String keygenMenuItem512()
{
- return localizationStrategy()->keygenMenuItem512();
+ return WEB_UI_STRING("512 (Low Grade)", "Menu item title for KEYGEN pop-up menu");
}
String keygenMenuItem1024()
{
- return localizationStrategy()->keygenMenuItem1024();
+ return WEB_UI_STRING("1024 (Medium Grade)", "Menu item title for KEYGEN pop-up menu");
}
String keygenMenuItem2048()
{
- return localizationStrategy()->keygenMenuItem2048();
+ return WEB_UI_STRING("2048 (High Grade)", "Menu item title for KEYGEN pop-up menu");
}
String keygenKeychainItemName(const String& host)
{
- return localizationStrategy()->keygenKeychainItemName(host);
+ RetainPtr<CFStringRef> hostCFString(AdoptCF, host.createCFString());
+ return formatLocalizedString(WEB_UI_STRING("Key from %@", "Name of keychain key generated by the KEYGEN tag"), hostCFString.get());
}
#endif
-String imageTitle(const String& filename, const IntSize& size)
+#if PLATFORM(IOS)
+String htmlSelectMultipleItems(size_t count)
{
- return localizationStrategy()->imageTitle(filename, size);
+ switch (count) {
+ case 0:
+ return WEB_UI_STRING("0 Items", "Present the element <select multiple> when no <option> items are selected (iOS only)");
+ case 1:
+ return WEB_UI_STRING("1 Item", "Present the element <select multiple> when a single <option> is selected (iOS only)");
+ default:
+ return formatLocalizedString(WEB_UI_STRING("%zu Items", "Present the number of selected <option> items in a <select multiple> element (iOS only)"), count);
+ }
}
+#endif
-String mediaElementLoadingStateText()
+String imageTitle(const String& filename, const IntSize& size)
{
- return localizationStrategy()->mediaElementLoadingStateText();
-}
+#if USE(CF)
+#if !defined(BUILDING_ON_LEOPARD)
+ RetainPtr<CFStringRef> filenameCFString(AdoptCF, filename.createCFString());
+ RetainPtr<CFLocaleRef> locale(AdoptCF, CFLocaleCopyCurrent());
+ RetainPtr<CFNumberFormatterRef> formatter(AdoptCF, CFNumberFormatterCreate(0, locale.get(), kCFNumberFormatterDecimalStyle));
-String mediaElementLiveBroadcastStateText()
-{
- return localizationStrategy()->mediaElementLiveBroadcastStateText();
+ int widthInt = size.width();
+ RetainPtr<CFNumberRef> width(AdoptCF, CFNumberCreate(0, kCFNumberIntType, &widthInt));
+ RetainPtr<CFStringRef> widthString(AdoptCF, CFNumberFormatterCreateStringWithNumber(0, formatter.get(), width.get()));
+
+ int heightInt = size.height();
+ RetainPtr<CFNumberRef> height(AdoptCF, CFNumberCreate(0, kCFNumberIntType, &heightInt));
+ RetainPtr<CFStringRef> heightString(AdoptCF, CFNumberFormatterCreateStringWithNumber(0, formatter.get(), height.get()));
+
+ return formatLocalizedString(WEB_UI_STRING("%@ %@×%@ pixels", "window title for a standalone image (uses multiplication symbol, not x)"), filenameCFString.get(), widthString.get(), heightString.get());
+#else
+ RetainPtr<CFStringRef> filenameCFString(AdoptCF, filename.createCFString());
+ return formatLocalizedString(WEB_UI_STRING("%@ %d×%d pixels", "window title for a standalone image (uses multiplication symbol, not x)"), filenameCFString.get(), size.width(), size.height());
+#endif
+#else
+ return formatLocalizedString(WEB_UI_STRING("<filename> %d×%d pixels", "window title for a standalone image (uses multiplication symbol, not x)"), size.width(), size.height()).replace("<filename>", filename);
+#endif
}
-String localizedMediaControlElementString(const String& controlName)
+String mediaElementLoadingStateText()
{
- return localizationStrategy()->localizedMediaControlElementString(controlName);
+ return WEB_UI_STRING("Loading...", "Media controller status message when the media is loading");
}
-String localizedMediaControlElementHelpText(const String& controlName)
+String mediaElementLiveBroadcastStateText()
{
- return localizationStrategy()->localizedMediaControlElementHelpText(controlName);
+ return WEB_UI_STRING("Live Broadcast", "Media controller status message when watching a live broadcast");
+}
+
+String localizedMediaControlElementString(const String& name)
+{
+ if (name == "AudioElement")
+ return WEB_UI_STRING("audio element controller", "accessibility role description for audio element controller");
+ if (name == "VideoElement")
+ return WEB_UI_STRING("video element controller", "accessibility role description for video element controller");
+ if (name == "MuteButton")
+ return WEB_UI_STRING("mute", "accessibility role description for mute button");
+ if (name == "UnMuteButton")
+ return WEB_UI_STRING("unmute", "accessibility role description for turn mute off button");
+ if (name == "PlayButton")
+ return WEB_UI_STRING("play", "accessibility role description for play button");
+ if (name == "PauseButton")
+ return WEB_UI_STRING("pause", "accessibility role description for pause button");
+ if (name == "Slider")
+ return WEB_UI_STRING("movie time", "accessibility role description for timeline slider");
+ if (name == "SliderThumb")
+ return WEB_UI_STRING("timeline slider thumb", "accessibility role description for timeline thumb");
+ if (name == "RewindButton")
+ return WEB_UI_STRING("back 30 seconds", "accessibility role description for seek back 30 seconds button");
+ if (name == "ReturnToRealtimeButton")
+ return WEB_UI_STRING("return to realtime", "accessibility role description for return to real time button");
+ if (name == "CurrentTimeDisplay")
+ return WEB_UI_STRING("elapsed time", "accessibility role description for elapsed time display");
+ if (name == "TimeRemainingDisplay")
+ return WEB_UI_STRING("remaining time", "accessibility role description for time remaining display");
+ if (name == "StatusDisplay")
+ return WEB_UI_STRING("status", "accessibility role description for movie status");
+ if (name == "FullscreenButton")
+ return WEB_UI_STRING("fullscreen", "accessibility role description for enter fullscreen button");
+ if (name == "SeekForwardButton")
+ return WEB_UI_STRING("fast forward", "accessibility role description for fast forward button");
+ if (name == "SeekBackButton")
+ return WEB_UI_STRING("fast reverse", "accessibility role description for fast reverse button");
+ if (name == "ShowClosedCaptionsButton")
+ return WEB_UI_STRING("show closed captions", "accessibility role description for show closed captions button");
+ if (name == "HideClosedCaptionsButton")
+ return WEB_UI_STRING("hide closed captions", "accessibility role description for hide closed captions button");
+
+ // FIXME: the ControlsPanel container should never be visible in the accessibility hierarchy.
+ if (name == "ControlsPanel")
+ return String();
+
+ ASSERT_NOT_REACHED();
+ return String();
+}
+
+String localizedMediaControlElementHelpText(const String& name)
+{
+ if (name == "AudioElement")
+ return WEB_UI_STRING("audio element playback controls and status display", "accessibility role description for audio element controller");
+ if (name == "VideoElement")
+ return WEB_UI_STRING("video element playback controls and status display", "accessibility role description for video element controller");
+ if (name == "MuteButton")
+ return WEB_UI_STRING("mute audio tracks", "accessibility help text for mute button");
+ if (name == "UnMuteButton")
+ return WEB_UI_STRING("unmute audio tracks", "accessibility help text for un mute button");
+ if (name == "PlayButton")
+ return WEB_UI_STRING("begin playback", "accessibility help text for play button");
+ if (name == "PauseButton")
+ return WEB_UI_STRING("pause playback", "accessibility help text for pause button");
+ if (name == "Slider")
+ return WEB_UI_STRING("movie time scrubber", "accessibility help text for timeline slider");
+ if (name == "SliderThumb")
+ return WEB_UI_STRING("movie time scrubber thumb", "accessibility help text for timeline slider thumb");
+ if (name == "RewindButton")
+ return WEB_UI_STRING("seek movie back 30 seconds", "accessibility help text for jump back 30 seconds button");
+ if (name == "ReturnToRealtimeButton")
+ return WEB_UI_STRING("return streaming movie to real time", "accessibility help text for return streaming movie to real time button");
+ if (name == "CurrentTimeDisplay")
+ return WEB_UI_STRING("current movie time in seconds", "accessibility help text for elapsed time display");
+ if (name == "TimeRemainingDisplay")
+ return WEB_UI_STRING("number of seconds of movie remaining", "accessibility help text for remaining time display");
+ if (name == "StatusDisplay")
+ return WEB_UI_STRING("current movie status", "accessibility help text for movie status display");
+ if (name == "SeekBackButton")
+ return WEB_UI_STRING("seek quickly back", "accessibility help text for fast rewind button");
+ if (name == "SeekForwardButton")
+ return WEB_UI_STRING("seek quickly forward", "accessibility help text for fast forward button");
+ if (name == "FullscreenButton")
+ return WEB_UI_STRING("Play movie in fullscreen mode", "accessibility help text for enter fullscreen button");
+ if (name == "ShowClosedCaptionsButton")
+ return WEB_UI_STRING("start displaying closed captions", "accessibility help text for show closed captions button");
+ if (name == "HideClosedCaptionsButton")
+ return WEB_UI_STRING("stop displaying closed captions", "accessibility help text for hide closed captions button");
+
+ ASSERT_NOT_REACHED();
+ return String();
}
String localizedMediaTimeDescription(float time)
{
- return localizationStrategy()->localizedMediaTimeDescription(time);
+ if (!isfinite(time))
+ return WEB_UI_STRING("indefinite time", "accessibility help text for an indefinite media controller time value");
+
+ int seconds = static_cast<int>(fabsf(time));
+ int days = seconds / (60 * 60 * 24);
+ int hours = seconds / (60 * 60);
+ int minutes = (seconds / 60) % 60;
+ seconds %= 60;
+
+ if (days)
+ return formatLocalizedString(WEB_UI_STRING("%1$d days %2$d hours %3$d minutes %4$d seconds", "accessibility help text for media controller time value >= 1 day"), days, hours, minutes, seconds);
+ if (hours)
+ return formatLocalizedString(WEB_UI_STRING("%1$d hours %2$d minutes %3$d seconds", "accessibility help text for media controller time value >= 60 minutes"), hours, minutes, seconds);
+ if (minutes)
+ return formatLocalizedString(WEB_UI_STRING("%1$d minutes %2$d seconds", "accessibility help text for media controller time value >= 60 seconds"), minutes, seconds);
+ return formatLocalizedString(WEB_UI_STRING("%1$d seconds", "accessibility help text for media controller time value < 60 seconds"), seconds);
}
String validationMessageValueMissingText()
{
- return localizationStrategy()->validationMessageValueMissingText();
+ return WEB_UI_STRING("value missing", "Validation message for required form control elements that have no value");
}
String validationMessageValueMissingForCheckboxText()
{
- return localizationStrategy()->validationMessageValueMissingText();
+ return validationMessageValueMissingText();
}
String validationMessageValueMissingForFileText()
{
- return localizationStrategy()->validationMessageValueMissingText();
+ return validationMessageValueMissingText();
}
String validationMessageValueMissingForMultipleFileText()
{
- return localizationStrategy()->validationMessageValueMissingText();
+ return validationMessageValueMissingText();
}
String validationMessageValueMissingForRadioText()
{
- return localizationStrategy()->validationMessageValueMissingText();
+ return validationMessageValueMissingText();
}
String validationMessageValueMissingForSelectText()
{
- return localizationStrategy()->validationMessageValueMissingText();
+ return validationMessageValueMissingText();
}
String validationMessageTypeMismatchText()
{
- return localizationStrategy()->validationMessageTypeMismatchText();
+ return WEB_UI_STRING("type mismatch", "Validation message for input form controls with a value not matching type");
}
String validationMessageTypeMismatchForEmailText()
{
- return localizationStrategy()->validationMessageTypeMismatchText();
+ return validationMessageTypeMismatchText();
}
String validationMessageTypeMismatchForMultipleEmailText()
{
- return localizationStrategy()->validationMessageTypeMismatchText();
+ return validationMessageTypeMismatchText();
}
String validationMessageTypeMismatchForURLText()
{
- return localizationStrategy()->validationMessageTypeMismatchText();
+ return validationMessageTypeMismatchText();
}
String validationMessagePatternMismatchText()
{
- return localizationStrategy()->validationMessagePatternMismatchText();
+ return WEB_UI_STRING("pattern mismatch", "Validation message for input form controls requiring a constrained value according to pattern");
}
String validationMessageTooLongText(int, int)
{
- return localizationStrategy()->validationMessageTooLongText();
+ return WEB_UI_STRING("too long", "Validation message for form control elements with a value longer than maximum allowed length");
}
String validationMessageRangeUnderflowText(const String&)
{
- return localizationStrategy()->validationMessageRangeUnderflowText();
+ return WEB_UI_STRING("range underflow", "Validation message for input form controls with value lower than allowed minimum");
}
String validationMessageRangeOverflowText(const String&)
{
- return localizationStrategy()->validationMessageRangeOverflowText();
+ return WEB_UI_STRING("range overflow", "Validation message for input form controls with value higher than allowed maximum");
}
String validationMessageStepMismatchText(const String&, const String&)
{
- return localizationStrategy()->validationMessageStepMismatchText();
-}
-
-#endif // USE(PLATFORM_STRATEGIES)
-
-#if !PLATFORM(MAC) && !PLATFORM(WIN)
-String localizedString(const char* key)
-{
- return String::fromUTF8(key, strlen(key));
+ return WEB_UI_STRING("step mismatch", "Validation message for input form controls with value not respecting the step attribute");
}
-#endif
} // namespace WebCore
String keygenKeychainItemName(const String& host);
#endif
+#if PLATFORM(IOS)
+ String htmlSelectMultipleItems(size_t num);
+#endif
+
String imageTitle(const String& filename, const IntSize& size);
String mediaElementLoadingStateText();
String validationMessageRangeOverflowText(const String& maximum);
String validationMessageStepMismatchText(const String& base, const String& step);
-
+#if !PLATFORM(CHROMIUM)
#define WEB_UI_STRING(string, description) WebCore::localizedString(string)
#define WEB_UI_STRING_KEY(string, key, description) WebCore::localizedString(key)
String localizedString(const char* key);
+#endif
} // namespace WebCore
#include "PlatformStrategies.h"
-#include "DefaultLocalizationStrategy.h"
-
namespace WebCore {
static PlatformStrategies* s_platformStrategies;
return s_platformStrategies;
}
-LocalizationStrategy* PlatformStrategies::createLocalizationStrategy()
-{
- return new DefaultLocalizationStrategy;
-}
-
} // namespace WebCore
#endif // USE(PLATFORM_STRATEGIES)
class CookiesStrategy;
class PasteboardStrategy;
class PluginStrategy;
-class LocalizationStrategy;
class VisitedLinkStrategy;
class PlatformStrategies {
return m_pluginStrategy;
}
- LocalizationStrategy* localizationStrategy()
- {
- if (!m_localizationStrategy)
- m_localizationStrategy = createLocalizationStrategy();
- return m_localizationStrategy;
- }
-
VisitedLinkStrategy* visitedLinkStrategy()
{
if (!m_visitedLinkStrategy)
PlatformStrategies()
: m_cookiesStrategy(0)
, m_pluginStrategy(0)
- , m_localizationStrategy(0)
, m_visitedLinkStrategy(0)
, m_pasteboardStrategy(0)
{
private:
virtual CookiesStrategy* createCookiesStrategy() = 0;
virtual PluginStrategy* createPluginStrategy() = 0;
- virtual LocalizationStrategy* createLocalizationStrategy();
virtual VisitedLinkStrategy* createVisitedLinkStrategy() = 0;
virtual PasteboardStrategy* createPasteboardStrategy() = 0;
CookiesStrategy* m_cookiesStrategy;
PluginStrategy* m_pluginStrategy;
- LocalizationStrategy* m_localizationStrategy;
VisitedLinkStrategy* m_visitedLinkStrategy;
PasteboardStrategy* m_pasteboardStrategy;
};
--- /dev/null
+/*
+ * Copyright (C) 2007 Staikos Computing Services Inc. <info@staikos.net>
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
+ * Copyright (C) 2008 Collabora Ltd. All rights reserved.
+ * Copyright (C) 2010, 2012 Apple Inc. All rights reserved.
+ * Copyright (C) 2010 INdT - Instituto Nokia de Tecnologia
+ *
+ * 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.
+ */
+
+#include "config.h"
+#include "LocalizedStrings.h"
+
+#include "IntSize.h"
+#include "NotImplemented.h"
+#include "PlatformString.h"
+#include <QCoreApplication>
+#include <wtf/MathExtras.h>
+
+namespace WebCore {
+
+String inputElementAltText()
+{
+ return QCoreApplication::translate("QWebPage", "Submit", "Submit (input element) alt text for <input> elements with no alt, title, or value");
+}
+
+String resetButtonDefaultLabel()
+{
+ return QCoreApplication::translate("QWebPage", "Reset", "default label for Reset buttons in forms on web pages");
+}
+
+String searchableIndexIntroduction()
+{
+ return QCoreApplication::translate("QWebPage", "This is a searchable index. Enter search keywords: ", "text that appears at the start of nearly-obsolete web pages in the form of a 'searchable index'");
+}
+
+String submitButtonDefaultLabel()
+{
+ return QCoreApplication::translate("QWebPage", "Submit", "default label for Submit buttons in forms on web pages");
+}
+
+String fileButtonChooseFileLabel()
+{
+ return QCoreApplication::translate("QWebPage", "Choose File", "title for a single file chooser button used in HTML forms");
+}
+
+String fileButtonChooseMultipleFilesLabel()
+{
+ return QCoreApplication::translate("QWebPage", "Choose Files", "title for a multiple file chooser button used in HTML forms. This title should be as short as possible.");
+}
+
+String fileButtonNoFileSelectedLabel()
+{
+ return QCoreApplication::translate("QWebPage", "No file selected", "text to display in file button used in HTML forms when no file is selected");
+}
+
+String fileButtonNoFilesSelectedLabel()
+{
+ return QCoreApplication::translate("QWebPage", "No files selected", "text to display in file button used in HTML forms when no files are selected and the button allows multiple files to be selected");
+}
+
+String defaultDetailsSummaryText()
+{
+ return QCoreApplication::translate("QWebPage", "Details", "text to display in <details> tag when it has no <summary> child");
+}
+
+String contextMenuItemTagOpenLinkInNewWindow()
+{
+ return QCoreApplication::translate("QWebPage", "Open in New Window", "Open in New Window context menu item");
+}
+
+String contextMenuItemTagDownloadLinkToDisk()
+{
+ return QCoreApplication::translate("QWebPage", "Save Link...", "Download Linked File context menu item");
+}
+
+String contextMenuItemTagCopyLinkToClipboard()
+{
+ return QCoreApplication::translate("QWebPage", "Copy Link", "Copy Link context menu item");
+}
+
+String contextMenuItemTagOpenImageInNewWindow()
+{
+ return QCoreApplication::translate("QWebPage", "Open Image", "Open Image in New Window context menu item");
+}
+
+String contextMenuItemTagDownloadImageToDisk()
+{
+ return QCoreApplication::translate("QWebPage", "Save Image", "Download Image context menu item");
+}
+
+String contextMenuItemTagCopyImageToClipboard()
+{
+ return QCoreApplication::translate("QWebPage", "Copy Image", "Copy Link context menu item");
+}
+
+String contextMenuItemTagCopyImageUrlToClipboard()
+{
+ return QCoreApplication::translate("QWebPage", "Copy Image Address", "Copy Image Address menu item");
+}
+
+String contextMenuItemTagOpenVideoInNewWindow()
+{
+ return QCoreApplication::translate("QWebPage", "Open Video", "Open Video in New Window");
+}
+
+String contextMenuItemTagOpenAudioInNewWindow()
+{
+ return QCoreApplication::translate("QWebPage", "Open Audio", "Open Audio in New Window");
+}
+
+String contextMenuItemTagCopyVideoLinkToClipboard()
+{
+ return QCoreApplication::translate("QWebPage", "Copy Video", "Copy Video Link Location");
+}
+
+String contextMenuItemTagCopyAudioLinkToClipboard()
+{
+ return QCoreApplication::translate("QWebPage", "Copy Audio", "Copy Audio Link Location");
+}
+
+String contextMenuItemTagToggleMediaControls()
+{
+ return QCoreApplication::translate("QWebPage", "Toggle Controls", "Toggle Media Controls");
+}
+
+String contextMenuItemTagToggleMediaLoop()
+{
+ return QCoreApplication::translate("QWebPage", "Toggle Loop", "Toggle Media Loop Playback");
+}
+
+String contextMenuItemTagEnterVideoFullscreen()
+{
+ return QCoreApplication::translate("QWebPage", "Enter Fullscreen", "Switch Video to Fullscreen");
+}
+
+String contextMenuItemTagMediaPlay()
+{
+ return QCoreApplication::translate("QWebPage", "Play", "Play");
+}
+
+String contextMenuItemTagMediaPause()
+{
+ return QCoreApplication::translate("QWebPage", "Pause", "Pause");
+}
+
+String contextMenuItemTagMediaMute()
+{
+ return QCoreApplication::translate("QWebPage", "Mute", "Mute");
+}
+
+String contextMenuItemTagOpenFrameInNewWindow()
+{
+ return QCoreApplication::translate("QWebPage", "Open Frame", "Open Frame in New Window context menu item");
+}
+
+String contextMenuItemTagCopy()
+{
+ return QCoreApplication::translate("QWebPage", "Copy", "Copy context menu item");
+}
+
+String contextMenuItemTagGoBack()
+{
+ return QCoreApplication::translate("QWebPage", "Go Back", "Back context menu item");
+}
+
+String contextMenuItemTagGoForward()
+{
+ return QCoreApplication::translate("QWebPage", "Go Forward", "Forward context menu item");
+}
+
+String contextMenuItemTagStop()
+{
+ return QCoreApplication::translate("QWebPage", "Stop", "Stop context menu item");
+}
+
+String contextMenuItemTagReload()
+{
+ return QCoreApplication::translate("QWebPage", "Reload", "Reload context menu item");
+}
+
+String contextMenuItemTagCut()
+{
+ return QCoreApplication::translate("QWebPage", "Cut", "Cut context menu item");
+}
+
+String contextMenuItemTagPaste()
+{
+ return QCoreApplication::translate("QWebPage", "Paste", "Paste context menu item");
+}
+
+String contextMenuItemTagSelectAll()
+{
+ return QCoreApplication::translate("QWebPage", "Select All", "Select All context menu item");
+}
+
+String contextMenuItemTagNoGuessesFound()
+{
+ return QCoreApplication::translate("QWebPage", "No Guesses Found", "No Guesses Found context menu item");
+}
+
+String contextMenuItemTagIgnoreSpelling()
+{
+ return QCoreApplication::translate("QWebPage", "Ignore", "Ignore Spelling context menu item");
+}
+
+String contextMenuItemTagLearnSpelling()
+{
+ return QCoreApplication::translate("QWebPage", "Add To Dictionary", "Learn Spelling context menu item");
+}
+
+String contextMenuItemTagSearchWeb()
+{
+ return QCoreApplication::translate("QWebPage", "Search The Web", "Search The Web context menu item");
+}
+
+String contextMenuItemTagLookUpInDictionary(const String&)
+{
+ return QCoreApplication::translate("QWebPage", "Look Up In Dictionary", "Look Up in Dictionary context menu item");
+}
+
+String contextMenuItemTagOpenLink()
+{
+ return QCoreApplication::translate("QWebPage", "Open Link", "Open Link context menu item");
+}
+
+String contextMenuItemTagIgnoreGrammar()
+{
+ return QCoreApplication::translate("QWebPage", "Ignore", "Ignore Grammar context menu item");
+}
+
+String contextMenuItemTagSpellingMenu()
+{
+ return QCoreApplication::translate("QWebPage", "Spelling", "Spelling and Grammar context sub-menu item");
+}
+
+String contextMenuItemTagShowSpellingPanel(bool show)
+{
+ return show ? QCoreApplication::translate("QWebPage", "Show Spelling and Grammar", "menu item title") :
+ QCoreApplication::translate("QWebPage", "Hide Spelling and Grammar", "menu item title");
+}
+
+String contextMenuItemTagCheckSpelling()
+{
+ return QCoreApplication::translate("QWebPage", "Check Spelling", "Check spelling context menu item");
+}
+
+String contextMenuItemTagCheckSpellingWhileTyping()
+{
+ return QCoreApplication::translate("QWebPage", "Check Spelling While Typing", "Check spelling while typing context menu item");
+}
+
+String contextMenuItemTagCheckGrammarWithSpelling()
+{
+ return QCoreApplication::translate("QWebPage", "Check Grammar With Spelling", "Check grammar with spelling context menu item");
+}
+
+String contextMenuItemTagFontMenu()
+{
+ return QCoreApplication::translate("QWebPage", "Fonts", "Font context sub-menu item");
+}
+
+String contextMenuItemTagBold()
+{
+ return QCoreApplication::translate("QWebPage", "Bold", "Bold context menu item");
+}
+
+String contextMenuItemTagItalic()
+{
+ return QCoreApplication::translate("QWebPage", "Italic", "Italic context menu item");
+}
+
+String contextMenuItemTagUnderline()
+{
+ return QCoreApplication::translate("QWebPage", "Underline", "Underline context menu item");
+}
+
+String contextMenuItemTagOutline()
+{
+ return QCoreApplication::translate("QWebPage", "Outline", "Outline context menu item");
+}
+
+String contextMenuItemTagWritingDirectionMenu()
+{
+ return QCoreApplication::translate("QWebPage", "Direction", "Writing direction context sub-menu item");
+}
+
+String contextMenuItemTagTextDirectionMenu()
+{
+ return QCoreApplication::translate("QWebPage", "Text Direction", "Text direction context sub-menu item");
+}
+
+String contextMenuItemTagDefaultDirection()
+{
+ return QCoreApplication::translate("QWebPage", "Default", "Default writing direction context menu item");
+}
+
+String contextMenuItemTagLeftToRight()
+{
+ return QCoreApplication::translate("QWebPage", "Left to Right", "Left to Right context menu item");
+}
+
+String contextMenuItemTagRightToLeft()
+{
+ return QCoreApplication::translate("QWebPage", "Right to Left", "Right to Left context menu item");
+}
+
+String contextMenuItemTagInspectElement()
+{
+ return QCoreApplication::translate("QWebPage", "Inspect", "Inspect Element context menu item");
+}
+
+String searchMenuNoRecentSearchesText()
+{
+ return QCoreApplication::translate("QWebPage", "No recent searches", "Label for only item in menu that appears when clicking on the search field image, when no searches have been performed");
+}
+
+String searchMenuRecentSearchesText()
+{
+ return QCoreApplication::translate("QWebPage", "Recent searches", "label for first item in the menu that appears when clicking on the search field image, used as embedded menu title");
+}
+
+String searchMenuClearRecentSearchesText()
+{
+ return QCoreApplication::translate("QWebPage", "Clear recent searches", "menu item in Recent Searches menu that empties menu's contents");
+}
+
+String AXWebAreaText()
+{
+ notImplemented();
+ return String();
+}
+
+String AXLinkText()
+{
+ notImplemented();
+ return String();
+}
+
+String AXListMarkerText()
+{
+ notImplemented();
+ return String();
+}
+
+String AXImageMapText()
+{
+ notImplemented();
+ return String();
+}
+
+String AXHeadingText()
+{
+ notImplemented();
+ return String();
+}
+
+String AXDefinitionListTermText()
+{
+ notImplemented();
+ return String();
+}
+
+String AXDefinitionListDefinitionText()
+{
+ notImplemented();
+ return String();
+}
+
+String AXButtonActionVerb()
+{
+ notImplemented();
+ return String();
+}
+
+String AXRadioButtonActionVerb()
+{
+ notImplemented();
+ return String();
+}
+
+String AXTextFieldActionVerb()
+{
+ notImplemented();
+ return String();
+}
+
+String AXCheckedCheckBoxActionVerb()
+{
+ notImplemented();
+ return String();
+}
+
+String AXUncheckedCheckBoxActionVerb()
+{
+ notImplemented();
+ return String();
+}
+
+String AXMenuListActionVerb()
+{
+ notImplemented();
+ return String();
+}
+
+String AXMenuListPopupActionVerb()
+{
+ notImplemented();
+ return String();
+}
+
+String AXLinkActionVerb()
+{
+ notImplemented();
+ return String();
+}
+
+String missingPluginText()
+{
+ return QCoreApplication::translate("QWebPage", "Missing Plug-in", "Label text to be used when a plug-in is missing");
+}
+
+String crashedPluginText()
+{
+ notImplemented();
+ return String();
+}
+
+String multipleFileUploadText(unsigned)
+{
+ notImplemented();
+ return String();
+}
+
+String unknownFileSizeText()
+{
+ return QCoreApplication::translate("QWebPage", "Unknown", "Unknown filesize FTP directory listing item");
+}
+
+String imageTitle(const String& filename, const IntSize& size)
+{
+ return QCoreApplication::translate("QWebPage", "%1 (%2x%3 pixels)", "Title string for images").arg(filename).arg(size.width()).arg(size.height());
+}
+
+String mediaElementLoadingStateText()
+{
+ return QCoreApplication::translate("QWebPage", "Loading...", "Media controller status message when the media is loading");
+}
+
+String mediaElementLiveBroadcastStateText()
+{
+ return QCoreApplication::translate("QWebPage", "Live Broadcast", "Media controller status message when watching a live broadcast");
+}
+
+#if ENABLE(VIDEO)
+
+String localizedMediaControlElementString(const String& name)
+{
+ if (name == "AudioElement")
+ return QCoreApplication::translate("QWebPage", "Audio Element", "Media controller element");
+ if (name == "VideoElement")
+ return QCoreApplication::translate("QWebPage", "Video Element", "Media controller element");
+ if (name == "MuteButton")
+ return QCoreApplication::translate("QWebPage", "Mute Button", "Media controller element");
+ if (name == "UnMuteButton")
+ return QCoreApplication::translate("QWebPage", "Unmute Button", "Media controller element");
+ if (name == "PlayButton")
+ return QCoreApplication::translate("QWebPage", "Play Button", "Media controller element");
+ if (name == "PauseButton")
+ return QCoreApplication::translate("QWebPage", "Pause Button", "Media controller element");
+ if (name == "Slider")
+ return QCoreApplication::translate("QWebPage", "Slider", "Media controller element");
+ if (name == "SliderThumb")
+ return QCoreApplication::translate("QWebPage", "Slider Thumb", "Media controller element");
+ if (name == "RewindButton")
+ return QCoreApplication::translate("QWebPage", "Rewind Button", "Media controller element");
+ if (name == "ReturnToRealtimeButton")
+ return QCoreApplication::translate("QWebPage", "Return to Real-time Button", "Media controller element");
+ if (name == "CurrentTimeDisplay")
+ return QCoreApplication::translate("QWebPage", "Elapsed Time", "Media controller element");
+ if (name == "TimeRemainingDisplay")
+ return QCoreApplication::translate("QWebPage", "Remaining Time", "Media controller element");
+ if (name == "StatusDisplay")
+ return QCoreApplication::translate("QWebPage", "Status Display", "Media controller element");
+ if (name == "FullscreenButton")
+ return QCoreApplication::translate("QWebPage", "Fullscreen Button", "Media controller element");
+ if (name == "SeekForwardButton")
+ return QCoreApplication::translate("QWebPage", "Seek Forward Button", "Media controller element");
+ if (name == "SeekBackButton")
+ return QCoreApplication::translate("QWebPage", "Seek Back Button", "Media controller element");
+
+ return String();
+}
+
+String localizedMediaControlElementHelpText(const String& name)
+{
+ if (name == "AudioElement")
+ return QCoreApplication::translate("QWebPage", "Audio element playback controls and status display", "Media controller element");
+ if (name == "VideoElement")
+ return QCoreApplication::translate("QWebPage", "Video element playback controls and status display", "Media controller element");
+ if (name == "MuteButton")
+ return QCoreApplication::translate("QWebPage", "Mute audio tracks", "Media controller element");
+ if (name == "UnMuteButton")
+ return QCoreApplication::translate("QWebPage", "Unmute audio tracks", "Media controller element");
+ if (name == "PlayButton")
+ return QCoreApplication::translate("QWebPage", "Begin playback", "Media controller element");
+ if (name == "PauseButton")
+ return QCoreApplication::translate("QWebPage", "Pause playback", "Media controller element");
+ if (name == "Slider")
+ return QCoreApplication::translate("QWebPage", "Movie time scrubber", "Media controller element");
+ if (name == "SliderThumb")
+ return QCoreApplication::translate("QWebPage", "Movie time scrubber thumb", "Media controller element");
+ if (name == "RewindButton")
+ return QCoreApplication::translate("QWebPage", "Rewind movie", "Media controller element");
+ if (name == "ReturnToRealtimeButton")
+ return QCoreApplication::translate("QWebPage", "Return streaming movie to real-time", "Media controller element");
+ if (name == "CurrentTimeDisplay")
+ return QCoreApplication::translate("QWebPage", "Current movie time", "Media controller element");
+ if (name == "TimeRemainingDisplay")
+ return QCoreApplication::translate("QWebPage", "Remaining movie time", "Media controller element");
+ if (name == "StatusDisplay")
+ return QCoreApplication::translate("QWebPage", "Current movie status", "Media controller element");
+ if (name == "FullscreenButton")
+ return QCoreApplication::translate("QWebPage", "Play movie in full-screen mode", "Media controller element");
+ if (name == "SeekForwardButton")
+ return QCoreApplication::translate("QWebPage", "Seek quickly back", "Media controller element");
+ if (name == "SeekBackButton")
+ return QCoreApplication::translate("QWebPage", "Seek quickly forward", "Media controller element");
+
+ ASSERT_NOT_REACHED();
+ return String();
+}
+
+String localizedMediaTimeDescription(float time)
+{
+ if (!isfinite(time))
+ return QCoreApplication::translate("QWebPage", "Indefinite time", "Media time description");
+
+ int seconds = (int)fabsf(time);
+ int days = seconds / (60 * 60 * 24);
+ int hours = seconds / (60 * 60);
+ int minutes = (seconds / 60) % 60;
+ seconds %= 60;
+
+ if (days)
+ return QCoreApplication::translate("QWebPage", "%1 days %2 hours %3 minutes %4 seconds", "Media time description").arg(days).arg(hours).arg(minutes).arg(seconds);
+
+ if (hours)
+ return QCoreApplication::translate("QWebPage", "%1 hours %2 minutes %3 seconds", "Media time description").arg(hours).arg(minutes).arg(seconds);
+
+ if (minutes)
+ return QCoreApplication::translate("QWebPage", "%1 minutes %2 seconds", "Media time description").arg(minutes).arg(seconds);
+
+ return QCoreApplication::translate("QWebPage", "%1 seconds", "Media time description").arg(seconds);
+}
+
+#else // ENABLE(VIDEO)
+// FIXME: #if ENABLE(VIDEO) should be in the base class
+
+String localizedMediaControlElementString(const String& name)
+{
+ return String();
+}
+
+String localizedMediaControlElementHelpText(const String& name)
+{
+ return String();
+}
+
+String localizedMediaTimeDescription(float time)
+{
+ return String();
+}
+
+#endif // ENABLE(VIDEO)
+
+
+String validationMessageValueMissingText()
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageValueMissingForCheckboxText()
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageValueMissingForFileText()
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageValueMissingForMultipleFileText()
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageValueMissingForRadioText()
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageValueMissingForSelectText()
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageTypeMismatchText()
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageTypeMismatchForEmailText()
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageTypeMismatchForMultipleEmailText()
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageTypeMismatchForURLText()
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessagePatternMismatchText()
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageTooLongText(int valueLength, int maxLength)
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageRangeUnderflowText(const String& minimum)
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageRangeOverflowText(const String& maximum)
+{
+ notImplemented();
+ return String();
+}
+
+String validationMessageStepMismatchText(const String& base, const String& step)
+{
+ notImplemented();
+ return String();
+}
+
+String localizedString(const char* key)
+{
+ return String::fromUTF8(key, strlen(key));
+}
+
+}
+2012-02-20 Benjamin Poulain <benjamin@webkit.org>
+
+ Get rid of the LocalizationStrategy
+ https://bugs.webkit.org/show_bug.cgi?id=78324
+
+ Reviewed by Sam Weinig.
+
+ Move the localization code from PlatformStrategiesQt.cpp
+ to LocalizedStringsQt.cpp.
+
+ Get rid of LocalizationStrategy from PlatformStrategiesQt
+
+ * WebCoreSupport/PlatformStrategiesQt.cpp:
+ * WebCoreSupport/PlatformStrategiesQt.h:
+ (PlatformStrategiesQt):
+
2012-02-16 Simon Hausmann <simon.hausmann@nokia.com>
Unreviewed brown-paper bag build fix.
return this;
}
-LocalizationStrategy* PlatformStrategiesQt::createLocalizationStrategy()
-{
- return this;
-}
-
VisitedLinkStrategy* PlatformStrategiesQt::createVisitedLinkStrategy()
{
return this;
}
-
-// LocalizationStrategy
-
-String PlatformStrategiesQt::inputElementAltText()
-{
- return QCoreApplication::translate("QWebPage", "Submit", "Submit (input element) alt text for <input> elements with no alt, title, or value");
-}
-
-String PlatformStrategiesQt::resetButtonDefaultLabel()
-{
- return QCoreApplication::translate("QWebPage", "Reset", "default label for Reset buttons in forms on web pages");
-}
-
-String PlatformStrategiesQt::searchableIndexIntroduction()
-{
- return QCoreApplication::translate("QWebPage", "This is a searchable index. Enter search keywords: ", "text that appears at the start of nearly-obsolete web pages in the form of a 'searchable index'");
-}
-
-String PlatformStrategiesQt::submitButtonDefaultLabel()
-{
- return QCoreApplication::translate("QWebPage", "Submit", "default label for Submit buttons in forms on web pages");
-}
-
-String PlatformStrategiesQt::fileButtonChooseFileLabel()
-{
- return QCoreApplication::translate("QWebPage", "Choose File", "title for a single file chooser button used in HTML forms");
-}
-
-String PlatformStrategiesQt::fileButtonChooseMultipleFilesLabel()
-{
- return QCoreApplication::translate("QWebPage", "Choose Files", "title for a multiple file chooser button used in HTML forms. This title should be as short as possible.");
-}
-
-String PlatformStrategiesQt::fileButtonNoFileSelectedLabel()
-{
- return QCoreApplication::translate("QWebPage", "No file selected", "text to display in file button used in HTML forms when no file is selected");
-}
-
-String PlatformStrategiesQt::fileButtonNoFilesSelectedLabel()
-{
- return QCoreApplication::translate("QWebPage", "No files selected", "text to display in file button used in HTML forms when no files are selected and the button allows multiple files to be selected");
-}
-
-String PlatformStrategiesQt::defaultDetailsSummaryText()
-{
- return QCoreApplication::translate("QWebPage", "Details", "text to display in <details> tag when it has no <summary> child");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagOpenLinkInNewWindow()
-{
- return QCoreApplication::translate("QWebPage", "Open in New Window", "Open in New Window context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagDownloadLinkToDisk()
-{
- return QCoreApplication::translate("QWebPage", "Save Link...", "Download Linked File context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagCopyLinkToClipboard()
-{
- return QCoreApplication::translate("QWebPage", "Copy Link", "Copy Link context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagOpenImageInNewWindow()
-{
- return QCoreApplication::translate("QWebPage", "Open Image", "Open Image in New Window context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagDownloadImageToDisk()
-{
- return QCoreApplication::translate("QWebPage", "Save Image", "Download Image context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagCopyImageToClipboard()
-{
- return QCoreApplication::translate("QWebPage", "Copy Image", "Copy Link context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagCopyImageUrlToClipboard()
-{
- return QCoreApplication::translate("QWebPage", "Copy Image Address", "Copy Image Address menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagOpenVideoInNewWindow()
-{
- return QCoreApplication::translate("QWebPage", "Open Video", "Open Video in New Window");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagOpenAudioInNewWindow()
-{
- return QCoreApplication::translate("QWebPage", "Open Audio", "Open Audio in New Window");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagCopyVideoLinkToClipboard()
-{
- return QCoreApplication::translate("QWebPage", "Copy Video", "Copy Video Link Location");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagCopyAudioLinkToClipboard()
-{
- return QCoreApplication::translate("QWebPage", "Copy Audio", "Copy Audio Link Location");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagToggleMediaControls()
-{
- return QCoreApplication::translate("QWebPage", "Toggle Controls", "Toggle Media Controls");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagToggleMediaLoop()
-{
- return QCoreApplication::translate("QWebPage", "Toggle Loop", "Toggle Media Loop Playback");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagEnterVideoFullscreen()
-{
- return QCoreApplication::translate("QWebPage", "Enter Fullscreen", "Switch Video to Fullscreen");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagMediaPlay()
-{
- return QCoreApplication::translate("QWebPage", "Play", "Play");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagMediaPause()
-{
- return QCoreApplication::translate("QWebPage", "Pause", "Pause");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagMediaMute()
-{
- return QCoreApplication::translate("QWebPage", "Mute", "Mute");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagOpenFrameInNewWindow()
-{
- return QCoreApplication::translate("QWebPage", "Open Frame", "Open Frame in New Window context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagCopy()
-{
- return QCoreApplication::translate("QWebPage", "Copy", "Copy context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagGoBack()
-{
- return QCoreApplication::translate("QWebPage", "Go Back", "Back context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagGoForward()
-{
- return QCoreApplication::translate("QWebPage", "Go Forward", "Forward context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagStop()
-{
- return QCoreApplication::translate("QWebPage", "Stop", "Stop context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagReload()
-{
- return QCoreApplication::translate("QWebPage", "Reload", "Reload context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagCut()
-{
- return QCoreApplication::translate("QWebPage", "Cut", "Cut context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagPaste()
-{
- return QCoreApplication::translate("QWebPage", "Paste", "Paste context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagSelectAll()
-{
- return QCoreApplication::translate("QWebPage", "Select All", "Select All context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagNoGuessesFound()
-{
- return QCoreApplication::translate("QWebPage", "No Guesses Found", "No Guesses Found context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagIgnoreSpelling()
-{
- return QCoreApplication::translate("QWebPage", "Ignore", "Ignore Spelling context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagLearnSpelling()
-{
- return QCoreApplication::translate("QWebPage", "Add To Dictionary", "Learn Spelling context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagSearchWeb()
-{
- return QCoreApplication::translate("QWebPage", "Search The Web", "Search The Web context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagLookUpInDictionary(const String&)
-{
- return QCoreApplication::translate("QWebPage", "Look Up In Dictionary", "Look Up in Dictionary context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagOpenLink()
-{
- return QCoreApplication::translate("QWebPage", "Open Link", "Open Link context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagIgnoreGrammar()
-{
- return QCoreApplication::translate("QWebPage", "Ignore", "Ignore Grammar context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagSpellingMenu()
-{
- return QCoreApplication::translate("QWebPage", "Spelling", "Spelling and Grammar context sub-menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagShowSpellingPanel(bool show)
-{
- return show ? QCoreApplication::translate("QWebPage", "Show Spelling and Grammar", "menu item title") :
- QCoreApplication::translate("QWebPage", "Hide Spelling and Grammar", "menu item title");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagCheckSpelling()
-{
- return QCoreApplication::translate("QWebPage", "Check Spelling", "Check spelling context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagCheckSpellingWhileTyping()
-{
- return QCoreApplication::translate("QWebPage", "Check Spelling While Typing", "Check spelling while typing context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagCheckGrammarWithSpelling()
-{
- return QCoreApplication::translate("QWebPage", "Check Grammar With Spelling", "Check grammar with spelling context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagFontMenu()
-{
- return QCoreApplication::translate("QWebPage", "Fonts", "Font context sub-menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagBold()
-{
- return QCoreApplication::translate("QWebPage", "Bold", "Bold context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagItalic()
-{
- return QCoreApplication::translate("QWebPage", "Italic", "Italic context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagUnderline()
-{
- return QCoreApplication::translate("QWebPage", "Underline", "Underline context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagOutline()
-{
- return QCoreApplication::translate("QWebPage", "Outline", "Outline context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagWritingDirectionMenu()
-{
- return QCoreApplication::translate("QWebPage", "Direction", "Writing direction context sub-menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagTextDirectionMenu()
-{
- return QCoreApplication::translate("QWebPage", "Text Direction", "Text direction context sub-menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagDefaultDirection()
-{
- return QCoreApplication::translate("QWebPage", "Default", "Default writing direction context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagLeftToRight()
-{
- return QCoreApplication::translate("QWebPage", "Left to Right", "Left to Right context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagRightToLeft()
-{
- return QCoreApplication::translate("QWebPage", "Right to Left", "Right to Left context menu item");
-}
-
-String PlatformStrategiesQt::contextMenuItemTagInspectElement()
-{
- return QCoreApplication::translate("QWebPage", "Inspect", "Inspect Element context menu item");
-}
-
-String PlatformStrategiesQt::searchMenuNoRecentSearchesText()
-{
- return QCoreApplication::translate("QWebPage", "No recent searches", "Label for only item in menu that appears when clicking on the search field image, when no searches have been performed");
-}
-
-String PlatformStrategiesQt::searchMenuRecentSearchesText()
-{
- return QCoreApplication::translate("QWebPage", "Recent searches", "label for first item in the menu that appears when clicking on the search field image, used as embedded menu title");
-}
-
-String PlatformStrategiesQt::searchMenuClearRecentSearchesText()
-{
- return QCoreApplication::translate("QWebPage", "Clear recent searches", "menu item in Recent Searches menu that empties menu's contents");
-}
-
-String PlatformStrategiesQt::AXWebAreaText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXLinkText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXListMarkerText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXImageMapText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXHeadingText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXDefinitionListTermText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXDefinitionListDefinitionText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXButtonActionVerb()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXRadioButtonActionVerb()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXTextFieldActionVerb()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXCheckedCheckBoxActionVerb()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXUncheckedCheckBoxActionVerb()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXMenuListActionVerb()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXMenuListPopupActionVerb()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::AXLinkActionVerb()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::missingPluginText()
-{
- return QCoreApplication::translate("QWebPage", "Missing Plug-in", "Label text to be used when a plug-in is missing");
-}
-
-String PlatformStrategiesQt::crashedPluginText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::multipleFileUploadText(unsigned)
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::unknownFileSizeText()
-{
- return QCoreApplication::translate("QWebPage", "Unknown", "Unknown filesize FTP directory listing item");
-}
-
-String PlatformStrategiesQt::imageTitle(const String& filename, const IntSize& size)
-{
- return QCoreApplication::translate("QWebPage", "%1 (%2x%3 pixels)", "Title string for images").arg(filename).arg(size.width()).arg(size.height());
-}
-
-String PlatformStrategiesQt::mediaElementLoadingStateText()
-{
- return QCoreApplication::translate("QWebPage", "Loading...", "Media controller status message when the media is loading");
-}
-
-String PlatformStrategiesQt::mediaElementLiveBroadcastStateText()
-{
- return QCoreApplication::translate("QWebPage", "Live Broadcast", "Media controller status message when watching a live broadcast");
-}
-
-#if ENABLE(VIDEO)
-
-String PlatformStrategiesQt::localizedMediaControlElementString(const String& name)
-{
- if (name == "AudioElement")
- return QCoreApplication::translate("QWebPage", "Audio Element", "Media controller element");
- if (name == "VideoElement")
- return QCoreApplication::translate("QWebPage", "Video Element", "Media controller element");
- if (name == "MuteButton")
- return QCoreApplication::translate("QWebPage", "Mute Button", "Media controller element");
- if (name == "UnMuteButton")
- return QCoreApplication::translate("QWebPage", "Unmute Button", "Media controller element");
- if (name == "PlayButton")
- return QCoreApplication::translate("QWebPage", "Play Button", "Media controller element");
- if (name == "PauseButton")
- return QCoreApplication::translate("QWebPage", "Pause Button", "Media controller element");
- if (name == "Slider")
- return QCoreApplication::translate("QWebPage", "Slider", "Media controller element");
- if (name == "SliderThumb")
- return QCoreApplication::translate("QWebPage", "Slider Thumb", "Media controller element");
- if (name == "RewindButton")
- return QCoreApplication::translate("QWebPage", "Rewind Button", "Media controller element");
- if (name == "ReturnToRealtimeButton")
- return QCoreApplication::translate("QWebPage", "Return to Real-time Button", "Media controller element");
- if (name == "CurrentTimeDisplay")
- return QCoreApplication::translate("QWebPage", "Elapsed Time", "Media controller element");
- if (name == "TimeRemainingDisplay")
- return QCoreApplication::translate("QWebPage", "Remaining Time", "Media controller element");
- if (name == "StatusDisplay")
- return QCoreApplication::translate("QWebPage", "Status Display", "Media controller element");
- if (name == "FullscreenButton")
- return QCoreApplication::translate("QWebPage", "Fullscreen Button", "Media controller element");
- if (name == "SeekForwardButton")
- return QCoreApplication::translate("QWebPage", "Seek Forward Button", "Media controller element");
- if (name == "SeekBackButton")
- return QCoreApplication::translate("QWebPage", "Seek Back Button", "Media controller element");
-
- return String();
-}
-
-String PlatformStrategiesQt::localizedMediaControlElementHelpText(const String& name)
-{
- if (name == "AudioElement")
- return QCoreApplication::translate("QWebPage", "Audio element playback controls and status display", "Media controller element");
- if (name == "VideoElement")
- return QCoreApplication::translate("QWebPage", "Video element playback controls and status display", "Media controller element");
- if (name == "MuteButton")
- return QCoreApplication::translate("QWebPage", "Mute audio tracks", "Media controller element");
- if (name == "UnMuteButton")
- return QCoreApplication::translate("QWebPage", "Unmute audio tracks", "Media controller element");
- if (name == "PlayButton")
- return QCoreApplication::translate("QWebPage", "Begin playback", "Media controller element");
- if (name == "PauseButton")
- return QCoreApplication::translate("QWebPage", "Pause playback", "Media controller element");
- if (name == "Slider")
- return QCoreApplication::translate("QWebPage", "Movie time scrubber", "Media controller element");
- if (name == "SliderThumb")
- return QCoreApplication::translate("QWebPage", "Movie time scrubber thumb", "Media controller element");
- if (name == "RewindButton")
- return QCoreApplication::translate("QWebPage", "Rewind movie", "Media controller element");
- if (name == "ReturnToRealtimeButton")
- return QCoreApplication::translate("QWebPage", "Return streaming movie to real-time", "Media controller element");
- if (name == "CurrentTimeDisplay")
- return QCoreApplication::translate("QWebPage", "Current movie time", "Media controller element");
- if (name == "TimeRemainingDisplay")
- return QCoreApplication::translate("QWebPage", "Remaining movie time", "Media controller element");
- if (name == "StatusDisplay")
- return QCoreApplication::translate("QWebPage", "Current movie status", "Media controller element");
- if (name == "FullscreenButton")
- return QCoreApplication::translate("QWebPage", "Play movie in full-screen mode", "Media controller element");
- if (name == "SeekForwardButton")
- return QCoreApplication::translate("QWebPage", "Seek quickly back", "Media controller element");
- if (name == "SeekBackButton")
- return QCoreApplication::translate("QWebPage", "Seek quickly forward", "Media controller element");
-
- ASSERT_NOT_REACHED();
- return String();
-}
-
-String PlatformStrategiesQt::localizedMediaTimeDescription(float time)
-{
- if (!isfinite(time))
- return QCoreApplication::translate("QWebPage", "Indefinite time", "Media time description");
-
- int seconds = (int)fabsf(time);
- int days = seconds / (60 * 60 * 24);
- int hours = seconds / (60 * 60);
- int minutes = (seconds / 60) % 60;
- seconds %= 60;
-
- if (days)
- return QCoreApplication::translate("QWebPage", "%1 days %2 hours %3 minutes %4 seconds", "Media time description").arg(days).arg(hours).arg(minutes).arg(seconds);
-
- if (hours)
- return QCoreApplication::translate("QWebPage", "%1 hours %2 minutes %3 seconds", "Media time description").arg(hours).arg(minutes).arg(seconds);
-
- if (minutes)
- return QCoreApplication::translate("QWebPage", "%1 minutes %2 seconds", "Media time description").arg(minutes).arg(seconds);
-
- return QCoreApplication::translate("QWebPage", "%1 seconds", "Media time description").arg(seconds);
-}
-
-#else // ENABLE(VIDEO)
-// FIXME: #if ENABLE(VIDEO) should be in the base class
-
-String PlatformStrategiesQt::localizedMediaControlElementString(const String& name)
-{
- return String();
-}
-
-String PlatformStrategiesQt::localizedMediaControlElementHelpText(const String& name)
-{
- return String();
-}
-
-String PlatformStrategiesQt::localizedMediaTimeDescription(float time)
-{
- return String();
-}
-
-#endif // ENABLE(VIDEO)
-
-
-String PlatformStrategiesQt::validationMessageValueMissingText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::validationMessageTypeMismatchText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::validationMessagePatternMismatchText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::validationMessageTooLongText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::validationMessageRangeUnderflowText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::validationMessageRangeOverflowText()
-{
- notImplemented();
- return String();
-}
-
-String PlatformStrategiesQt::validationMessageStepMismatchText()
-{
- notImplemented();
- return String();
-}
-
-
// VisitedLinkStrategy
bool PlatformStrategiesQt::isLinkVisited(Page* page, LinkHash hash, const KURL& baseURL, const AtomicString& attributeURL)
/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
+ * Copyright (C) 2010, 2012 Apple Inc. All rights reserved.
* Copyright (C) 2010 INdT - Instituto Nokia de Tecnologia
* Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
*
#define PlatformStrategiesQt_h
#include <CookiesStrategy.h>
-#include <LocalizationStrategy.h>
#include <PlatformStrategies.h>
#include <PluginStrategy.h>
#include <VisitedLinkStrategy.h>
class PasteboardStrategy;
}
-class PlatformStrategiesQt : public WebCore::PlatformStrategies, private WebCore::CookiesStrategy, private WebCore::PluginStrategy, private WebCore::LocalizationStrategy, private WebCore::VisitedLinkStrategy {
+class PlatformStrategiesQt : public WebCore::PlatformStrategies, private WebCore::CookiesStrategy, private WebCore::PluginStrategy, private WebCore::VisitedLinkStrategy {
public:
static void initialize();
// WebCore::PlatformStrategies
virtual WebCore::CookiesStrategy* createCookiesStrategy();
virtual WebCore::PluginStrategy* createPluginStrategy();
- virtual WebCore::LocalizationStrategy* createLocalizationStrategy();
virtual WebCore::VisitedLinkStrategy* createVisitedLinkStrategy();
virtual WebCore::PasteboardStrategy* createPasteboardStrategy();
virtual void refreshPlugins();
virtual void getPluginInfo(const WebCore::Page*, Vector<WebCore::PluginInfo>&);
- // WebCore::LocalizationStrategy
- virtual WTF::String inputElementAltText();
- virtual WTF::String resetButtonDefaultLabel();
- virtual WTF::String searchableIndexIntroduction();
- virtual WTF::String submitButtonDefaultLabel();
- virtual WTF::String fileButtonChooseFileLabel();
- virtual WTF::String fileButtonChooseMultipleFilesLabel();
- virtual WTF::String fileButtonNoFileSelectedLabel();
- virtual WTF::String fileButtonNoFilesSelectedLabel();
- virtual WTF::String defaultDetailsSummaryText();
- virtual WTF::String contextMenuItemTagOpenLinkInNewWindow();
- virtual WTF::String contextMenuItemTagDownloadLinkToDisk();
- virtual WTF::String contextMenuItemTagCopyLinkToClipboard();
- virtual WTF::String contextMenuItemTagOpenImageInNewWindow();
- virtual WTF::String contextMenuItemTagDownloadImageToDisk();
- virtual WTF::String contextMenuItemTagCopyImageToClipboard();
- virtual WTF::String contextMenuItemTagCopyImageUrlToClipboard();
- virtual WTF::String contextMenuItemTagOpenFrameInNewWindow();
- virtual WTF::String contextMenuItemTagCopy();
- virtual WTF::String contextMenuItemTagGoBack();
- virtual WTF::String contextMenuItemTagGoForward();
- virtual WTF::String contextMenuItemTagStop();
- virtual WTF::String contextMenuItemTagReload();
- virtual WTF::String contextMenuItemTagCut();
- virtual WTF::String contextMenuItemTagPaste();
- virtual WTF::String contextMenuItemTagSelectAll();
- virtual WTF::String contextMenuItemTagNoGuessesFound();
- virtual WTF::String contextMenuItemTagIgnoreSpelling();
- virtual WTF::String contextMenuItemTagLearnSpelling();
- virtual WTF::String contextMenuItemTagSearchWeb();
- virtual WTF::String contextMenuItemTagLookUpInDictionary(const String&);
- virtual WTF::String contextMenuItemTagOpenLink();
- virtual WTF::String contextMenuItemTagIgnoreGrammar();
- virtual WTF::String contextMenuItemTagSpellingMenu();
- virtual WTF::String contextMenuItemTagShowSpellingPanel(bool show);
- virtual WTF::String contextMenuItemTagCheckSpelling();
- virtual WTF::String contextMenuItemTagCheckSpellingWhileTyping();
- virtual WTF::String contextMenuItemTagCheckGrammarWithSpelling();
- virtual WTF::String contextMenuItemTagFontMenu();
- virtual WTF::String contextMenuItemTagBold();
- virtual WTF::String contextMenuItemTagItalic();
- virtual WTF::String contextMenuItemTagUnderline();
- virtual WTF::String contextMenuItemTagOutline();
- virtual WTF::String contextMenuItemTagWritingDirectionMenu();
- virtual WTF::String contextMenuItemTagTextDirectionMenu();
- virtual WTF::String contextMenuItemTagDefaultDirection();
- virtual WTF::String contextMenuItemTagLeftToRight();
- virtual WTF::String contextMenuItemTagRightToLeft();
- virtual WTF::String contextMenuItemTagInspectElement();
- virtual WTF::String contextMenuItemTagOpenVideoInNewWindow();
- virtual WTF::String contextMenuItemTagOpenAudioInNewWindow();
- virtual WTF::String contextMenuItemTagCopyVideoLinkToClipboard();
- virtual WTF::String contextMenuItemTagCopyAudioLinkToClipboard();
- virtual WTF::String contextMenuItemTagToggleMediaControls();
- virtual WTF::String contextMenuItemTagToggleMediaLoop();
- virtual WTF::String contextMenuItemTagEnterVideoFullscreen();
- virtual WTF::String contextMenuItemTagMediaPlay();
- virtual WTF::String contextMenuItemTagMediaPause();
- virtual WTF::String contextMenuItemTagMediaMute();
- virtual WTF::String searchMenuNoRecentSearchesText();
- virtual WTF::String searchMenuRecentSearchesText();
- virtual WTF::String searchMenuClearRecentSearchesText();
- virtual WTF::String AXWebAreaText();
- virtual WTF::String AXLinkText();
- virtual WTF::String AXListMarkerText();
- virtual WTF::String AXImageMapText();
- virtual WTF::String AXHeadingText();
- virtual WTF::String AXDefinitionListTermText();
- virtual WTF::String AXDefinitionListDefinitionText();
- virtual WTF::String AXButtonActionVerb();
- virtual WTF::String AXRadioButtonActionVerb();
- virtual WTF::String AXTextFieldActionVerb();
- virtual WTF::String AXCheckedCheckBoxActionVerb();
- virtual WTF::String AXUncheckedCheckBoxActionVerb();
- virtual WTF::String AXMenuListActionVerb();
- virtual WTF::String AXMenuListPopupActionVerb();
- virtual WTF::String AXLinkActionVerb();
- virtual WTF::String missingPluginText();
- virtual WTF::String crashedPluginText();
- virtual WTF::String multipleFileUploadText(unsigned numberOfFiles);
- virtual WTF::String unknownFileSizeText();
- virtual WTF::String imageTitle(const WTF::String& filename, const WebCore::IntSize&);
- virtual WTF::String mediaElementLoadingStateText();
- virtual WTF::String mediaElementLiveBroadcastStateText();
- virtual WTF::String localizedMediaControlElementString(const WTF::String&);
- virtual WTF::String localizedMediaControlElementHelpText(const WTF::String&);
- virtual WTF::String localizedMediaTimeDescription(float);
- virtual WTF::String validationMessageValueMissingText();
- virtual WTF::String validationMessageTypeMismatchText();
- virtual WTF::String validationMessagePatternMismatchText();
- virtual WTF::String validationMessageTooLongText();
- virtual WTF::String validationMessageRangeUnderflowText();
- virtual WTF::String validationMessageRangeOverflowText();
- virtual WTF::String validationMessageStepMismatchText();
-
// WebCore::VisitedLinkStrategy
virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash, const WebCore::KURL& baseURL, const WTF::AtomicString& attributeURL);
virtual void addVisitedLink(WebCore::Page*, WebCore::LinkHash);
+2012-02-20 Benjamin Poulain <benjamin@webkit.org>
+
+ Get rid of the LocalizationStrategy
+ https://bugs.webkit.org/show_bug.cgi?id=78324
+
+ Reviewed by Sam Weinig.
+
+ Remove a useless #include of LocalizationStrategy.h.
+
+ * WebCoreSupport/PlatformStrategiesWinCE.h:
+
2012-02-15 Patrick Gansterer <paroga@webkit.org>
Unreviewed WinCE build fix after r107606.
#define PlatformStrategiesWinCE_h
#include "CookiesStrategy.h"
-#include "LocalizationStrategy.h"
#include "PlatformStrategies.h"
#include "PluginStrategy.h"
#include "VisitedLinkStrategy.h"