Hi! Martin Ereth wrote:
> The problem is, that the .cpp and .h files of the ui's aren't there. But they should. Do you use the default build system (scons)? > I found out he > following: > I can use the uic-tool to generate these files. Fortunately there is an > option called > -tr <func>, which takes the parameter to set for i18n. Good to know. > So I need to issue: > $ uic dvbcutbase.ui > dvbcutbase.h > $ uic -impl dvbcutbase.h -tr _ dvbcutbase.ui > dvbcutbase.cpp That file should be named "uic_dvbcutbase.cpp". > Then I have the correct files with _() instead of tr() surrounding every > string. > After that the following should extract the strings > $ xgettext --qt --keyword=tr --flag=tr:1:pass-c-format > --flag=tr:1:pass-qt-format > --keyword=translate:2 --flag=translate:2:pass-c-format > --flag=translate:2:pass-qt-format --keyword=QT_TR_NOOP > --flag=QT_TR_NOOP:1:pass-c-format --flag=QT_TR_NOOP:1:pass-qt-format > --keyword=QT_TRANSLATE_NOOP:2 --flag=QT_TRANSLATE_NOOP:2:pass-c-format > --flag=QT_TRANSLATE_NOOP:2:pass-qt-format --keyword=_ --flag=_:1:pass-c-format > --flag=_:1:pass-qt-format --keyword=N_ --flag=N_:1:pass-c-format > --flag=N_:1:pass-qt-format -o dvbcut.po *.cpp I'll try that myself. > But I get 67 strings. That is far to less. Probably because you only get the menu labels. > How do you normally build the .cpp and .h files from the .ui-files? Normally, scons does that automatically. Don't ask how (or ask Sven). -- Michael "Tired" Riepe <[EMAIL PROTECTED]> X-Tired: Each morning I get up I die a little ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel