[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r9941 - trunk/tools/po

From: Erik Huelsmann <e.huelsmann_at_gmx.net>
Date: 2004-06-09 22:56:16 CEST

I was wondering whether to extend this script to be a useable as cronjob for
mailing status results or to do that in a separate script when suddenly I
decided to make it available to start with.

It's the script with which I generated the translation report yesterday.

bye,

Erik.

> Author: dionisos
> Date: Wed Jun 9 15:30:58 2004
> New Revision: 9941
>
> Added:
> trunk/tools/po/
> trunk/tools/po/svn-po-status-report.sh (contents, props changed)
> Log:
> Add script to generate translation status information.
>
> * tools/po: New directory to hold translation related tools.
>
> * tools/po/svn-po-status-report.sh: Script to generate
> a translation status report from the working copy po/ directory.
>
>
> Added: trunk/tools/po/svn-po-status-report.sh
> Url:
>
http://svn.collab.net/viewcvs/svn/trunk/tools/po/svn-po-status-report.sh?view=auto&rev=9941
>
==============================================================================
> --- (empty file)
> +++ trunk/tools/po/svn-po-status-report.sh Wed Jun 9 15:30:58 2004
> @@ -0,0 +1,53 @@
> +#!/bin/sh
> +
> +# Subversion po file translation status report generator
> +
> +# This file is based on the GNU gettext msgattrib tool
> +# for message file filtering
> +
> +# To make the script work, make sure that:
> +
> +# 1) the script knows where to find msgattrib
> +# 2) you have checked out the required revision
> +# 2) you have run autogen.sh and configure for that revision
> +# 3) you have run 'make locale-gnu-po-update'
> +
> +
> +
> +EXEC_PATH=`dirname "$0"`
> +MSGATTRIB=msgattrib
> +GREP=grep
> +LC='wc -l'
> +
> +cd $EXEC_PATH/../..
> +
> +
> +wc_version=`svnversion . | sed -e 's/M//'`
> +echo "
> +
> +Subversion translation status report for revision $wc_version
> +
>
+============================================================================"
> +
> +
> +for i in *.po ; do
> + translated=`$MSGATTRIB --translated $i | $GREP -E '^msgid *"' | $LC`
> + untranslated=`$MSGATTRIB --untranslated $i | $GREP -E '^msgid *"' |
> $LC`
> + fuzzy=`$MSGATTRIB --only-fuzzy $i | $GREP -E '^msgid *"' | $LC`
> + obsolete=`$MSGATTRIB --only-obsolete $i | $GREP -E '^msgid *"' | $LC`
> +
> +
> + echo
> + echo "Message counts per status flag for '$i'"
> + echo ""
> + echo "$translated translated"
> + echo "$untranslated untranslated"
> + echo "$fuzzy fuzzy"
> + echo "$obsolete obsolete"
> + echo
> +
> +done
> +echo "
>
+============================================================================"
> +
> +
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svn-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: svn-help@subversion.tigris.org
>

-- 
+++ Jetzt WLAN-Router für alle DSL-Einsteiger und Wechsler +++
GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 9 22:58:56 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.