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 "$X".*.new; do
20 msgcat -F --use-first "$Y" "$X" > "$X".new
23 msgmerge -F -U "$X" "$VM".dat.pot >&2
24 msgattrib --untranslated "$X" | grep . > "$X".untranslated || rm -f "$X".untranslated
25 msgattrib --fuzzy "$X" | grep . > "$X".fuzzy || rm -f "$X".fuzzy
26 nu=$((`grep -c ^#: "$X".untranslated` + 0))
27 nf=$((`grep -c ^#: "$X".fuzzy` + 0))
30 echo "TODO for translation $X:"
31 echo "Untranslated: $nu"
33 ltr=`grep '^"Last-Translator: ' "$X" | cut -d ' ' -f 2- | cut -d '\\' -f 1 | egrep -v '<LL@li.org>|<EMAIL@ADDRESS>'`
34 ltm=`grep '^"Language-Team: ' "$X" | cut -d ' ' -f 2- | cut -d '\\' -f 1 | egrep -v '<LL@li.org>|<EMAIL@ADDRESS>'`
35 echo "Translators: $ltr, $ltm"
43 if [ x"$ltr" = x"$ltm" ]; then
58 echo "Send mail? [y/n]"
63 if [ $nu -gt 0 ]; then
64 attach="$attach $X.untranslated"
66 if [ $nf -gt 0 ]; then
67 attach="$attach $X.fuzzy"
73 as you provided us with translations in the past, we kindly ask you
74 to update the translation to match changes in the Xonotic source. Can
75 you please work on them and provide updates to us?
77 If you do not wish to be contacted for translation updates any more,
78 please tell us in a reply to this message.
81 if [ $nu -gt 0 ]; then
83 Attached to this message is a file
85 with $nu yet to be translated messages. Please translate them and reply
86 with the file containing the translations in the "msgstr" fields.
90 if [ $nf -gt 0 ]; then
92 Attached to this message is a file
94 with $nf automatically generated translations. Please verify and/or fix
95 them and reply with the file having been verified by you.
105 -e "set from=\"divVerent@xonotic.org\"" \
106 -e "set use_from=yes" \
107 -e "set use_envelope_from=yes" \
108 -s "Need update for translations: $X" \
110 -b "divVerent@xonotic.org" \
123 for X in "$VM".dat.*.po.disabled; do
124 [ -f "$X" ] || continue
125 msgmerge -F -U "$X" "$VM".dat.pot >/dev/null 2>&1