Bug 81345

Summary: kdevelop templates and translations
Product: [Applications] kdevelop Reporter: tnagy <tnagy256>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description tnagy 2004-05-11 17:31:56 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

In kdevelop/languages/cpp/app_templates/kxt/src-configure.in.in : "$APPNAMELC" should be replaced by "$APPNAMELC$" and 0.1 by "$VERSION$" (translations won't work without that).

I also think there is a problem in all kde templates, (src-Makefile.am), where the following :
-----------------
messages: rc.cpp
        $(XGETTEXT) *.cpp -o $(podir)/$APPNAMELC$.pot
-----------------

should be replaced by :
-----------------
messages: rc.cpp
        $(EXTRACTRC) ./*/*.rc >> ./rc.cpp
        $(XGETTEXT) `find . -name "*.cpp"` -o $(podir)/dymmyproject.pot
-----------------

This will include the .rc files to the translations, will process all the cpp files (otherwise no cpp file from the subdirectories will be processed - i've tried adding $(XGETTEXT.. to those files but it did not work).
Comment 1 tnagy 2004-05-11 17:52:36 UTC
To make the last sentence clearer, I have made a project using a kde template of kdevelop. I have added some new subdirectories in src/, with some .cpp files in them.
When running "make package-messages" the strings from the projectui.rc file were not extracted.

In addition, no .cpp file from the subdirectories was processed.
After the Makefile.am of those subdirectories were modified (to use the same rc.cpp line), the translations still did not work. With the new three lines however in src/Makefile.am only, all the necessary strings were extracted properly.

Comment 2 Matt Rogers 2004-12-12 06:48:20 UTC
CVS commit by mattr: 

Fixing the messages target to include .ui and .rc files so that pot file
generation gets all the strings when app developers create pot files for
their apps. Fixes bug 81345

BUG: 81345


  M +2 -1      kapp/src-Makefile.am   1.3
  M +2 -1      kateplugin/src-Makefile.am   1.3
  M +3 -1      kateplugin2/src-Makefile.am   1.3
  M +1 -0      kbearplugin/src-Makefile.am   1.3
  M +1 -0      kcmodule/src-Makefile.am   1.4
  M +1 -0      kdedcop/src-Makefile.am   1.4
  M +1 -0      kfileplugin/src-Makefile.am   1.3
  M +1 -0      khello/src-Makefile.am   1.3
  M +1 -0      khello2/src-Makefile.am   1.3
  M +1 -0      kicker/src-Makefile.am   1.3
  M +1 -0      kioslave/src-Makefile.am   1.3
  M +1 -0      kofficepart/src-Makefile.am   1.5
  M +1 -0      kpartapp/src-Makefile.am   1.3
  M +1 -0      kpartplugin/src-Makefile.am   1.3
  M +1 -0      kscreensaver/src-Makefile.am   1.3
  M +1 -0      kxt/src-Makefile.am   1.4
  M +1 -0      noatunui/src-Makefile.am   1.4
  M +1 -0      noatunvisual/src-Makefile.am   1.3