I’m not sure if this is a silly question or not but I have an app that I need to make available to other languages. I have read a lot about this but I am confused on how to go about it. Do I actually need to translate the entire app into whichever languages I would like or will the system do that? I read the Android doc about using localization (Android docs) and many forum posts. I have read about changing the Configuration in the app but even changing the locale on my device doesn’t work. Can anyone please point me in the right direction for this? I want the user to be able to change languages for the app itself as it may be passed around between people with different preferences. Thanks in advance!
Share
Basically you need to put strings that you want translated into a file
for the default en locale and then e.g. refer to such an entry in code via
Resources.getString(R.string.theId)or in other xml files via@string/theId,where
theIdrepresents the id of the entry as e.g. inin the xml file.
Now to translate it you create additional
files where stands for the respective 2 letter locale code.