]> jfr.im git - irc/evilnet/x3.git/blob - languages/lang_export.sh
remove some debug chatter
[irc/evilnet/x3.git] / languages / lang_export.sh
1 #!/bin/sh
2 #
3 # run this script and pipe the output to LANG/strings.db, then change the english strings
4 # to LANG. (where LANG is the language code, eg fr, de, etc). DO NOT change the order of %s %d etc
5 # in the help file!
6 #
7 # Then, copy *.help into LANG/ and translate them too.
8 #
9 # thanks to Nei for this:
10 grep -lR ry\ ms ..|grep -v '{arch'|xargs perl -ne 'if(/message_entry msgtab/../{ NULL, NULL }/){print"$1 $2;\n"if/\s+{ (".*?"), (".*") },/}'