From mboxrd@z Thu Jan 1 00:00:00 1970 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=sfy6Gr3yNDyDNlyi/ZNIDePCeT5hbc5GnqMvpZw4zx8onnduEbnN6MgrdRvu2LmGaS35NnimByrYH1knjuzddewWPvkcXAjlcH1Toqu1UX04H+iE6R6SJdy/iIgEzL3KQr5qxF4XP9YcQ++cEpCzPAQ45Mw5fGZQRUjZaTztNXg= Message-ID: <733f2c730604060924h2a517c93sb2d571df80d4ff68@mail.gmail.com> Date: Thu, 6 Apr 2006 20:24:49 +0400 From: "Alexandre Prokoudine" To: "KDE russian translation mailing list" Subject: Re: [kde-russian] krita In-Reply-To: <20060406112137.GU16525@wrars-comp.wrarsdomain> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1940_29109736.1144340689319" References: <733f2c730604031407y29b5169ah81411e387446c0a5@mail.gmail.com> <200604060930.54854.sibskull@mail.ru> <733f2c730604052337u6f36e307hc8cca2d8d090a047@mail.gmail.com> <200604061200.21034.sibskull@mail.ru> <20060406112137.GU16525@wrars-comp.wrarsdomain> X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on zigzag.lvk.cs.msu.su X-Spam-Level: X-Spam-Status: No, score=-2.4 required=7.0 tests=AWL,BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.3 X-BeenThere: kde-russian@zigzag.lvk.cs.msu.su X-Mailman-Version: 2.1.5 Precedence: list Reply-To: KDE russian translation mailing list List-Id: KDE russian translation mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 16:25:04 -0000 Archived-At: List-Archive: List-Post: ------=_Part_1940_29109736.1144340689319 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: base64 Content-Disposition: inline T24gNC82LzA2LCBBbmRyZXkgUmFobWF0dWxsaW4gd3JvdGU6Cj4gT24gVGh1LCBBcHIgMDYsIDIw MDYgYXQgMTI6MDA6MjBQTSArMDQwMCwg4c7E0sXKIP7F0sXQwc7P1yB3cm90ZToKPiA+IOEg18/U IMTBzNjbxSAtIM3SwcshIO7BxM8gzsHK1Mkgc2NyaXB0eSwg0M/Uz83VIMvByyDX2dTB08vJ18HO ycUgaTE4biDJ2iAqLnJjCj4gPiDJICoudWkgLSDOxdTSydfJwczYzsHRINrBxMHewS4KPiB3cmFy QHdyYXJzLWNvbXAgfiAkIGV4dHJhY3RyYyAtLWhlbHAKCvEgzsHbo8wgxd2jINfB0snBztQsIMLM ydbFIN7FzSDP1snEwcwgLSDXIFNWTiByb3NlZ2FyZGVuLiDw0snMz9bFzs8gywrQydPYzdUgLSDN wczPIMzJIMvPzdUgxd2jINPHz8TJ1NPRLiDwz9DSz8LVwCDBxMHQ1MnSz9fB1NggxMzRINPXz8nI CsPFzMXKLgoK4S7wLgo= ------=_Part_1940_29109736.1144340689319 Content-Type: application/x-sh; name=messages.sh Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elpavfn8 Content-Disposition: attachment; filename="messages.sh" #!/bin/sh # Inspired by Makefile.common from coolo # this script is used to update the .po files # To update the translations, you will need a specific gettext # patched for kde and a lot of patience, tenacity, luck, time .. # I guess one should only update the .po files when all .cpp files # are generated (after a make or scons) # If you have a better way to do this, do not keep that info # for yourself and help me to improve this script, thanks # (tnagyemail-mail tat yahoo d0tt fr) if [ -z "$KDE_GETTEXT_BIN" ]; then if [ -f ./xgettext ] && ./xgettext --help 2>&1 | grep -q extract; then KDE_GETTEXT_BIN=. elif [ -d /opt/gettext-kde/bin ]; then KDE_GETTEXT_BIN=/opt/gettext-kde/bin fi fi if [ ! -d "$KDE_GETTEXT_BIN" ]; then echo 1>&2 echo "WARNING: Environment variable KDE_GETTEXT_BIN must be set" 1>&2 echo "such that the KDE patched version of gettext is found in " 1>&2 echo "KDE_GETTEXT_BIN/." 1>&2 echo 1>&2 echo "Falling back to default gettext, but plural translations " 1>&2 echo "will probably be wrong." 1>&2 echo 1>&2 echo "See ftp://ftp.kde.org/devel/gettext-kde/ for the patched gettext." 1>&2 echo 1>&2 else KDE_GETTEXT_PATH=${KDE_GETTEXT_BIN}/ fi SRCDIR=../gui # srcdir is the directory containing the source code TIPSDIR=$SRCDIR/docs/en # tipsdir is the directory containing the tips KDEDIR=`kde-config --prefix` EXTRACTRC=extractrc KDEPOT=$KDEDIR/include/kde.pot if [ ! -f "$KDEPOT" ] && [ -f /usr/include/kde/kde.pot ]; then KDEPOT=/usr/include/kde/kde.pot fi XGETTEXT="${KDE_GETTEXT_PATH}xgettext -C -ki18n -ktr2i18n -kI18N_NOOP -ktranslate -kaliasLocale -x $KDEPOT " ## check that kde.pot is available if ! test -e $KDEPOT; then echo "$KDEPOT does not exist, there is something wrong with your installation!" XGETTEXT="${KDE_GETTEXT_PATH}xgettext -C -ki18n -ktr2i18n -kI18N_NOOP -ktranslate -kaliasLocale " fi > rc.cpp ## extract the strings echo "extracting the strings" # process the .ui and .rc files $EXTRACTRC `find $SRCDIR -iname *.rc` >> rc.cpp $EXTRACTRC `find $SRCDIR -iname *.ui` >> rc.cpp echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > $SRCDIR/_translatorinfo.cpp # process the tips - $SRCDIR is supposed to be where the tips are living pushd $TIPSDIR; preparetips >tips.cpp; popd #$XGETTEXT `find $SRCDIR -name "*.cpp"` -o tmp.pot $XGETTEXT `find $SRCDIR -name "*.cpp" -o -name "*.h"` rc.cpp $TIPSDIR/tips.cpp -o tmp.pot # remove the intermediate files rm -f $TIPSDIR/tips.cpp rm -f rc.cpp rm -f $SRCDIR/_translatorinfo.cpp ## now merge the .po files .. echo "merging the .po files" for i in `ls *.po`; do echo $i msgmerge $i tmp.pot -o $i || exit 1 done ## finished echo "Done" ------=_Part_1940_29109736.1144340689319--