On Fri, Apr 17, 2009 at 03:26:42PM -0700, Jordan Zimmerman wrote: > 2) The specs I've seen state that "it is usually beneficial to create > activities using Message Templates." But, I don't see where Message > Templates are defined or how they relate to Activities. Does Shindig > support Message Templates? If so, where are they defined/documented?
Apart from http://code.google.com/apis/opensocial/docs/0.8/reference/#opensocial.Activity (which I guess is the spec you are quoting) there is some more info on templates in http://code.google.com/apis/gadgets/docs/i18n.html#Bundles In a nutshell, using titleId/bodyId in an activity allows it to have its text come from the gadget's bundle of translated messages, instead of having it hardcoded. This enables things like localizing them on the fly to the locale of the user viewing it and summarizing repeated activities by grouping on one of the parameters present in the template. shindig "supports" message templates in that it will receive templateIds and template parameters for an activity and will forward them to the ActivityService for storage. As it is the container, and not shindig, that will eventually display those activities, it is up to it to actually do something with the templates, presumably querying the IDs from the gadget xml and performing the substitutions into the template.

