[Kget] GenericTransferObserver aka TransferFinishedObserver

Lukas Appelhans l.appelhans at gmx.de
Sun Feb 3 21:35:00 CET 2008


Am Samstag 02 Februar 2008 14:59:15 schrieb Pino Toscano:
> Alle domenica 03 febbraio 2008, Lukas Appelhans ha scritto:
> > +static const QString KGET_QUIT_MESSAGE_TITLE = i18n("Quit KGet");
> > +static const QString KGET_QUIT_MESSAGE = i18n("KGet quits now because
> > all downloads have been completed.");
>
> Please move them as private in the .cpp, and use:
> const char* foobar = I18N_NOOP("foo bar");
> // ...
> // later in the code
> QString foo_translated = i18n(foobar);
>
> otherwise they cannot be properly translated.
Mmh the result of that were compile errors... :(
Now I have moved the message directly to the KPassivePopup initialization, 
they're the same, so translators don't have to translate it twice :)

Lukas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: observer.diff
Type: text/x-diff
Size: 7340 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kget/attachments/20080203/8a79e99a/attachment.bin 


More information about the Kget mailing list