Hi, and thanks for your help. I've managed to make my own ListAdapter now, but how do I load the resources of another language? I tried doing a hack by changing the Locale halfway with Locale.setDefault(Locale.ENGLISH); but when I requested the resource it still gives me the local language. This is on the 1.5 emulator set to French. I also tried using the ResourceBundle class but that doesn't seem to work with Android resource files (I think!)
On Jul 14, 4:53 am, "Yusuf T. Mobile" <[email protected]> wrote: > If I understand you correctly, you have anEnglish-speakingserver, > and a multilingual Android UI. You also have a requirement to > translate at runtime. > > In that case, I would recommend theserverprovide 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 theEnglish > word and send it back to theserver. > > 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 <[email protected]> wrote: > > > Hi, > > I am having 2 issues with Android trying to make mytranslatedapp. 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 theserverexpects. > > > 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 thetranslated > > string? > > 2: If theserverreturns, 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

