Bug 171229

Summary: [GTK] Missing plural strings
Product: WebKit Reporter: Piotr Drąg <piotrdrag>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply
Priority: P2 Keywords: Gtk
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Piotr Drąg 2017-04-24 09:59:47 PDT
Following strings from LocalizedStrings.cpp need proper plurals handling, similarly to what "Use at least one character"/"Use at least %d characters" and "Use no more than one character"/"Use no more than %d characters" from the same file have:

"%d files"
"%s %d×%d pixels"
"%1$d days %2$d hours %3$d minutes %4$d seconds"
"%1$d hours %2$d minutes %3$d seconds"
"%1$d minutes %2$d seconds"
"%1$d seconds"
"Use at least %d characters"
"Use no more than %d characters"

The time strings probably need to be split to pluralize correctly.

Some general info on the topic: https://wiki.gnome.org/TranslationProject/DevGuidelines/Plurals
Comment 1 Piotr Drąg 2017-04-24 10:43:00 PDT
(Actually, the strings already using ngettext are in LocalizedStringsGtk.cpp, not LocalizedStrings.cpp.)