Forum OpenACS Development: Re: Rules for writing code: I18N

Collapse
Posted by Malte Sussdorff on
Here is a step by step guide how I write new code (for TCL files):

- Write the code with English terms.
- Replace all the English terms with "<#_ fill in the english term here#>"
- Go to the APM, Go to the package, Click on I18N, click on "Replace .... ", click on "Show TCL Files".
- Select the TCL file you have been editing and press OK.

OpenACS is smart enough to create a message key out of your English term and store it in the database (and catalog files). It will even check if your English Term can be found in acs-kernel.common and use the common string instead.