More improvements to the sounds tutorial, reintroduced generalized app name. Why is this implemented as a list of tuples, wouldn't this be better implemented as a dictionary?

This commit is contained in:
Bill Dengler 2015-04-17 19:32:30 -04:00
parent d0924a6e15
commit a9405e32e9

View File

@ -1,25 +1,26 @@
# -*- coding: utf-8 -*- #-*- coding: utf-8 -*-
import reverse_sort import reverse_sort
import application
actions = reverse_sort.reverse_sort([ ("audio", _(u"Audio tweet.")), actions = reverse_sort.reverse_sort([ ("audio", _(u"Audio tweet.")),
("create_timeline", _(u"User-defined buffer created.")), ("create_timeline", _(u"User-defined buffer created.")),
("delete_timeline", _(u"User-defined buffer destroied.")), ("delete_timeline", _(u"User-defined buffer destroied.")),
("dm_received", _(u"Direct message received.")), ("dm_received", _(u"Direct message received.")),
("dm_sent", _(u"Direct message sent.")), ("dm_sent", _(u"Direct message sent.")),
("error", _(u"Error.")), ("error", _(u"Error.")),
("favourite", _(u"You favorited a tweet.")), ("favourite", _(u"Tweet favorited.")),
("favourites_timeline_updated", _(u"Someone's favourites have been updated.")), ("favourites_timeline_updated", _(u"Someone's favourites have been updated.")),
("geo", _(u"Geotweet.")), ("geo", _(u"Geotweet.")),
("limit", _(u"Boundary reached.")), ("limit", _(u"Boundary reached.")),
("list_tweet", _(u"List updated.")), ("list_tweet", _(u"List updated.")),
("max_length", _(u"Too many characters.")), ("max_length", _(u"Too many characters.")),
("mention_received", _(u"You've been mentioned.")), ("mention_received", _(u"Mension received.")),
("new_event", _(u"New event.")), ("new_event", _(u"New event.")),
("ready", _(u"Application is ready.")), ("ready", _(unicode(application.name+" is ready."))),
("reply_send", _(u"You've replied publicly.")), ("reply_send", _(u"Mention sent.")),
("retweet_send", _(u"You've retweeted.")), ("retweet_send", _(u"Tweet retweeted.")),
("search_updated", _(u"A search buffer has been updated.")), ("search_updated", _(u"A search buffer has been updated.")),
("tweet_received", _(u"New tweet in home buffer.")), ("tweet_received", _(u"Tweet received.")),
("tweet_send", _(u"You've sent a tweet.")), ("tweet_send", _(u"Tweet sent.")),
("trends_updated", _(u"A trending topic buffer has been updated.")), ("trends_updated", _(u"A trending topic buffer has been updated.")),
("tweet_timeline", _(u"New tweet in user-defined buffer.")), ("tweet_timeline", _(u"New tweet in user-defined buffer.")),
("update_followers", _(u"New follower.")), ("update_followers", _(u"New follower.")),