Re: trans-stat



to je stary, nevim odkal to stahujes, ak to stahujes do rovnakeho folderu, moze nastat problem ze firefox ten dalsi pomenuje napr. trans-stat(1)

On 11.09.2011 10:27, roman matyus wrote:
presne ten čo si mi poslal v maile

2011/9/11 Pavol Klačanský <pavol klacansky com>
mohol by si do prilohy hodit ten trans-stat ktory spustas?


On 11.09.2011 08:42, roman matyus wrote:
hm, toto je fakt divné. netuší niekto čím to môže byť?
/home/roman/Stiahnuté/trans-stat: riadok 58: 0+: chyba syntaxe: očakáva sa operand (chybný token je „+”)


2011/9/10 Pavol Klačanský <pavol klacansky com>
mne funguje

http://live.gnome.org/SlovakTranslation?action="">

+------------------------------------------+-------+-------+-------+-------+

| Roman Mátyus                            |  Stat | Trans | Fuzzy |  Untr |
+------------------------------------------+-------+-------+-------+-------+
| accerciser                               |  87 % |   192 |    11 |    11 |
| bug-buddy                                | 100 % |    88 |     0 |     0 |
| devhelp                                  | 100 % |   119 |     0 |     0 |
| ekiga                                    |  91 % |   665 |    39 |    39 |
| gnome-color-manager                      |   0 % |     0 |     0 |     0 |
| gnome-mag                                | 100 % |    42 |     0 |     0 |
| gnome-user-share                         | 100 % |    51 |     0 |     0 |
| gtk-engines                              | 100 % |    49 |     0 |     0 |
| gtksourceview                            |  83 % |   513 |    64 |    64 |
| libgnomekbd                              | 100 % |    55 |     0 |     0 |
| mousetweaks                              | 100 % |    64 |     0 |     0 |
| vinagre                                  |  81 % |   209 |    39 |    39 |
+------------------------------------------+-------+-------+-------+-------+
| Total                                    |  86 % |  2047 |   153 |   153 |
+------------------------------------------+-------+-------+-------+-------+



On 10.09.2011 20:22, roman matyus wrote:
asi ťa nepoteším.. normálne ti to funguje?
čerstvo stiahnutý trans-stat robí to čo predtým:
+---------------------------+-------+-------+-------+-------+
| Roman Mátyus             |  Stat | Trans | Fuzzy |  Untr |
+---------------------------+-------+-------+-------+-------+
| accerciser                |   0 % |       |       |       |
/home/roman/Stiahnuté/trans-stat: riadok 58: 0+: chyba syntaxe: očakáva sa operand (chybný token je „+”)


pošli link na správny - stiahol som ten čo je linkovaný na stránke tímu

2011/9/9 Pavol Klačanský <pavol klacansky com>
Ahoj,

opravil som to a naucil som sa aspon trosku bash pri tom

Skus ho stiahnut

Tam to robilo sarapatu ak ta stranka neobsahovala te percenta, tak som hodil podminku a tak upravil sem to


On 09.09.2011 09:34, roman matyus wrote:
Zdravím,
môže prosím niekto opraviť trans-stat?

Vypisuje mi "./Programy/trans-stat: riadok 60: 0+: chyba syntaxe: očakáva sa operand (chybný token je „+”)"

Skúšal som to, ale nejak som na to neprišiel.
Vďaka
--
S pozdravom Roman Mátyus
_______________________________________________ gnome-sk-list mailing list gnome-sk-list gnome org http://mail.gnome.org/mailman/listinfo/gnome-sk-list

_______________________________________________
gnome-sk-list mailing list
gnome-sk-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-sk-list




--
S pozdravom Roman Mátyus
_______________________________________________ gnome-sk-list mailing list gnome-sk-list gnome org http://mail.gnome.org/mailman/listinfo/gnome-sk-list

_______________________________________________
gnome-sk-list mailing list
gnome-sk-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-sk-list




--
S pozdravom Roman Mátyus
_______________________________________________ gnome-sk-list mailing list gnome-sk-list gnome org http://mail.gnome.org/mailman/listinfo/gnome-sk-list

_______________________________________________
gnome-sk-list mailing list
gnome-sk-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-sk-list




