]> jfr.im git - irc/evilnet/x3.git/blame - languages/lang_export.sh
Couple of srvx updates.
[irc/evilnet/x3.git] / languages / lang_export.sh
CommitLineData
db219d30 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:
10grep -lR ry\ ms ..|grep -v '{arch'|xargs perl -ne 'if(/message_entry msgtab/../{ NULL, NULL }/){print"$1 $2;\n"if/\s+{ (".*?"), (".*") },/}'