Bug 188693 - Scripty does not support Qt plural messages.
Summary: Scripty does not support Qt plural messages.
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Chusslove Illich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-02 23:48 UTC by Andrius Štikonas
Modified: 2014-10-29 19:41 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrius Štikonas 2009-04-02 23:48:40 UTC
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 ""
Comment 1 Burkhard Lück 2014-10-29 19:16:33 UTC
In 4.14 + master I can not find incorrect plurals like "%1 bird(s)" in translation messages for marble, kalzium and step.

Where do you see this kind of error?
Comment 2 Andrius Štikonas 2014-10-29 19:41:22 UTC
Indeed, I can't see them now. But this bug is 5 years old. They were probably replaced...