[Bug 188693] New: Scripty does not support Qt plural messages.

Andrius Štikonas stikonas at gmail.com
Thu Apr 2 22:48:47 BST 2009


https://bugs.kde.org/show_bug.cgi?id=188693

           Summary: Scripty does not support Qt plural messages.
           Product: kde
           Version: unspecified
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: stikonas at gmail.com


Version:           kde (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

Please enable Qt plurals support in scripty. Currently it ignores such strings
thus making it impossible to use plural forms in some KDE applications.
QObject::tr is used in some KDE applications such as marble, kalzium and step.

More info:
http://doc.trolltech.com/4.2/qobject.html#tr
http://groups.google.com/group/gnu.utils.bug/browse_thread/thread/92196e0da29c4aaa

Expected behaviour:

$ cat foo.cc
  QString msg = tr("%n bird(s)", "", 10); // plural call
  QString msg = tr("%1 bird(s)", "").arg(10); // ordinary call
  QString msg = tr("%1 eagle(s)").arg(10); // ordinary call
$ xgettext --omit-header --no-location \
    --qt --keyword=tr:1,1t --keyword=tr:1,2c,2t --keyword=tr:1,1,2c,3t \
    -o - foo.cc
#, qt-plural-format
msgctxt ""
msgid "%n bird(s)"
msgid_plural "%n bird(s)"
msgstr[0] ""
msgstr[1] ""

#, qt-format
msgctxt ""
msgid "%1 bird(s)"
msgstr ""

#, qt-format
msgid "%1 eagle(s)"
msgstr ""

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list