I am transferring the iPhone app to android, and now I have a problem with string files.
The application is a translation tool, and users can switch between languages, so all localized strings are in both languages, and they do not depend on which OS language works.
For the iOS version, I have different files like de.strings, en.strings and fr.strings, etc. For each target with a specified language pair, I read rows from string tables, for example. for de-fr, I will include de.strings and fr.strings in the project and set the name of the string tables in the info-list file and read the rows from them. In the end, I have one project containing different goals (with different info list files), and they are all well tuned.
I intend to do the same on the Android platform, but
Is only one strings.xml allowed for each project?
How to set another build target? for example, my de-fr and de-en translation applications are actually two applications in which the only difference is pairs of languages. How can I install something so that I can use one project to create two applications? In Xcode, this is simple, but I cannot find a solution with eclipse.
How to specify for each purpose that strings.xml should be read?
Thank you for the answers, but Please note that I need the language settings of the OS locale, that is, if the user changes the OS locale from en to de, my application still displays localized strings in English. Actually I ask how can I install something like prebuild and download various string files for different purposes.
source share