Re: Nautilus i18n statistics, pozilla etc.
- From: "R.I.P. Deaddog" <maddog linuxhall org>
- To: Fatih Demir <kabalak gmx net>
- Cc: GNOME I18N Listesi <gnome-i18n gnome org>
- Subject: Re: Nautilus i18n statistics, pozilla etc.
- Date: Tue, 12 Jun 2001 22:12:20 +0800 (HKT)
On Mon, 11 Jun 2001, Fatih Demir wrote:
> I though I'd to improve pozilla.sh -- which is very useful and nice
> but as noones seems to use it I've done a run on Nautilus and here
> are the results:
>
> Maybe you find such statistics nice .-)
>
> Language Total messages Translated Percentage Missing
> ========--------==============--==========------==========------=======
>
[snip]
> ta ------------- Failure due to a warning ------------
> tr 1719 1676 97.50% 43
> uk 1719 1678 97.61% 41
> zh_TW ------------- Failure due to an error -------------
Strange...... I ran it under nautilus in anoncvs, and the zh_TW.Big5.po
file doesn't give any error. Is the .po file inside source not available
on anoncvs?
Besides, a patch is attached again pozilla.sh 3.0 that fixes 2 problems
(at least to me):
- after LANG and LANGUAGE is unset, msgfmt and msgmerge seems to use LC_*
variables which still makes msgfmt and msgmerge output localized
messages. Force LANG=C and LANGUAGE=C to prevent this.
- use "echo -e" instead of echo to properly output "\t".
Please tell me if the patch attached is introducing other problems......
Regards,
Abel
--- ../ANONCVS.GNOME.ORG/gtranslator/pozilla.sh Tue Jun 12 05:49:56 2001
+++ ./pozilla.sh Tue Jun 12 21:51:52 2001
@@ -343,7 +343,7 @@
cp $i $i.backup
language=`basename $i .po|sed -e s/\.Big5//g -e s/\.GB2312//g`
- merge_status=`msgmerge $i $PACKAGE.pot -o $i 2>&1`
+ merge_status=`LANG=C LANGUAGE=C msgmerge $i $PACKAGE.pot -o $i 2>&1`
if echo $merge_status|grep -sq warning ; then
mv $i.backup $i
@@ -364,7 +364,7 @@
#
# Get the values for the messages statistics.
#
- statistics=(`msgfmt -v $i 2>&1`)
+ statistics=(`LANG=C LANGUAGE=C msgfmt -v $i 2>&1`)
translated=${statistics[0]}
fuzzy=${statistics[3]:-0}
untranslated=${statistics[6]:-0}
@@ -443,7 +443,7 @@
echo "you about the coming release with the specs/status of your po-file." >> $BODY_FILE
echo "" >> $BODY_FILE
echo "Current po files statistics table:" >> $BODY_FILE
-echo "$STAT_TABLE" >> $BODY_FILE
+echo -e "$STAT_TABLE" >> $BODY_FILE
echo "" >> $BODY_FILE
echo "--" >> $BODY_FILE
echo "This is a mail send by Pozilla R $POZILLA_RELEASE." >> $BODY_FILE
@@ -469,7 +469,7 @@
# Print out the statistics table if necessary.
#
if test "&$PRINT_TABLE" = "&yes" ; then
- echo "$STAT_TABLE"
+ echo -e "$STAT_TABLE"
fi
#
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]