Chapter 18. Localization
This chapter is quick and simple, but what we will learn to do here can make your app accessible to millions more potential users. We will see how to add additional languages. We will see how adding text the correct way – via String resources – benefits us when it comes to adding multiple languages.
In this chapter, we will do the following:
- Make Note to Self multilingual by adding the Spanish and German languages
- Learn how to use String resources more fully
Let's get started.
Making the Note to Self app for Spanish, English, and German speakers
First, we need to add some folders to our project – one for each new language. The text is classed as a resource and, consequently, needs to go in the res
folder. Follow these steps ...
Get Android Programming for Beginners - Second 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.