title: Qt qsTr() handling plurals
body: <p>Im developing and applicacion and want to translate some text, the problem is when i want to handle in QML the plurals. </p>
  
  <p>In c++, the way to handle the plurals is as simple as: </p>
  
  <pre><code>int n = messages.count();
  showMessage(tr("%n message(s) saved", 0, n));
  </code></pre>
  
  <p>and will translate without problems</p>
  
  <blockquote>
    <p>source:
    <a href="https://doc.qt.io/qt-5/i18n-source-translation.html#handling-plurals" rel="nofollow noreferrer">https://doc.qt.io/qt-5/i18n-source-translation.html#handling-plurals</a></p>
  </blockquote>
  
  <p>When I try to do the same with QML doesnt work. After carefull review of some literature, and some comments I found out a "solution", that it's actually people reporting a bug.</p>
  
  <pre><code>var second = qsTr("%b radios", "0", map.radio).arg(map.radio)
  </code></pre>
  
  <blockquote>
    <p>source:<a href="https://bugreports.qt.io/browse/QTBUG-11579" rel="nofollow noreferrer">https://bugreports.qt.io/browse/QTBUG-11579</a></p>
  </blockquote>
  
  <p>When I lupdate, in the QtLinguistic it <strong>appears the two fields for plural and singular</strong> form, but in the application does not work. </p>
  
  <p>I tried several modifications such as: </p>
  
  <pre><code>    var a = map.totalSongs;
      var first = qsTr("%a songs", "0", parseInt(a))
      var second = qsTr("%b radios", "0", map.radio)
  
      var first = qsTr("%a songs", "0", parseInt(a)).arg(map.totalSongs)
      var second = qsTr("%b radios", "0", map.radio).arg(map.radio)
  
      var first = qsTr("%a songs", "0", a)
      var second = qsTr("%b radios", "0", b)
  </code></pre>
  
  <p>In QtLinguistic im writting the translation: </p>
  
  <pre><code>%b radio - Singular
  %b radios - Plural
  </code></pre>
  
  <p>Any modification fails to work. </p>
  
  <p>Can some one tell me how to use qstr() to handle the plurals? </p>
  
  <p>Other question related: 
  Lets say I want to have a text "%1 songs - %2 radios", where in spanish should result in</p>
  
  <pre><code>//As example
  if(%1 = 10 &amp;&amp; %2 = 10) =&gt; "10 canciones -  radios"
  else if(%1 = 1 &amp;&amp; %2 = 10) =&gt; "1 cancion - 10 radios"
  else if(%1 = 10 &amp;&amp; %2 = 1) =&gt; "10 canciones - 1 radio"
  </code></pre>
  
  <p>How to do it? I think either qstr() or tr() can not handle this situation., but just want to verify it with you guys :D</p>
  
  <p>Thanks in advance</p>