Bug 45086 - gettext package not usable
Summary: gettext package not usable
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: kdevelop 2.x (obsolete) (show other bugs)
Version: 2.1.2
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop-Devel List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-13 06:48 UTC by info
Modified: 2002-10-11 09:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
patch for admin/Makefile.common (1.00 KB, patch)
2002-10-10 10:30 UTC, Werner Stille
Details

Note You need to log in before you can comment on or make changes to this bug.
Description info 2002-07-13 06:36:51 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kdevelop
Version:           2.1.2 (using KDE 3.0.2 )
Severity:          normal
Installed from:    Compiled From Sources
Compiler:          GCC 2.95.2
OS:                Linux
OS/Compiler notes: Kernel 2.2.21

Hi

I just tested KDevelop 2.1.2 with KDE 3.0.2 and QT 3.0.4
and I think I found some bugs.

When I create a KDE project with I18N support and try to
create a translation for all those texts it failed.

1. In Makefile.common at the rule "package-merge:"
   the first line in the rule should be
   @MAKE=$(MAKE) POFILES="$(POFILES)" PACKAGE="$(PACKAGE)"

2. In cvs.sh in the function package_messages() I changed
   the line

        XGETTEXT="${XGETTEXT:-xgettext} -C -ki18n -ktr2i18n -kI18N_NOOP -ktranslate -kaliasLocale -x ${includedir:-$KDEDIR/include}/kde.pot" \
   to
        XGETTEXT="${XGETTEXT:-xgettext} -C -ki18n -ktr2i18n -kI18N_NOOP -ktranslate -kaliasLocale -x /usr${includedir:-$KDEDIR/include}/kde.pot" \

   This is NOT the correct solution ... I don't know why it
   "forgets" the /usr but this works for me ...

Best regards
Mark Junker


(Submitted via bugs.kde.org)
Comment 1 Werner Stille 2002-10-10 10:30:35 UTC
Created attachment 179 [details]
patch for admin/Makefile.common

I had similar problems using KDE 3.0.3, but in addition the cvs.sh file was not
found when the rule "package-merge" was applied. Therefore I simply copied the
recursive admin directory search stuff from the other rule to the
"package-merge" rule. That's not elegant but it works.
For me it was not necessary to patch cvs.sh, when I have set the environment
variable KDEDIR correctly (on my system to /opt/kde3, on other systems possibly
to /usr, can be done within the file startkde).
Comment 2 Stephan Kulow 2002-10-11 09:40:58 UTC
Subject: kde-common/admin

CVS commit by coolo: 

-       MAKE=$(MAKE) $(SHELL) $$admindir/cvs.sh $@
-
-package-merge:
-       @MAKE=$(MAKE) POFILES=$(POFILES) PACKAGE=$(PACKAGE) \
-         $(SHELL) admin/cvs.sh package-merge
+       if test "$@" = "package-merge"; then \
+               MAKE=$(MAKE) POFILES="$(POFILES)" PACKAGE="$(PACKAGE)" \
+               $(SHELL) $$admindir/cvs.sh package-merge ;\
+       else MAKE=$(MAKE) $(SHELL) $$admindir/cvs.sh $@ ;\
+       fi

CCMAIL: 45086-close@bugs.kde.org

 ---------------------------------------------------------------------------
 M  +6 -6     1.154 1.155  Makefile.common