Re: [DVBCUT-devel] translation of dvbcut
Hi! Martin Ereth wrote: I read that dvbcut may be included at least in SUSE. To support this step it would be great when dvbcut is available in different languages. Yep. But that can't be done in some minutes: At first dvbcut has to be internationalized (i18n) and then it can be localized (l10n). For the first step it is neccessary to add a _() around every string that should be translateable. There have to be some little changes in main.cpp, too. When the strings are marked, a tool (gettext) extracts all the strings, that should be translated in a separate file. (This step can be done in an hour or two.) I'm quite familiar with the i18n process, as far as we're talking about ordinary C/C++ code. Been there, done that. What I *don't* know, on the other hand, is how you can internationalize the Qt stuff. Many texts, in particular all the menu labels, are currently specified inside the .ui files. I have absolutely no idea how to add the _() there. Or if there's any other mechanism. Or if that works with the standard (GNU) gettext. :( [...] Please tell me, whether you like dvbcut to be translatable. [...] Well, yes, of course! I think we already spoke about that here. But I didn't find a solution for the Qt/designer problem yet. I'm not familiar with designer at all (in fact, I usually modify the .ui files with an ordinary text editor). -- 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
Re: [DVBCUT-devel] Changes in r90
Hi! Ralph Glasstetter wrote: Do we need the right one at all? No, of course not... just thought you want to have it because of optical/symetry reasons... ;-) Yes. But there are a lot of semantic problems with it. E.g. what's the correct type to display if the list is empty? Or when the first item is a Stop item? I don't need it,... they should both be the same if inbetween start/stop markers and if not it's IMHO a little confusing to see a different one from the last start/stop marker Exactly. Okay, I removed it. Welcome to r91. -- 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
Re: [DVBCUT-devel] translation of dvbcut
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
Re: [DVBCUT-devel] translation of dvbcut
Hi! Martin Ereth wrote: Yep... the missing files should have been created automatically by moc and/or uil. Is Qt3 installed in one of the standard locations? Hm. It is installed in /usr/qt/3. The standard qmake/uic/... is of qt4. But I was able to build dvbcut at April 6th this year. What bins does dvbcut need? The Qt3 binaries (that is, you probably have to set QTDIR for Qt3). I'm not sure if qmake works at all. -- 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
Re: [DVBCUT-devel] translation of dvbcut
Hi! Martin Ereth wrote: Michael Riepe schrieb: 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 just issue make like described in INSTALL. How should I build it, then? That's the normal way to do it. I have no idea why it fails. On my system, all necessary files are generated. Please do the following: - get a fresh copy from the repository - cd to the main directory - run make 21 | tee make.log - send me the logfile But I get 67 strings. That is far to less. Probably because you only get the menu labels. Yep. I'm, sorry. That is exactly the number of extraxtable strings from the ui-files. The strings in the normal .cpp-files should be marked anytime with _(. I can do that, but I'd like to be able to build it without any changes ... :-) If all else fails, I can do that as well. -- 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
Re: [DVBCUT-devel] translation of dvbcut
Am Mittwoch, 17. Oktober 2007 22:06 schrieb Martin Ereth: Michael Riepe schrieb: 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 just issue make like described in INSTALL. How should I build it, then? That should be ok, since scons is called indirectly from within the Makefile. Actually our Makefile isn't a normal one... instead make you could just call scons directly to build dvbcut! However,... on my system (Suse 10.1) there's also a build problem/bug... I have to delete the directory ffmpeg manually prior to every make-call. Maybe that's also an option for you...? - 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
Re: [DVBCUT-devel] translation of dvbcut
Am Mittwoch, 17. Oktober 2007 22:34 schrieb Michael Riepe: Hi! Ralph Glasstetter wrote: However,... on my system (Suse 10.1) there's also a build problem/bug... I have to delete the directory ffmpeg manually prior to every make-call. While we're talking about it - wasn't there a build issue with older versions of scons? Yes, that's true... I'm using scons-0.96.91! The problem was with some slightly older version (0.93? or 0.95?) and if compiling without libao AFAIR... the effect was that the GUI related files have not been build from the ui's! - 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
Re: [DVBCUT-devel] translation of dvbcut
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Riepe wrote: Martin Ereth wrote: @Michael: Maybe you could start adding the _()? If I find the time... We don't need to do the work twice. Please tell me, when you start with it. Also I'll tell you, when I'll find some time. Martin -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHFuVbE5UqXaCvB8IRAsuiAJ0QJ4lVwpIxJfKcwoyslt1NE/XAagCfeU2O Bxpi5+PEbskTGJ0Qz6QT6m4= =u311 -END PGP SIGNATURE- - 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
Re: [DVBCUT-devel] translation of dvbcut
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ralph Glasstetter schrieb: Am Mittwoch, 17. Oktober 2007 22:34 schrieb Michael Riepe: While we're talking about it - wasn't there a build issue with older versions of scons? Yes, that's true... I'm using scons-0.96.91! The problem was with some slightly older version (0.93? or 0.95?) and if compiling without libao AFAIR... the effect was that the GUI related files have not been build from the ui's! Yeah, that was exactly my problem. I was using scons-0.96.1. libao is installed in version 0.8.6. Trying to build with the older scons, the files from the ui-files didn't get generated. With the new scons (here: 0.97) it works. Martin -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHFuUCE5UqXaCvB8IRAkcWAKCtB3fRG3xBJvdS0pjvQRPku423DACdFUyD GwN5kBiH0LlyNCtxpxit5Jk= =LYJg -END PGP SIGNATURE- - 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