[Bug 71003] Cannot translate project due to srcdir != builddir.

Frans Pop aragorn at tiscali.nl
Sun Jan 25 02:18:05 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=71003      




------- Additional Comments From aragorn at tiscali.nl  2004-01-25 02:17 -------
Created an attachment (id=4339)
 --> (http://bugs.kde.org/attachment.cgi?id=4339&action=view)
Patch for translation problems

Hi. Sorry for my late reaction to the patch, but I noticed the same problem as
Pupeno reported and had little time until now to properly test it.

The good news: attached is a patch that fixes both 'Project/Add Translation'
and 'Build/Make Messages & Merge'.
The patch has been tested on Debian Woody with KDE 3.1.4 and the kdevelop
Debian source package from http://people.debian.org/~njordan/stable
(kdevelop3_3.0-01cvs from CVS 06-01-2004) using the "Simple KDE Application"
project template.

I am not sure it is the best way to fix both, but I hope it will at least give
those who really know what they're doing a pointer in the right direction.
Below I have listed the reasons for the different patches.

1. buildtools/autotools/addtranslationdlg.cpp
Problem here was that a make was called in <projectDir>/po, but when Build
configuration is debug there is no makefile in that directory.
So the make has to be called from <buildDir>/po.
The 'force-reedit' works fine because it changes internally to <projectDir>/po
for most of it's actual work.

2. parts/appwizard/common/kde-Makefile.am
This patch is slightly different from the patch proposed earlier.
'make-messages' has to work in the <projectDir> tree, taking the source from
<projectDir>/src and writing the .pot file to <projectDir>/po.

3. parts/appwizard/common/admin/am_edit
The '$(MAKE) -C po merge' form 'make messages' again needs to work in the
<projectDir>/po directory, merging the .pot file into the .po files.

I had to make one final change to make all this work in Debian and that was to
change the location of the kde.pot file in admin/cvs.sh to
/usr/include/kde/kde.pot (see http://bugs.kde.org/show_bug.cgi?id=71625).
However, this may be a Debian packaging problem, so I am going to close 71625
and report it to bugs.debian.org.

After executing 'Project/Add Translation' and 'Build/Make Messages & Merge'
followed by 'Build/Build Project' the result was a good .gmo file in the
debug/po directory.

Possibly these patches should also be applied in the admin/am_edit and
Makefile.am for kdevelop itself, but I'll leave that to you...

P.S.
I have also tested the patch for http://bugs.kde.org/show_bug.cgi?id=71633.
That works great. Thanks!




More information about the KDevelop-devel mailing list