Am Donnerstag, 22. November 2012, 23:31:43 schrieb Jan Kundrát: > It took quite a few hours, but it looks like I've tamed the beast. > > I wanted to follow the way how Marble works, i.e. calling QObject::tr and > converting between the .ts and .po files. This turned out to be a problem > because QObject::tr expects the context to be a name of the class while the > xgettext, as used by Messages.sh, works with file names. I have no idea how > come that Marble's tr() calls work -- when I used the same, nothing would > get translated. > Scripty does not like your message extraction, see ftp://l10n.kde.org/121204.trunk_l10n-kde4.
Using a simple $XGETTEXT_QT `find src/ -name \*.cpp` -o $podir/trojita_common.pot will avoid the duplicated messages make Scripty happy. -- Burkhard Lück
