Bug 197014

Summary: [iOS] Support multiple file selection in UIDocumentPickerViewController
Product: WebKit Reporter: Andy Estes <aestes>
Component: New BugsAssignee: Andy Estes <aestes>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, ap, bdakin, cdumez, commit-queue, ggaren, thorton, timothy, webkit-bug-importer, wenson_hsieh, yevseytsev
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Andy Estes
Reported 2019-04-17 09:28:21 PDT
[iOS] Support multiple file selection in UIDocumentPickerViewController
Attachments
Patch (5.50 KB, patch)
2019-04-17 09:34 PDT, Andy Estes
no flags
Patch (5.27 KB, patch)
2019-04-17 13:16 PDT, Andy Estes
no flags
Andy Estes
Comment 1 2019-04-17 09:30:04 PDT
Andy Estes
Comment 2 2019-04-17 09:34:20 PDT
Tim Horton
Comment 3 2019-04-17 12:20:52 PDT
Comment on attachment 367634 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=367634&action=review > Source/WebCore/en.lproj/Localizable.strings:68 > +/* label next to file upload control; parameter is the number of files when greater than one */ > +"%lu files" = "%lu files"; Why is the string up two lines not good enough? :D Or replace that one with this one? I don't know what types you need.
Andy Estes
Comment 4 2019-04-17 13:04:34 PDT
Comment on attachment 367634 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=367634&action=review >> Source/WebCore/en.lproj/Localizable.strings:68 >> +"%lu files" = "%lu files"; > > Why is the string up two lines not good enough? :D Or replace that one with this one? I don't know what types you need. lol, will use the other one via the handy multipleFileUploadText() in LocalizedStrings.h :) Thanks for reviewing!
Andy Estes
Comment 5 2019-04-17 13:16:55 PDT
WebKit Commit Bot
Comment 6 2019-04-17 15:41:14 PDT
Comment on attachment 367669 [details] Patch Clearing flags on attachment: 367669 Committed r244404: <https://trac.webkit.org/changeset/244404>
WebKit Commit Bot
Comment 7 2019-04-17 15:41:16 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 8 2019-04-18 09:39:48 PDT
> > Source/WebCore/en.lproj/Localizable.strings:68 > > +/* label next to file upload control; parameter is the number of files when greater than one */ > > +"%lu files" = "%lu files"; > > Why is the string up two lines not good enough? :D Or replace that one with > this one? I don't know what types you need. It actually isn't good at all! Pluralization doesn't work like "1 vs. any other number" in many languages, see <http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html>. Foundation has proper support for this. I checked the Russian localization in shipping WebKit for macOS, and it actually uses the hack that translators apply when software lacks full localization support - it's translated to an equivalent of "Files: %d".
Tim Horton
Comment 9 2019-04-18 10:48:19 PDT
(In reply to Alexey Proskuryakov from comment #8) > > > Source/WebCore/en.lproj/Localizable.strings:68 > > > +/* label next to file upload control; parameter is the number of files when greater than one */ > > > +"%lu files" = "%lu files"; > > > > Why is the string up two lines not good enough? :D Or replace that one with > > this one? I don't know what types you need. > > It actually isn't good at all! > > Pluralization doesn't work like "1 vs. any other number" in many languages, > see > <http://www.unicode.org/cldr/charts/latest/supplemental/ > language_plural_rules.html>. Foundation has proper support for this. > > I checked the Russian localization in shipping WebKit for macOS, and it > actually uses the hack that translators apply when software lacks full > localization support - it's translated to an equivalent of "Files: %d". I was going to comment about this, but I don't think WebKit has a stringsdict yet? And didn't want to force bringing that up on Andy :)
yevseytsev
Comment 10 2019-04-18 13:44:49 PDT
Alexey Proskuryakov
Comment 11 2019-05-09 15:54:56 PDT
> I was going to comment about this, but I don't think WebKit has a > stringsdict yet? And didn't want to force bringing that up on Andy :) Actually it does, Source/WebCore/en.lproj/Localizable.stringsdict. Since all localization is done through WebCore, that's the one to use.
Note You need to log in before you can comment on or make changes to this bug.