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]"
58 zip -9r "$X"-todo.zip "$X".untranslated "$X".fuzzy
63 we need updates to the translations you made for Xonotic.
66 if [ $nu -gt 0 ]; then
68 The attached zip file contains a file
70 with $nu yet to be translated messages. Please translate them and reply with
71 the file containing the translations in the "msgstr" fields.
75 if [ $nf -gt 0 ]; then
77 The attached zip file contains a file
79 with $nf automatically generated translations. Please verify and/or fix them
80 and reply with the file having been verified by you.
90 -s "Need update for translations: $X" \
93 -b "divVerent@xonotic.org" \
94 -S from="divVerent@xonotic.org" \
105 for X in "$VM".dat.*.po.disabled; do
106 [ -f "$X" ] || continue
107 msgmerge -F -U "$X" "$VM".dat.pot >/dev/null 2>&1