This library provides a tool and an API to perform pseudolocalization. Pseudolocalization generates a fake translation of messages of a program, which helps to highlight weaknesses and bugs in the original program regarding localization.
The library includes a structured message API to allow it to be used for complex multi-part messages, and includes the following pseudolocalization methods:
These methods can be combined in any order and with user-written methods. In addition, HTML tags can optionally be preserved (it is not recommended to give them to the translator, but especially simple tags show up in translatable text frequently).
These can also be accessed via locale variant subtags, which we hope to get standardized. A variant subtag of psaccent corresponds to accenter, expander, and brackets (in that order), and a variant subtag of psbidi corresponds to fakebidi.
Initially this project consists of just a library to be used by other tools, but eventually it will provide a command-line tool for generating pseudolocalized message files that can be used just like real translated files in your build process. Integration with GWT is also planned.