--
S pozdravom Roman Mátyus
_______________________________________________ gnome-sk-list mailing list gnome-sk-list gnome org http://mail.gnome.org/mailman/listinfo/gnome-sk-list
#!/bin/bash

LL=sk

DOS2UNIX=
case `uname -s` in
	Linux)
		DOS2UNIX="dos2unix"
		;;
	SunOS)
		DOS2UNIX="dos2unix -ascii"
		;;
	*)
		echo "`uname -s` is not supported operating system" >&2
		exit 1
		;;
esac

TMPDIR=/tmp/gnome
mkdir -p $TMPDIR

TL="+------------------------------------------+-------+-------+-------+-------+\n"

wget -q "http://live.gnome.org/SlovakTranslation?action=raw"; --user-agent="" -O - | $DOS2UNIX > $TMPDIR/wiki
wget -q "http://live.gnome.org/SlovakTranslation/Modules?action=raw"; --user-agent="" -O - | $DOS2UNIX > $TMPDIR/modules
cat $TMPDIR/wiki |egrep "^\[\[http://mail\.gnome\.org/archives/gnome-sk-list/"; | tr -d '[],' | tr '|' ' ' | while read -r regmail name ; do
	lynx $regmail -dump -nonumbers > $TMPDIR/regmail
	DL=`cat $TMPDIR/regmail | grep "Damned Lies: " | cut -d' ' -f 3-`

	printf "$TL"
	/usr/bin/printf "| %-40s |  Stat | Trans | Fuzzy |  Untr |\n" "$name"
	printf "$TL"
	T_TRANS=0
	T_FUZZY=0
	T_UNTRANS=0
	cat $TMPDIR/modules |\
		egrep "^\|\| \[\[http://l10n\.gnome\.org/module/[^/]*/\|.*\]\] \|\| \[\[$DL\|$name\]\] \|\|$" |\
		cut -d' ' -f 2 |\
		sed -e 's,^\[\[http://l10n\.gnome\.org/module/\([^/]*\)/|\(.*\)\]\]$,\1 \2,' |\
		( while read -r module submodule ; do
			case "$submodule" in
				*/*)
					MODULE=`echo $submodule | cut -d/ -f 1`
					SUB=-`echo $submodule | cut -d/ -f 2`
					;;
				*)
					MODULE=$submodule
					SUB=
					;;
			esac
			lynx "http://l10n.gnome.org/vertimus/$MODULE/master/po$SUB/$LL"; -dump -width=200 > $TMPDIR/vertimus
            BUFFER=`cat $TMPDIR/vertimus | egrep -m 1 "^[[:space:]]*[0-9]+%[[:space:]]*[0-9]+[[:space:]]*[0-9]+[[:space:]]*[0-9]+.*$"`

            if [ "$BUFFER" != "" ]; then
			    PERCENT=`echo $BUFFER | sed -e 's/^[[:space:]]*\([0-9]*\)%.*$/\1/'`
			    TRANS=`echo $BUFFER | sed -e 's/^[[:space:]]*[0-9]*%[[:space:]]*\([0-9]*\).*$/\1/'`
                FUZZY=`echo $BUFFER | sed -e 's/^[[:space:]]*[0-9]*%[[:space:]]*[0-9]*[[:space:]]*\([0-9]*\).*$/\1/'`
			    UNTRANS=`echo $BUFFER | sed -e 's/^[[:space:]]*[0-9]*%[[:space:]]*[0-9]*[[:space:]]*[0-9]*[[:space:]]*\([0-9]*\).*$/\1/'`
			    printf "| %-40s | %3d %% | %5s | %5s | %5s |\n" $submodule $PERCENT $TRANS $FUZZY $UNTRANS
			    T_TRANS=$(($T_TRANS+$TRANS))
			    T_FUZZY=$(($T_FUZZY+$FUZZY))
			    T_UNTRANS=$(($T_UNTRANS+$UNTRANS))
            fi
		done
		TOTAL=$(($T_TRANS+$T_FUZZY+$T_UNTRANS))
		T_PERC=0
		test $TOTAL -ne 0 && T_PERC=$(((100*$T_TRANS)/($TOTAL)))
		printf "$TL"
		printf "| %-40s | %3d %% | %5s | %5s | %5s |\n" "Total" $T_PERC $T_TRANS $T_FUZZY $T_UNTRANS
		printf "$TL"
		printf "\n"
		)
done


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]