using different string files in android

Posted by boreas on Stack Overflow See other posts from Stack Overflow or by boreas
Published on 2012-12-05T10:57:42Z Indexed on 2012/12/05 11:04 UTC
Read the original article Hit count: 132

Filed under:
|
|
|

I'm porting my iPhone app to android and I'm having a problem with the string files now.

The app is a translation tool and users can switch the languages, so all the localized strings are in both languages and they are independent from what locale the OS is running.

For iOS version I have different files like de.strings, en.strings and fr.strings and so on. For every target with specified language pair I read the strings from the string tables, e.g. for de-fr I will include de.strings and fr.strings in project and set the name of the string tables in the info-list file and read strings from them. In the end I have one project containing different targets (with different info-list files) and all are well configured.

I'm intending to do the same on android platform, but

  1. Is only one strings.xml allowed per project?

  2. How do I set different build target?

  3. How do I specify per target which strings.xml it should read?

© Stack Overflow or respective owner

Related posts about android

Related posts about Xml