Android Programming The Big Nerd Ranch Guide by Bill Phillips, Chris Stewart, Kristin Marsicano (z-lib.org)

(gtxtreme123) #1

18. Localization


Knowing CriminalIntent is going to be a wildly popular app, you have decided to make it accessible
to a larger audience. Your first step is to localize all of the user-facing text so your app can be read in
Spanish or English.


Localization is the process of providing the appropriate resources for your app based on the user’s
language setting. In this chapter you will provide a Spanish version of strings.xml. When a device’s
language is set to Spanish, Android will automatically find and use the Spanish strings at runtime
(Figure 18.1).


Figure 18.1  IntentoCriminal

Free download pdf