This script will help you develop internationalized WebGUI code by automatically making i18n files for you.
Documentation is in POD format inside the script. To access it, download it and do a perldoc i18n.pl.
Here are some of the more important details:
- Do development as before, but use the echo method instead of get method
of the i18n script. This lets you prototype your labels without
actually having an i18n file.
- When you're done with your
script, run i18n.pl against your script. It will parse your
code, pick out the echo calls, figure out which namespace they go in,
and then either build missing i18n files and/or add entries to existing
i18n files.
- When it's done, it will also automatically rewrite all echo calls in your code to get calls.