for X in "$VM".dat.*.po; do
[ -f "$X" ] || continue
msgmerge -F -U "$X" "$VM".dat.pot >&2
- todo=$(
- msgattrib --untranslated "$X" | grep -A 2147483647 "^#:"
- msgattrib --fuzzy "$X" | grep -A 2147483647 "^#:"
- )
- if [ -n "$todo" ]; then
+ msgattrib --untranslated "$X" | grep . > "$X".untranslated || rm -f "$X".untranslated
+ msgattrib --fuzzy "$X" | grep . > "$X".fuzzy || rm -f "$X".fuzzy
+ nu=$((`grep -c ^#: "$X".untranslated` + 0))
+ nf=$((`grep -c ^#: "$X".fuzzy` + 0))
+ n=$(($nu + $nf))
+ if [ $n -gt 0 ]; then
echo "TODO for translation $X:"
- echo "$todo"
- echo
+ echo "Untranslated: $nu"
+ echo "Fuzzy: $nf"
+ ltr=`grep '^"Last-Translator: ' "$X" | cut -d ' ' -f 2- | cut -d '\\' -f 1 | egrep -v '<LL@li.org>|<EMAIL@ADDRESS>'`
+ ltm=`grep '^"Language-Team: ' "$X" | cut -d ' ' -f 2- | cut -d '\\' -f 1 | egrep -v '<LL@li.org>|<EMAIL@ADDRESS>'`
+ echo "Translators: $ltr, $ltm"
+ case "$ltr" in
+ '')
+ to=$ltm
+ cc=
+ ;;
+ *)
+ to=$ltr
+ if [ x"$ltr" = x"$ltm" ]; then
+ cc=
+ else
+ cc=$ltm
+ fi
+ ;;
+ esac
+ if [ -n "$to" ]; then
+ echo "To: $to"
+ fi
+ if [ -n "$cc" ]; then
+ echo "Cc: $cc"
+ fi
+ if [ -n "$to" ]; then
+ while :; do
+ echo "Send mail? [y/n]"
+ read -r yesno
+ case "$yesno" in
+ y)
+ zip -9r "$X"-todo.zip "$X".untranslated "$X".fuzzy
+ {
+ cat <<EOF
+Hi,
+
+we need updates to the translations you made for Xonotic.
+
+EOF
+ if [ $nu -gt 0 ]; then
+ cat <<EOF
+The attached zip file contains a file
+$X.untranslated
+with $nu yet to be translated messages. Please translate them and reply with
+the file containing the translations in the "msgstr" fields.
+
+EOF
+ fi
+ if [ $nf -gt 0 ]; then
+ cat <<EOF
+The attached zip file contains a file
+$X.fuzzy
+with $nf automatically generated translations. Please verify and/or fix them
+and reply with the file having been verified by you.
+
+EOF
+ fi
+ cat <<EOF
+Thanks in advance,
+
+Team Xonotic
+EOF
+ } | mail \
+ -s "Need update for translations: $X" \
+ -a "$X"-todo.zip \
+ -c "$cc" \
+ -b "divVerent@xonotic.org" \
+ -S from="divVerent@xonotic.org" \
+ "$to"
+EOF
+ n)
+ break
+ ;;
+ esac
+ done
+ fi
fi
done
for X in "$VM".dat.*.po.disabled; do
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 06:05+0200\n"
+"POT-Creation-Date: 2011-04-27 06:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
"Project-Id-Version: Xonotic 0.1preview\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 06:05+0200\n"
+"POT-Creation-Date: 2011-04-27 06:17+0200\n"
"Last-Translator: Rodrigo Mouton Laudin <ratogenesis@gmail.com>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
msgstr ""
"Project-Id-Version: 0.1preview\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 06:05+0200\n"
+"POT-Creation-Date: 2011-04-27 06:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Henry 'Exitium' Sanmark <henry.sanmark@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
"Project-Id-Version: Xonotic 0.1preview\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 06:05+0200\n"
+"POT-Creation-Date: 2011-04-27 06:17+0200\n"
"PO-Revision-Date: 2011-03-09 15:48-0500\n"
"Last-Translator: Maxime Paradis <taximus.micro@gmail.com>\n"
"Language-Team: French <kde-i18n-doc@kde.org>\n"
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 06:05+0200\n"
+"POT-Creation-Date: 2011-04-27 06:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
"Project-Id-Version: 0.1preview\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 06:05+0200\n"
+"POT-Creation-Date: 2011-04-27 06:17+0200\n"
"PO-Revision-Date: 2011-03-27 18:47+0100\n"
"Last-Translator: Antonio 'terencehill' Piu <piuntn@gmail.com>\n"
"Language-Team: \n"
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 06:05+0200\n"
+"POT-Creation-Date: 2011-04-27 06:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 06:05+0200\n"
+"POT-Creation-Date: 2011-04-27 06:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
"Project-Id-Version: Xontoic 0.1preview\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 06:05+0200\n"
+"POT-Creation-Date: 2011-04-27 06:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Ricardo 'Hellgardia' Silva <ricardo.mccs@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
"Project-Id-Version: Xonotic 0.1preview\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 06:05+0200\n"
+"POT-Creation-Date: 2011-04-27 06:17+0200\n"
"PO-Revision-Date: 2011-01-18 11:53+0100\t\n"
"Last-Translator: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
"Project-Id-Version: 0.1preview\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 06:05+0200\n"
+"POT-Creation-Date: 2011-04-27 06:17+0200\n"
"PO-Revision-Date: 2011-01-20 13:16+0300\n"
"Last-Translator: Nikoli <nikoli@lavabit.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"