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 msgmerge -F -U "$X" "$VM".dat.pot >&2
20 msgattrib --untranslated "$X" | grep . > "$X".untranslated || rm -f "$X".untranslated
21 msgattrib --fuzzy "$X" | grep . > "$X".fuzzy || rm -f "$X".fuzzy
22 nu=$((`grep -c ^#: "$X".untranslated` + 0))
23 nf=$((`grep -c ^#: "$X".fuzzy` + 0))
26 echo "TODO for translation $X:"
27 echo "Untranslated: $nu"
29 ltr=`grep '^"Last-Translator: ' "$X" | cut -d ' ' -f 2- | cut -d '\\' -f 1 | egrep -v '<LL@li.org>|<EMAIL@ADDRESS>'`
30 ltm=`grep '^"Language-Team: ' "$X" | cut -d ' ' -f 2- | cut -d '\\' -f 1 | egrep -v '<LL@li.org>|<EMAIL@ADDRESS>'`
31 echo "Translators: $ltr, $ltm"
39 if [ x"$ltr" = x"$ltm" ]; then
54 echo "Send mail? [y/n]"
59 if [ $nu -gt 0 ]; then
60 attach="$attach $X.untranslated"
62 if [ $nf -gt 0 ]; then
63 attach="$attach $X.fuzzy"
69 as you provided us with translations in the past, we kindly ask you
70 to update the translation to match changes in the Xonotic source. Can
71 you please work on them and provide updates to us?
73 If you do not wish to be contacted for translation updates any more,
74 please tell us in a reply to this message.
77 if [ $nu -gt 0 ]; then
79 Attached to this message is a file
81 with $nu yet to be translated messages. Please translate them and reply
82 with the file containing the translations in the "msgstr" fields.
86 if [ $nf -gt 0 ]; then
88 Attached to this message is a file
90 with $nf automatically generated translations. Please verify and/or fix
91 them and reply with the file having been verified by you.
101 -e "set from=\"divVerent@xonotic.org\"" \
102 -e "set use_from=yes" \
103 -e "set use_envelope_from=yes" \
104 -s "Need update for translations: $X" \
106 -b "divVerent@xonotic.org" \
119 for X in "$VM".dat.*.po.disabled; do
120 [ -f "$X" ] || continue
121 msgmerge -F -U "$X" "$VM".dat.pot >/dev/null 2>&1