truelight@0: This is a guide to compile strgen on gcc truelight@0: truelight@0: All this is done in the makefile, so it's only interesting for people, who wants to alter something themselves (translators) truelight@0: truelight@0: HOWTO compile lng files: truelight@0: truelight@0: First you get strgen compiled (look below/download nightly build/run makefile) truelight@0: truelight@0: strgen takes the argument of a txt file and translates it to a lng file and places that lng file in the same dir as the txt file. truelight@0: truelight@0: Example 1: truelight@0: if you are in the root of your working copy (svn code), you should type truelight@0: strgen/strgen lang/english.txt truelight@0: to compile englist.lng. It will be placed in the lang dir truelight@0: truelight@0: Example 2: truelight@0: you have strgen but not the source and you want to compile a txt file in the same dir. YOu should type truelight@0: ./strgen english.txt truelight@0: and you will get english.lng in the same dir truelight@0: truelight@0: You can change english to whatever language you want truelight@0: truelight@0: Commands used by strgen truelight@0: truelight@0: -v --version truelight@0: strgen will tell what svn revision it is based on truelight@0: truelight@0: -t truelight@0: strgen will add to the missing strings and use the english strings while compiling truelight@0: this will need english.txt to be present truelight@0: truelight@0: -w truelight@0: strgen will print any missing strings to standard error output(stderr) truelight@0: this will need english.txt to be present truelight@0: truelight@0: here are a very useful tool for translators: truelight@0: http://openttd.rulez.org/ truelight@0: truelight@0: truelight@0: HOWTO compile strgen: truelight@0: (this should be useless as you can just type make) truelight@0: Goto the main dir truelight@0: Compile by typing truelight@0: gcc strgen/strgen.c -o strgen/strgen -DUNIX truelight@0: or if you want it to tell the revision too truelight@0: gcc strgen/strgen.c rev.o -o strgen/strgen -DUNIX -DWITH_REV (this is the one the makefile uses) truelight@0: truelight@0: you now have a program called strgen in the strgen directory truelight@0: