Course Content

If you are facing any issue in playing video please use Firefox browser.

Course Content

Description

How To Localize An Android Application

Localization is a device specific concept, our phone consists of different types of setting in which we set the settings according to our requirement.

An Android application can run on many devices in many different regions. In order to make your application more interactive, your application should handle text, numbers, files etc... in ways appropriate to the locals where your application will be used.

For example when we buy a new smartphone, it will ask us to choose language, so suppose if we select 'English' as our language, it will again ask us that which type of English do you want to continue with, like English(US), English (Britain), English(UK), Canada etc... So such kind of device specific setting is called Localization.

Localizing Strings

Italy, res/values-it/strings.xml

 

<;xml version=”1.0” encoding=”utf-8”?>

<resources>

<string name=”hello-world”>Ciao mondo!

</string>

</resources>

 

French, res/values-it/strings.xml

 

<;xml version=”1.0” encoding=”utf-8”?>

<resources>

<string name=”hello-world”>Bonjour le monde!

</string>

</resources>

Now we will look at a simple example which will tell us that how we use localization concept in our devices.

 

Region/Language

US

Italy

Russia

Canada

France

Other Location

English

US background image and English text.

 

 

Canadian background image and English text.

 

Earth image and English text.

Italian

 

Italian background image and Italian text.

 

 

 

Earth image and Chinese text.

Russian

 

 

Russian background image and Russian text.

 

 

Earth image and Japanese text.

French

 

 

 

Canadian background image and French text.

French background image and French text.

Earth image and French text.

Other Language

 

 

 

 

 

Earth image and English text.

FAQs

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download The Apps

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
297K+ Downloads
App Download Section Circle 1
4.5 Rating
App Download Section Circle 2
10K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere