// Does the group exist?
if( in_array( $groupname, OC_Group::getGroups())) {
- OC_JSON::error(array("data" => array( "message" => 'Group already exists' )));
+ OC_JSON::error(array("data" => array( "message" => $l->t("Unable to add group") )));
exit();
}
OC_JSON::success(array("data" => array( "groupname" => $groupname )));
}
else{
- OC_JSON::error(array("data" => array( "message" => 'Unable to add group' )));
+ OC_JSON::error(array("data" => array( "message" => $l->t("Unable to add group") )));
}