Changeset 1521

Show
Ignore:
Timestamp:
01/20/08 00:39:22 (11 months ago)
Author:
ewout
Message:

Better feedback text when removing members from your communities. Resolves #271.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/community/lib/community_member_remove.php

    r1248 r1521  
    3333            exit; 
    3434          } else { 
    35             $run_result[]= sprintf(__gettext("%s was removed from your community"), $community_name); 
     35            $friend_name = user_info('username', $friend_id);  
     36            $run_result[]= sprintf(__gettext("%s was removed from your community"), $friend_name);  
    3637          } 
    3738        } else { 
    3839          if ($action == "leave") { 
    39             $run_result[]= sprintf(__gettext("You coundn't left %s"), $community_name); 
     40            $run_result[]= sprintf(__gettext("An error occured: you couldn't leave %s"), $community_name); 
    4041          } else { 
    41             $run_result[]= sprintf(__gettext("%s coundn't be removed from your community"), $community_name); 
     42            $run_result[]= sprintf(__gettext("An error occured: %s couldn't be removed from your community"), $community_name); 
    4243          } 
    4344        }