Reputation: 11
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
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
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
Reputation: 2978
Everything you need is explained in the official Android Documentation.
Upvotes: 0