Fix the notification bar messages that show up when you click 'Save Changes' button. It only works on Edit views right now.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Fri, 30 Jan 2009 20:16:53 +0000
changeset 1087 c6a7f5957b30
parent 1086 f48c2e5e17c2
child 1088 7ad48d59da3d
Fix the notification bar messages that show up when you click 'Save Changes' button. It only works on Edit views right now. Patch by: Madhusudan C.S Reviewed by: Pawel Solyga
app/soc/views/helper/params.py
--- a/app/soc/views/helper/params.py	Fri Jan 30 17:44:31 2009 +0000
+++ b/app/soc/views/helper/params.py	Fri Jan 30 20:16:53 2009 +0000
@@ -170,7 +170,7 @@
       }
 
   new_params['list_description'] = DEF_LIST_DESCRIPTION_FMT % params
-  new_params['save_message'] = [ugettext('Profile saved.')]
+  new_params['save_message'] = [ugettext('%(name)s saved.' % params)]
   new_params['submit_msg_param_name'] = DEF_SUBMIT_MSG_PARAM_NAME
   new_params['edit_params'] = {
       DEF_SUBMIT_MSG_PARAM_NAME: DEF_SUBMIT_MSG_PROFILE_SAVED,