[PATCH 2/2] Fix plurals translation

Jan Mulder jlmulder at xs4all.nl
Thu Oct 29 14:18:14 PDT 2015


On 29-10-15 20:33, Dirk Hohndel wrote:
> On Thu, Oct 29, 2015 at 12:17:05PM -0700, Dirk Hohndel wrote:
>
>      <message numerus="yes">
>          <location filename="../qthelper.cpp" line="1077"/>
>          <source>(%n dive(s))</source>
>          <translation type="unfinished">
>              <numerusform></numerusform>
>          </translation>
>      </message>
>
> and clearly transifex does not like this. Some googling seems to imply
> that transifex is aware of the bug and promised a fix more than a year ago
> (and then instead just shut down their forums - nice). But I also found a
> workaround and it appears to do the trick. Now I just need to remember to
> manually fix our .ts file before I send it - or somehow automate the
> workaround (which is to duplicate the "<numerusform></numerusform>" line)

I'm not realy sure what you mean here with "workaround". I just 
translated Dutch, and the example above results in the following .ts 
fragment:

<message numerus="yes">
         <location filename="../qthelper.cpp" line="1077"/>
         <source>(%n dive(s))</source>
         <translation><numerusform>(%n duik)</numerusform>
         <numerusform>(%n duiken)</numerusform></translation>
   </message>

with (after applying Sergey's patch 2/2) results exactly in the desired 
behaviour: 1 dive, 2 dives.

The only thing I do not like is that Transiflex warns about different 
number of parenthesis between original and translation.

best,

--jan



More information about the subsurface mailing list