资 源 简 介
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:
accenter - replaces US-ASCII characters with accented versions, to make it obvious if parts of the output are hard-coded in the program and can"t be localized
brackets - adds [brackets] around each message, to show where messages have been concatenated together. This is a localization problem because some languages may need to reorder phrases or the translation may change depending on what is around it.
expander - make