If I understand you correctly, you have an English-speaking server, and a multilingual Android UI. You also have a requirement to translate at runtime.
In that case, I would recommend the server provide the translation map, comme ca: <string name="dog">ogday</string> When you build the list view or list activity, you put both "ogday" and "dog" into the list item (display the former, but also store the latter), so that when the user selects it, you pull out the English word and send it back to the server. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 12, 12:35 am, kizza <kieran.flem...@gmail.com> wrote: > Hi, > I am having 2 issues with Android trying to make my translated app. I > have a strings file like this: > <string name="dog">Dog</string> > <string name="cat">Cat</string> > <string name="bird">Bird</string> > <string-array name="animal_types" > > <item>@string/Dog</item> > <item>@string/Cat</item> > <item>@string/bird</item> > </string-array> > > and these are used to populate a ListActivity. The name attribute is > the value that the server expects. > > 1: When the user clicks an entry in the list, is there a way to return > the string's name in the translation file, rather than the translated > string? > 2: If the server returns, for example, 'bird', is there a way that I > can translate that string at runtime? > > If it turns out that there is no way to do this with the translation > system, what would you suggest? > > Thanks a lot! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---