[iOS] <input type=file> label should be specified using plural rules
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 2 Apr 2017 04:53:39 +0000 (04:53 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 2 Apr 2017 04:53:39 +0000 (04:53 +0000)
commit9c9002ee287d307c0814032266c0700b8322ac4c
tree2dbf0415a94c53ac4292f66bb1b1813fd1097e15
parent916f0c8a631c002f917b7a6ac4261d9146992d10
[iOS] <input type=file> label should be specified using plural rules
https://bugs.webkit.org/show_bug.cgi?id=170388

Reviewed by Alexey Proskuryakov.

Source/WebCore:

* English.lproj/Localizable.strings: Updated using update-webkit-localizable-strings.

* English.lproj/Localizable.stringsdict: Added an entry for the new key "%lu photo(s) and
  %lu video(s)", with plural rules covering all the different combinations in English.
  Other localizations may specify additional combinations as needed.

Source/WebKit2:

* UIProcess/ios/forms/WKFileUploadPanel.mm:
(-[WKFileUploadPanel _processMediaInfoDictionaries:atIndex:processedResults:processedImageCount:processedVideoCount:successBlock:failureBlock:]):
  Instead of calling -_displayStringForPhotos:videos:, use
  +[NSString localizedStringWithFormat:] with the new format string "%lu photo(s) and
  %lu video(s)" for which there are plural rules.
(-[WKFileUploadPanel _displayStringForPhotos:videos:]): Deleted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/English.lproj/Localizable.strings
Source/WebCore/English.lproj/Localizable.stringsdict
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/ios/forms/WKFileUploadPanel.mm