Somaya Mig
Somaya Mig

Reputation: 11

It is about reading XML file in android studio

If I have XML file and it was wrote in Arabic, but my application supports 2 languages (Arabic & English), is there any way to change the sentences in XML file to English when the user changes the language of the app?

Upvotes: 0

Views: 194

Answers (4)

Paresh
Paresh

Reputation: 6857

I think Official Documentation is written in pretty well methodology -

So here I'm providing you that links - Let me entitle it as -

Thing to be taken care of while you are developing an App with muti-language support

Ps, First link is the parent of all, Go there - Its pretty interestring stuffs out there!

Upvotes: 1

Malik
Malik

Reputation: 904

You can create different XML files for different languages. The app/android will choose in condition to the system language which XML too choose.

You just have to create a new folder called values-ar in res/ where you put your Arabic strings.xml

Upvotes: 0

OlehKykena
OlehKykena

Reputation: 64

You should create strings.xml for Arabic and English languages

Upvotes: 0

Jan Slominski
Jan Slominski

Reputation: 2978

Everything you need is explained in the official Android Documentation.

Upvotes: 0

Related Questions