aboutsummaryrefslogtreecommitdiff
path: root/advtrains/locale/topo.sh
blob: 23f81b184fdadae92dcfaf4ff2eed53176af9011 (plain)
1
2
3
4
#!/bin/sh

head -n18 ../po/template.pot | sed 's/charset=CHARSET/charset=UTF-8/'
sed -En 's/@n/\\n/g;s/@\n/\\n/g;s/\"/\\"/g;s/^([^=]+)=\1$/\1=/;s/^([^=]+)=([^=]*)$/\nmsgid "\1"\nmsgstr "\2"/gp'