From cc29364f06178f8f6b457384f2ec37a042bd9d43 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 1 Sep 2010 00:37:02 +0000 Subject: * Massive set of changes to bring in all fixes and enhancements from the Enterprise PIM branch * Ensured that the Trinity changes were applied on top of those enhancements, and any redundancy removed * Added journal read support to the CalDAV resource * Fixed CalDAV resource to use events URL for tasks and journals when separate URL checkbox unchecked git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1170461 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- translate | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 translate (limited to 'translate') diff --git a/translate b/translate new file mode 100644 index 00000000..0a19b1bf --- /dev/null +++ b/translate @@ -0,0 +1,83 @@ +#!/bin/sh + +# Update this path if necessary +KDEL10N=$PWD/../kde-l10n + +export LC_ALL=C +export CDPATH= + +# Fix up the script +if ! grep -q Language-Team admin/cvs.sh; then + patch admin/cvs.sh < cvs.sh.diff +fi + +test -L po || ( rm -f po ; ln -s ../kde-l10n/templates/messages/kdepim po ) + +# I tried setting podir to get the output directly into kde-l10n but then +# we run old code in cvs.sh; scripty doesn't use that anymore, but the scripts in l10n. +# However those are harder to reduce to kdepim only, so let's keep the old way +# of doing it: with a po subdir, like a 3rd-party app and not like a real kde module. +#export podir="$KDEL10N/templates/messages/kdepim" +if ! test -d "po"; then + echo "po doesn't exist" + exit 1 +fi + +if test -z "$XGETTEXT"; then + if test -f /usr/bin/kde-xgettext; then + xgettext=kde-xgettext + export XGETTEXT=kde-xgettext + elif test -f /opt/kde3/bin/kde-xgettext; then + xgettext=/opt/kde3/bin/kde-xgettext + export XGETTEXT=$xgettext + else + xgettext=xgettext + fi +else + xgettext="$XGETTEXT" +fi +gettext_version=`$xgettext --version | grep 0.10.35` +if test -z "$gettext_version"; then + echo "No xgettext installed or wrong xgettext version: "`$xgettext --version | head -n1` + exit 1 +fi + +kdepim="$PWD" + +# I assume kdepim is uptodate, but kde-l10n is probably not +cd "$KDEL10N" || exit 1 +svn update + +cd "$kdepim" +make -f admin/Makefile.common package-messages || exit 1 +# ? make -f admin/Makefile.common package-merge || exit 1 + +cd "$KDEL10N" || exit 1 + +scripts/merge_all.sh + +svn diff + +for i in `find -name kdepim`; do + cd $i || exit 1 + + for t in `svn status 2>&1 | grep '^M' | gawk '{print $2}'`; do + diff=`diff -u -I'^#' -I'^"POT-Creation-Date:' .svn/text-base/$t.svn-base $t` + if test -n "$diff"; then + echo "$t: changed" + else + #echo "$t: no change" + svn revert $t + fi + done + # New files are not added automatically; do those by hand. + + # To see what changed in a .pot file: svn di kmail.pot | grep '^[-+][^#]' + + cd "$KDEL10N" +done + +scripts/check_po_files + +echo "Now go to $KDEL10N and commit templates/ and de/" + -- cgit v1.2.3