On 11/17/2009 11:44 AM, Rob Dolin wrote:
> Hey all,
>
> I was thinking about how to represent the action of Digging (a primary
> action on
http://www.digg.com/.)
>
> In many ways, digging is like posting a bookmark, so the core
> <activity:verb> of “…post” and the core <activity:object-type> of
> “…bookmark” would potentially make sense, but if Digg (or a similar
> site) wanted a special word to go along with the verb “post” how would
> it be conveyed?
>
> I was looking around for ways to represent this and thought that the
> “alt=” attribute (like in an HTML <img> tag) would potentially be
> appropriate. Thus, a publishing application could potentially emit:
>
> <activity:verb
> *alt="dugg">*
http://activitystrea.ms/schema/1.0/post</activity:verb>
>
> And a rendering application that was knowledgeable of the “alt=”
> attribute could render “{name} dugg {bookmark}” instead of “{name}
> posted {bookmark}.”
>
> What do folks think?
>
This (providing an alternative word) has been proposed before, but it
doesn't play well with internationalization. If my default rendering of
that verb is "A Martin Atkins le gusta esto" (which I stole from
Facebook's Spanish localization of "Martin Atkins liked this") then
there isn't really anywhere sensible I can substitute your word "dugg".
I think a more complete solution will be a mechanism similar in
principle to the template bundles used by Facebook where a particular
pair of (verb, object-type) is associated with a template in some format
that describes how to render it in a particular language.
We've done some brainstorming about this in the past but figured that
we'd leave this until we have the core spec out of the way; for the
moment the workaround is to just continue to include special cases in
your consumer code for things like digg.
It'd be nice to have a spec for "Activity Streams Templates", but I
think that's a big project in itself and I don't think we should get
distracted from the main specifications right now. (Though obviously I
can't and won't stop anyone who wants to work on such specs from working
on them!)