⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 102086 in webkit


Ignore:
Timestamp:
Dec 5, 2011, 7:48:35 PM (15 years ago)
Author:
benjamin@webkit.org
Message:

Upstream htmlSelectMultipleItems needed for <select multiple> by iOS
https://bugs.webkit.org/show_bug.cgi?id=73734

Patch by Benjamin Poulain <bpoulain@apple.com> on 2011-12-05
Reviewed by David Kilzer.

  • platform/DefaultLocalizationStrategy.cpp:

(WebCore::DefaultLocalizationStrategy::htmlSelectMultipleItems):

  • platform/DefaultLocalizationStrategy.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r102085 r102086  
     12011-12-05  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        Upstream htmlSelectMultipleItems needed for <select multiple> by iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=73734
     5
     6        Reviewed by David Kilzer.
     7
     8        * platform/DefaultLocalizationStrategy.cpp:
     9        (WebCore::DefaultLocalizationStrategy::htmlSelectMultipleItems):
     10        * platform/DefaultLocalizationStrategy.h:
     11
    1122011-12-05  Darin Adler  <darin@apple.com>
    213
  • trunk/Source/WebCore/platform/DefaultLocalizationStrategy.cpp

    r99083 r102086  
    768768}
    769769
    770 #endif
     770#if PLATFORM(IOS)
     771String DefaultLocalizationStrategy::htmlSelectMultipleItems(int count)
     772{
     773    return formatLocalizedString(WEB_UI_STRING("%d Items", "Present the number of selected <option> items in a <select multiple> element (iOS only)"), count);
     774}
     775#endif // PLATFORM(IOS)
     776#endif // PLATFORM(MAC)
    771777
    772778String DefaultLocalizationStrategy::imageTitle(const String& filename, const IntSize& size)
  • trunk/Source/WebCore/platform/DefaultLocalizationStrategy.h

    r99083 r102086  
    170170    virtual String keygenMenuItem2048();
    171171    virtual String keygenKeychainItemName(const String& host);
    172 #endif
     172#if PLATFORM(IOS)
     173    virtual String htmlSelectMultipleItems(int);
     174#endif // PLATFORM(IOS)
     175#endif // PLATFORM(MAC)
    173176    virtual String imageTitle(const String& filename, const IntSize&);
    174177    virtual String mediaElementLoadingStateText();
Note: See TracChangeset for help on using the changeset viewer.