WebGUI
      Click here to register.
      
PBWG Banner

i18n.pl

User: colink
Date: 6/22/2006 4:30 pm
Views: 3538
Rating: 11    Rate [
|
]

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:

  1. 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.
  2. 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.
  3. When it's done, it will also automatically rewrite all echo calls in your code to get calls.

 



Replies

PreviousBackNext