Chapter 24. Internationalization and Localization
Nobody can be exactly like me. Sometimes even I have trouble doing it. | ||
--Tallulah Bankhead |
The credo of “Write once, run anywhere™” means that your code will run in many places where languages and customs are different from yours. With a little care you can write programs that can adapt to these variations gracefully. Keeping your programs supple in this fashion is called internationalization. You have several tools for internationalizing your code. Using internationalization tools to adapt your program to a specific locale—such as by translating messages into the local language—is called localization.
The first tool is inherent in the language: Strings are in Unicode, which can express almost ...
Get THE Java™ Programming Language, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.