mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Added translatable error message for MemberTableField
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71389 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c4d3abcc29
commit
aa69629a3c
@ -170,10 +170,23 @@ class MemberTableField extends ComplexTableField {
|
||||
|
||||
// TODO add javascript to highlight added row (problem: might not show up due to sorting/filtering)
|
||||
FormResponse::update_dom_id($this->id(), $this->renderWith($this->template), true);
|
||||
FormResponse::status_message(_t('MemberTableField.ADDEDTOGROUP','Added member to group'), 'good');
|
||||
FormResponse::status_message(
|
||||
_t(
|
||||
'MemberTableField.ADDEDTOGROUP','Added member to group'
|
||||
),
|
||||
'good'
|
||||
);
|
||||
|
||||
} else {
|
||||
FormResponse::status_message(Convert::raw2xml("I couldn't add that user to this group:\n\n" . $valid->starredlist()), 'bad');
|
||||
$message = sprintf(
|
||||
_t(
|
||||
'MemberTableField.ERRORADDINGUSER',
|
||||
'There was an error adding the user to the group: %s'
|
||||
),
|
||||
Convert::raw2xml($valid->starredList())
|
||||
);
|
||||
|
||||
FormResponse::status_message($message, 'bad');
|
||||
}
|
||||
|
||||
return FormResponse::respond();
|
||||
|
Loading…
Reference in New Issue
Block a user