DELTA
SVN   )))#!/bin/bash
#/**********************************************************************
# Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2, or (at your option)
#   any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#***********************************************************************/

SRCDIR="$(dirname "$0")"

dir_stats() {
declare -i TRANS
declare -i FUZZY
declare -i UNTRANS
declare -i SUM
declare -i PRCT

for POFILE in $@
do
  if test "x$POFILE" != "x" ; then
    CODE=$(echo "$POFILE" | sed 's/.po//')
    FSTR="$(LANG=C msgfmt --stat "$POFILE" 2>&1)"
    if echo $FSTR | grep translated >/dev/null ; then
      TRANS=$(echo $FSTR | sed 's/ translated.*//')
      FSTR="$(echo $FSTR | sed 's/.* translated messages*[.,]//')"
    fi
    if echo $FSTR | grep fuzzy >/dev/null ; then
      FUZZY=$(echo $FSTR | sed 's/ fuzzy.*//')
      FSTR="$(echo $FSTR | sed 's/.* fuzzy translations*[.,]//')"
    fi
    if echo $FSTR | grep untranslated >/dev/null ; then
      UNTRANS=$(echo $FSTR | sed 's/ untranslated.*//')
    fi

    SUM=$TRANS+$FUZZY+$UNTRANS
    PRCT=$TRANS*100/$SUM

    echo "$CODE $PRCT%"
  fi
done
}

for domain in freeciv nations
do
  echo
  echo "$domain"
  echo "----------"
  ( cd "$SRCDIR/$domain"
    dir_stats *.po
    rm messages.mo )
done
ENDREP
DELTA 23465 0 114
SVN  gx, L  nations

EXTRA_DIST = Strings.txt stats.sh
ENDREP
PLAIN
K 14
svn:executable
V 1
*
END
ENDREP
id: 14eg.5kv.r25089/1857
type: file
count: 0
text: 25089 0 1719 1705 4716e5abc55c9a2fc8f85c6930f477b5
props: 25089 1814 30 0 4160c74de5f4e580dc15660c798ff9fc
cpath: /branches/S2_5/translations/stats.sh
copyroot: 22812 /branches/S2_5

id: t15.5kv.r25089/2091
type: file
pred: t15.5kv.r23605/42761319
count: 2
text: 25089 1732 57 120 4f427d84c8ae8aed54a9329c8b839d82
cpath: /branches/S2_5/translations/Makefile.am
copyroot: 22812 /branches/S2_5

PLAIN
K 11
Makefile.am
V 24
file t15.5kv.r25089/2091
K 11
Strings.txt
V 25
file his.5lx.r23463/85587
K 7
freeciv
V 25
dir fs.5ly.r24884/2320705
K 7
nations
V 26
dir u15.5kv.r24884/2318324
K 8
stats.sh
V 25
file 14eg.5kv.r25089/1857
END
ENDREP
id: t0n.5kv.r25089/2544
type: dir
pred: t0n.5kv.r24884/2321199
count: 16
text: 25089 2301 230 230 337cfe21a8360592f6ad3965abab1ce3
props: 23742 534 47 0 bf36bdb5202732a1b9a911cc1234183c
cpath: /branches/S2_5/translations
copyroot: 22812 /branches/S2_5

PLAIN
K 9
ABOUT-NLS
V 24
file fu.5kv.r23463/86338
K 7
AUTHORS
V 24
file 5u.5ck.r22143/14016
K 7
COPYING
V 19
file 1h.0.r9643/400
K 9
ChangeLog
V 26
file 6l.5ck.r22811/6091752
K 7
INSTALL
V 22
file 6.5kv.r24056/6377
K 11
Makefile.am
V 21
file 59.5kv.r24657/45
K 4
NEWS
V 24
file 6m.5kv.r23372/75525
K 6
README
V 20
file 7.0.r4421/96382
K 2
ai
V 21
dir 8.5kv.r24946/7174
K 10
autogen.sh
V 23
file 12o.5kv.r24092/228
K 9
bootstrap
V 23
dir 2p5.5kv.r24311/1602
K 6
client
V 21
dir d.5kv.r25009/5661
K 6
common
V 21
dir p.5kv.r25050/4700
K 12
configure.ac
V 24
file 149.5kv.r25029/4988
K 4
data
V 22
dir w.5kv.r25080/15343
K 6
debian
V 22
dir 5w.5kv.r23304/4091
K 12
dependencies
V 23
dir 2yu.5kv.r25052/1755
K 11
diff_ignore
V 24
file qq.5ck.r21039/26581
K 3
doc
V 22
dir k7.5kv.r25068/2196
K 10
fc_version
V 23
file 2lo.5kw.r24989/115
K 2
m4
V 23
dir 12p.5kv.r25029/4746
K 7
scripts
V 22
dir 2yo.5kv.r24500/876
K 6
server
V 21
dir z.5kv.r25079/4165
K 5
tests
V 22
dir 2g9.5ck.r22096/825
K 5
tools
V 23
dir 4pj.5lo.r25046/1038
K 12
translations
V 23
dir t0n.5kv.r25089/2544
K 7
utility
V 22
dir 1c.5kv.r25083/3043
K 3
vms
V 25
dir u9.5ck.r21528/1396085
K 5
win32
V 23
dir 2eu.5kv.r24544/3792
END
ENDREP
id: 3.5kv.r25089/3996
type: dir
pred: 3.5kv.r25083/4490
count: 16951
text: 25089 2797 1186 1186 afc230057280475dc5dcfe039590382d
props: 20140 3888 282 0 e4bb46e81629a60eef613b169b23a9ea
cpath: /branches/S2_5
copyroot: 22812 /branches/S2_5

PLAIN
K 5
S1_14
V 21
dir 3.21.r18109/18803
K 4
S2_0
V 21
dir 3.10x.r21862/4178
K 4
S2_1
V 22
dir 3.59e.r20026/11014
K 4
S2_2
V 21
dir 3.5cy.r21861/5036
K 4
S2_3
V 21
dir 3.5f2.r24391/5183
K 4
S2_4
V 22
dir 3.5ii.r25084/14543
K 4
S2_5
V 21
dir 3.5kv.r25089/3996
K 11
freeciv-web
V 22
dir 3.5bl.r13594/14918
END
ENDREP
id: 1.0.r25089/4553
type: dir
pred: 1.0.r25084/15102
count: 7443
text: 25089 4236 304 304 d20c0f2a27dc231571f811240ba731da
cpath: /branches
copyroot: 0 /

PLAIN
K 8
branches
V 19
dir 1.0.r25089/4553
K 4
tags
V 19
dir 2.0.r24394/6245
K 5
trunk
V 21
dir 3.5ck.r25088/3929
K 7
website
V 21
dir 3ge.0.r22980/2263
END
ENDREP
id: 0.0.r25089/4873
type: dir
pred: 0.0.r25088/4320
count: 25089
text: 25089 4708 152 152 23ec7e41b82ef4863c04f030db8ef670
cpath: /
copyroot: 0 /

_3.5kv.t25088-1 add true true /branches/S2_5/translations/stats.sh

t15.5kv.t25088-1 modify true false /branches/S2_5/translations/Makefile.am


4873 5020
