- rm "$goldfile"
- else
- msgmerge -F -U "$gnewfile" common.pot
- cp "$gnewfile" "$tcurfile"
- fi
-done
-for f in translations/xonotic.commonpot/*..po; do
- lang=${f%..po}
- lang=${lang#translations/xonotic.commonpot/}
- [ x"$lang" != x"en" ] || continue
- tcurfile=translations/xonotic.commonpot/$lang..po
- gnewfile=common.$lang.po
- if ! [ -f "$gnewfile" ]; then
- touch "$gnewfile"
- git add "$gnewfile"
- cp "$tcurfile" "$gnewfile"
- fi
-done
-tx push -t --skip
-date > .tx/merge-base
+ done
+ tx push -t --skip
+ date > .tx/merge-base
+
+ # Generate Swiss Standard German from German.
+ msgfilter -i common.de.po -o common.de_CH.po perl -pe '
+ # Character filters go here.
+ s/ß/ss/g;
+ # Word filters go here. By default we match even inside words, as there
+ # are constructs like ^BGflag where "flag" is the actual word. Make
+ # sure to not commit the clbuttical mistake.
+ s/eventuell/allfällig/g;
+ '
+
+ # Build new languages list.
+ sh check-translations.sh txt > languages.txt.new
+ mv languages.txt.new languages.txt
+
+ # Report stats.
+ git diff --stat
+ git diff --color-words languages.txt
+fi