title: How to make QTextToSpeech say "%n error(s)" correctly in different languages?
body: <p>I'm using the Qt Translator's handling of the diversity of plural cases in different languages. In particular, in Russian there are singular, dual and plural cases (that's what Qt Linguist calls them), and I can use</p>
  
  <pre><code>tr("%n error(s)", "", errorCount)
  </code></pre>
  
  <p>to get the correct translation of e.g.</p>
  
  <pre class="lang-none prettyprint-override"><code>1 error  → 1 ошибка
  3 errors → 3 ошибки
  6 errors → 6 ошибок
  </code></pre>
  
  <p>That's fine when I want to present the text as <em>text</em> — e.g. in a message box. But if I try making <code>QTextToSpeech</code> pronounce this (I tried it by pasting the text into Qt's <code>hello_speak</code> example), I get bad results, because e.g. "1 error" is pronounced as "один ошибка" instead of "одна ошибка" (incorrect agreement by gender: <em>ошибка</em> is feminine, <em>одна</em> is feminine, but <em>один</em> is masculine).</p>
  
  <p>I suppose it's not currently possible for <code>QTextToSpeech</code> engines to find out that the number should somehow agree with several words following or preceding it, so a solution should involve transformation of the textual form to something a speech engine could unambiguously pronounce correctly (i.e. feed "one error" instead of "1 error" to <code>QTextToSpeech</code>). But I'd like to fix it in some generic way, so that I didn't have to manually create a "number-to-text" converter for each target language.</p>
  
  <p>How can I fix this (with Qt facilities, if possible)?</p>