[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    [PATCH] Fix KAboutData extracting
From:       Andras Mantia <amantia () kde ! org>
Date:       2004-09-13 16:02:32
Message-ID: 200409131902.33989.amantia () kde ! org
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

 As you can see bug #87536 (http://bugs.kde.org/show_bug.cgi?id=87536),
some .pot files are missing the
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr ""

#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr ""

lines. The problems seems to be with the cvs.sh (when the KAboutData
line is in a file from some subdirectory?). Attached is a patched
version which works for me, but I don't know if find and xargs are
portable or not. But as this part mainly runs on KDE (linux) server, I
think it's safe to commit.
If no objections I ask someone with enough karma to commit the change.

Andras

- --
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBRcSZTQdfac6L/08RAmjwAJ930YEEDYXTMg59yqefK6ySEHpM/gCgxs/D
JeH9RWnw8FqpVazX5ivbemM=
=TLMW
-----END PGP SIGNATURE-----

["pot-patch.diff" (text/x-diff)]

--- cvs.sh.orig	2004-09-08 16:34:57.000000000 +0300
+++ cvs.sh	2004-09-13 19:01:55.676062936 +0300
@@ -575,7 +575,7 @@
 	    echo "$subdir has *.rc, *.ui or *.kcfg files, but not correct messages line"
 	fi
    fi
-   if test -n "`grep -r KAboutData *.c* *.C* 2>/dev/null`"; then
+   if test -n "`find . -name '*.c*' -o -name '*.C*' | xargs grep KAboutData \
2>/dev/null`"; then  echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your \
names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > _translatorinfo.cpp  \
else echo " " > _translatorinfo.cpp  fi



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic