Use "ID" instead of "Name" and "Display Name" instead of "Title"

This commit is contained in:
Johannes Meyer 2019-01-09 10:31:02 +01:00
parent 510267c7d0
commit a707ee3eb7
4 changed files with 12 additions and 12 deletions

View file

@ -66,7 +66,7 @@ class AddNodeForm extends QuickForm
protected function addNewProcess()
{
$this->addElement('text', 'name', array(
'label' => $this->translate('Name'),
'label' => $this->translate('ID'),
'required' => true,
'description' => $this->translate(
'This is the unique identifier of this process'
@ -74,9 +74,9 @@ class AddNodeForm extends QuickForm
));
$this->addElement('text', 'alias', array(
'label' => $this->translate('Title'),
'label' => $this->translate('Display Name'),
'description' => $this->translate(
'Usually this title will be shown for this node. Equals name'
'Usually this name will be shown for this node. Equals ID'
. ' if not given'
),
));

View file

@ -13,7 +13,7 @@ class BpConfigForm extends BpConfigBaseForm
public function setup()
{
$this->addElement('text', 'name', array(
'label' => $this->translate('Name'),
'label' => $this->translate('ID'),
'required' => true,
'validators' => array(
array(
@ -36,9 +36,9 @@ class BpConfigForm extends BpConfigBaseForm
));
$this->addElement('text', 'Title', array(
'label' => $this->translate('Title'),
'label' => $this->translate('Display Name'),
'description' => $this->translate(
'Usually this title will be shown for this process. Equals name'
'Usually this name will be shown for this process. Equals ID'
. ' if not given'
),
));

View file

@ -87,7 +87,7 @@ class EditNodeForm extends QuickForm
protected function addNewProcess()
{
$this->addElement('text', 'name', array(
'label' => $this->translate('Name'),
'label' => $this->translate('ID'),
'required' => true,
'disabled' => true,
'description' => $this->translate(
@ -96,9 +96,9 @@ class EditNodeForm extends QuickForm
));
$this->addElement('text', 'alias', array(
'label' => $this->translate('Title'),
'label' => $this->translate('Display Name'),
'description' => $this->translate(
'Usually this title will be shown for this node. Equals name'
'Usually this name will be shown for this node. Equals ID'
. ' if not given'
),
));

View file

@ -32,7 +32,7 @@ class ProcessForm extends QuickForm
{
if ($this->node === null) {
$this->addElement('text', 'name', array(
'label' => $this->translate('Name'),
'label' => $this->translate('ID'),
'required' => true,
'description' => $this->translate(
'This is the unique identifier of this process'
@ -47,9 +47,9 @@ class ProcessForm extends QuickForm
}
$this->addElement('text', 'alias', array(
'label' => $this->translate('Title'),
'label' => $this->translate('Display Name'),
'description' => $this->translate(
'Usually this title will be shown for this node. Equals name'
'Usually this name will be shown for this node. Equals ID'
. ' if not given'
),
));