Looks good overall! Just define this message in js/messages.php, then use PMA_messages here.