[PATCH 2/2] Fix plurals translation
Sergey Starosek
sergey.starosek at gmail.com
Fri Oct 30 03:16:40 PDT 2015
Dirk,
On Thu, Oct 29, 2015 at 10:33 PM, Dirk Hohndel <dirk at hohndel.org> wrote:
>
> The .ts file for those looks like this:
>
> <message numerus="yes">
> <location filename="../qt-ui/modeldelegates.cpp" line="546"/>
> <source>, %n dive(s) here)</source>
> <translation type="unfinished">
> <numerusform></numerusform>
> </translation>
> </message>
>
> <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've update translations/CMakeLists.txt to regenerate .ts files and after
build
I can see following for en_GB locale:
<message numerus="yes">
<location filename="../qt-ui/modeldelegates.cpp" line="546"/>
<source>, %n dive(s) here)</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
For ru_RU locale there're three numerusform elements. Qt version 5.5.0.
Sergey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20151030/3f55c87c/attachment.html>
More information about the subsurface
mailing list