[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: Unextracted plural tr() message in Marble (4.10)
From:       Albert Astals Cid <aacid () kde ! org>
Date:       2012-11-12 20:05:09
Message-ID: 1787247.fzcqJzsyFS () xps
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic