It works like this:

import QtQuick 2.4
import Ubuntu.Components 1.3

Text {
    text: i18n.tr("singular: %1", "plural: %1", 1).arg("1") + "<br>" +
          i18n.tr("singular: %1", "plural: %1", 2).arg(2)
}


I will update documentation.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1184810

Title:
  [i18n] Confused about using plural forms

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1184810/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to