3 for VM in menu csprogs; do
13 find qcsrc/"$VMD" -type f -not -name \*.po -not -name \*.txt
14 find qcsrc/common -type f -not -name \*.po -not -name \*.txt
15 find qcsrc/server -type f -name w_\*.qc
16 } | xgettext -LC -k_ -f- --from-code utf-8 -o "$VM".dat.pot >&2
17 for X in "$VM".dat.*.po; do
18 [ -f "$X" ] || continue
19 for Y in ~/check-translations/"$X".*; do
20 [ -f "$Y" ] || continue
21 msgcat -F --use-first "$Y" "$X" > "$X".new
24 msgmerge -F -U "$X" "$VM".dat.pot >&2
25 msgattrib --untranslated "$X" | grep . > "$X".untranslated || rm -f "$X".untranslated
26 msgattrib --fuzzy "$X" | grep . > "$X".fuzzy || rm -f "$X".fuzzy
27 nu=$((`grep -c ^#: "$X".untranslated` + 0))
28 nf=$((`grep -c ^#: "$X".fuzzy` + 0))
31 echo "TODO for translation $X:"
32 echo "Untranslated: $nu"
34 ltr=`grep '^"Last-Translator: ' "$X" | cut -d ' ' -f 2- | cut -d '\\' -f 1 | egrep -v '<LL@li.org>|<EMAIL@ADDRESS>'`
35 ltm=`grep '^"Language-Team: ' "$X" | cut -d ' ' -f 2- | cut -d '\\' -f 1 | egrep -v '<LL@li.org>|<EMAIL@ADDRESS>'`
36 echo "Translators: $ltr, $ltm"
44 if [ x"$ltr" = x"$ltm" ]; then
59 echo "Send mail? [y/n]"
64 if [ $nu -gt 0 ]; then
65 attach="$attach $X.untranslated"
67 if [ $nf -gt 0 ]; then
68 attach="$attach $X.fuzzy"
74 as you provided us with translations in the past, we kindly ask you
75 to update the translation to match changes in the Xonotic source. Can
76 you please work on them and provide updates to us?
78 If you do not wish to be contacted for translation updates any more,
79 please tell us in a reply to this message.
82 if [ $nu -gt 0 ]; then
84 Attached to this message is a file
86 with $nu yet to be translated messages. Please translate them and reply
87 with the file containing the translations in the "msgstr" fields.
91 if [ $nf -gt 0 ]; then
93 Attached to this message is a file
95 with $nf automatically generated translations. Please verify and/or fix
96 them and reply with the file having been verified by you.
106 -e "set from=\"divVerent@xonotic.org\"" \
107 -e "set use_from=yes" \
108 -e "set use_envelope_from=yes" \
109 -s "Need update for translations: $X" \
111 -b "divVerent@xonotic.org" \
124 for X in "$VM".dat.*.po.disabled; do
125 [ -f "$X" ] || continue
126 msgmerge -F -U "$X" "$VM".dat.pot >/dev/null 2>&1