What would be the best design to localize strings in Android that come from a web-service hosted on Google app engine?
My Android application calls a REST web-service that returns items. Each item has a "tags" attribute that contains strings.
Server-side, these tags are stored in the datastore, in English, in the item (with a StringListProperty). The handler is hardly more complex than:
class MyHandler(webapp2.RequestHandler):
def get(self):
item = MyModel.get_by_id(id)
self.response.write(json.encode(item))
I wonder what design recommendations you can suggest to localize this "tags".
- Localize server-side? This does not sound very usual (flickr, stackoverflow, etc.) don't do that. And, then, how to handle the localization? (see code snippet above)
- Localize client-side? Then, what is the most efficient way to do that?