Claims
- 1. A data-processing system-based method comprising:
reading translatable text in a first human language from a resource bundle; dynamically replacing the translatable text with a textual representation of the translatable text that contains a least one feature of a second human language; and displaying the textual representation.
- 2. The method of claim 1, wherein the at least one feature of the second human language includes a predicted text length.
- 3. The method of claim 1, wherein the at least one feature of the second human language includes a character set associated with the second human language.
- 4. The method of claim 3, wherein the character set is a multiple-byte character set.
- 5. The method of claim 3, wherein the textual representation contains characters from the character set associated with the second human language that are not associated with the first human language.
- 6. The method of claim 1, wherein the textual representation contains text in the first human language.
- 7. The method of claim 1, wherein the translatable text is replaced with the textual representation in response to a user input event.
- 8. The method of claim 1, wherein the resource bundle is a descendent class of a named resource bundle class having a name, and wherein replacing the translatable text with the textual representation is performed by executing code in a mock-translating resource bundle class having the name of the named resource bundle class.
- 9. The method of claim 8, wherein the mock-translating resource bundle class shares a name with a default resource bundle class, the method further comprising:
loading, with a class loader, a mock-translating resource bundle class rather than the default resource bundle class as a parent class for the resource bundle.
- 10. A computer program product in a computer-readable medium comprising functional descriptive material that, when executed by a computer, enables the computer to perform acts including:
reading translatable text in a first human language from a resource bundle; dynamically replacing the translatable text with a textual representation of the translatable text that contains a least one feature of a second human language; and displaying the textual representation.
- 11. The computer program product of claim 10, wherein the at least one feature of the second human language includes a predicted text length.
- 12. The computer program product of claim 10, wherein the at least one feature of the second human language includes a character set associated with the second human language.
- 13. The computer program product of claim 12, wherein the character set is a multiple-byte character set.
- 14. The computer program product of claim 12, wherein the textual representation contains characters from the character set associated with the second human language that are not associated with the first human language.
- 15. The computer program product of claim 10, wherein the textual representation contains text in the first human language.
- 16. The computer program product of claim 10, wherein the translatable text is replaced with the textual representation in response to a user input event.
- 17. The computer program product of claim 10, wherein the resource bundle is a descendent class of a named resource bundle class having a name, and wherein replacing the translatable text with the textual representation is performed by executing code in a mock-translating resource bundle class having the name of the named resource bundle class.
- 18. The computer program product of claim 17, wherein the mock-translating resource bundle class shares a name with a default resource bundle class, the method further comprising:
loading, with a class loader, a mock-translating resource bundle class rather than the default resource bundle class as a parent class for the resource bundle.
- 19. A data-processing system-based data processing system comprising:
means for reading translatable text in a first human language from a resource bundle; means for dynamically replacing the translatable text with a textual representation of the translatable text that contains a least one feature of a second human language; and means for displaying the textual representation.
- 20. The data processing system of claim 19, wherein the at least one feature of the second human language includes a predicted text length.
- 21. The data processing system of claim 19, wherein the at least one feature of the second human language includes a character set associated with the second human language.
- 22. The data processing system of claim 21, wherein the character set is a multiple-byte character set.
- 23. The data processing system of claim 21, wherein the textual representation contains characters from the character set associated with the second human language that are not associated with the first human language.
- 24. The data processing system of claim 19, wherein the textual representation contains text in the first human language.
- 25. The data processing system of claim 19, wherein the translatable text is replaced with the textual representation in response to a user input event.
- 26. The data processing system of claim 19, wherein the resource bundle is a descendent class of a named resource bundle class having a name, and wherein replacing the translatable text with the textual representation is performed by executing code in a mock-translating resource bundle class having the name of the named resource bundle class.
- 27. The data processing system of claim 26, wherein the mock-translating resource bundle class shares a name with a default resource bundle class, the method further comprising:
loading, with a class loader, a mock-translating resource bundle class rather than the default resource bundle class as a parent class for the resource bundle.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] The present application is related to U.S. Pat. No. 6,453,462 to Meade et al., entitled “MOCK TRANSLATION SYSTEM, METHOD, AND PROGRAM USING MULTI-BYTE PLACEHOLDER CHARACTERS TO TEST TRANSLATABILITY OF SOFTWARE THAT WILL DISPLAY MULTI-BYTE LANGUAGES,” which is hereby incorporated by reference.