This is an external program to GenJ made to translate the ressource files to another language (eg. to translate them into french).
In it, put the following commands (this example is given for Linux, but change it to match your system, of course) :
#!/bin/sh
#
echo "/*"
echo " * Ressource Editor startup file for Genj"
echo " * "
echo " * If something goes wrong now you probably have an"
echo " * incomplete CLASSPATH. Either copy swing.jar to"
echo " * your lib sub-directory or specify its location via"
echo " * (e.g.) export CLASSPATH=/usr/lib/swing/swing.jar"
echo " * before starting this script."
echo " */"
export CLASSPATH=./lib/resedit.jar:./lib/swing.jar:$CLASSPATH
export PATH=/usr/local/jdk1.2.2/bin:$PATH
cd /home/fm/genj
java com.nm.resedit.Main
To start the ressource editor, all you have to do now is to run
your startup file you've just created by typing "resedit".
Please select an input archive, (eg. genj.jar), after clicking
on the OPEN button once started up.
Then either translate the existing texts by loading a TRANSLATION
or go through texts manually. In the second case, you have to select
a node on the left (corresponds to a directory) to start the
translation.
Then choose ressource lines on the right and enter the translation
in the input line at the bottom.
After translating the ressource lines, you can SAVE the resulting
archive to a ZIP or JAR file. You have to specify which locale you
are referring to, during LOAD, TRANSLATE or SAVING. This corresponds
to a ressources_xyz.properties file schema which is then used by
the application loading these ressources. The name of the files
you load and save is not important for Java - the locale you choose
is used inside the language archive only. For organizing the
files it's simply easier to identify them as file_XY.zip (where
XY is the contained locale - eg: genj_fr.zip).
[Note for Java 1.1: You have to have a swing.jar library in your
classpath]