Digital Guide section 42 talks about localization.
Also covered in the Web Based Training Section 6.5 - Part 6
The Java Doc unfortunately doesn't give a lot of guidance on this, but the Tokens are defined and created in the Mashup environment (look for the globe icon)
And then you can duplicate any Localization table and name it to your language and then update the Token values.
Localization is triggered by the User's language setting.