Adding support for localization
The union of the previous recipes of this book provides you with a complete set of tools to develop what could be a successful game except for its narrow audience.
Libgdx comes with an out of the box internationalization and localization (i18N) system, which means that you will be able to localize your application according to the user's needs without the hassle of implementing your own or hardcoding. In addition, this will allow you to have one or more language files that will contain all the strings of your application, identified by a name that will abstract you from dealing with each language separately.
This data-driven approach fits perfectly for nonprogrammers, translators, or community projects where everybody can contribute with new translations just by editing a friendly text file.
Getting ready
Firstly, check whether you have imported the sample projects into your Eclipse workspace as described in Chapter 1, Diving into Libgdx.
Language files are...