[Marble-devel] Unextracted plural tr() message in Marble (4.10)
Yuri Chornoivan
yurchor at ukr.net
Tue Nov 13 04:40:43 UTC 2012
Dear Marble developers,
Thanks for your hard work on this beautiful Desktop Globe.
I have sent this message just to ask your help in solving some translation
trouble.
Below is my message into kde-i18n-doc and Albert's answer to it. Is the
proposed solution acceptable? Can you implement it?
Thanks in advance for your answers.
Best regards,
Yuri
El Dilluns, 12 de novembre de 2012, a les 20:23:16, Yuri Chornoivan va
escriure:
> Hi!
> As you might know, Marble has a special system that allows us translate
> its Qt version.
> Regretfully, there might be some shortcomings in this system.
> /src/lib/routing/Routingwidget.cpp:335
> QString const results = tr( "%n placemarks found", "",
> model->rowCount() );
> This string is not extracted and is untranslatable:
> http://dl.dropbox.com/u/55247264/routing-2.png
> Is there any way to make this string translatable?
Not really, extracting it is easy, but someone forgot to make the
QTranslator::translate function that accepts plurals virtual http://qt-
project.org/doc/qt-4.8/qtranslator.html#translate-2
So we can't hijack the tr() call and feed a proper string from the KDE
side.
So i guess you should contact the Marble guys and tell them that maybe it's
better if they just do tr().arg(number).
We loose the different forms per plural but at least it's translatable.
Of course they could go full KDE and take all the goodies but i've lost
hope
on that.
Cheers,
Albert
> Thanks in advance for your answers.
> Best regards,
> Yuri
More information about the Marble-devel
mailing list