Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Java

Panel

Here is the code including the strings and skins:

C#

Panel

Here is the code including the strings and skins:

You naturally need ANTLR too; get it here.

You can compile this example like this:

Code Block
nant -t:net-1.1

Python

Panel

Here is the code including the strings and skins:

Summary

In summary, the key element to demonstrate here is that you do not have to duplicate all of your templates to change what they say. You can leave the formatting alone and, with a simple hashtable pulled from a data file, push in the proper strings per the locale. I also took the opportunity to show off just how easy it is to make multiple site skins.