mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°931: Tags dictionary and validation pattern
This commit is contained in:
@@ -6696,7 +6696,6 @@ class AttributeExternalField extends AttributeDefinition
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -56,7 +56,8 @@ abstract class TagSetFieldData extends cmdbAbstractObject
|
||||
"sql" => 'code',
|
||||
"default_value" => '',
|
||||
"is_null_allowed" => false,
|
||||
"depends_on" => array()
|
||||
"depends_on" => array(),
|
||||
"validation_pattern" => '^[a-zA-Z0-9]{3,}$',
|
||||
)));
|
||||
MetaModel::Init_AddAttribute(new AttributeString("label", array(
|
||||
"allowed_values" => null,
|
||||
|
||||
@@ -917,12 +917,20 @@ Dict::Add('EN US', 'English', 'English', array(
|
||||
Dict::Add('EN US', 'English', 'English', array(
|
||||
'Class:TagSetFieldData' => '%2$s for class %1$s',
|
||||
'Class:TagSetFieldData+' => '',
|
||||
|
||||
'Class:TagSetFieldData/Attribute:code' => 'Code',
|
||||
'Class:TagSetFieldData/Attribute:code+' => 'Internal code. Must contain at least 3 alphanumeric characters',
|
||||
'Class:TagSetFieldData/Attribute:label' => 'Label',
|
||||
'Class:TagSetFieldData/Attribute:label+' => 'Displayed label',
|
||||
'Class:TagSetFieldData/Attribute:description' => 'Description',
|
||||
'Class:TagSetFieldData/Attribute:description+' => 'Description',
|
||||
|
||||
'Core:TagSetFieldData:ErrorDeleteUsedTag' => 'Used tags cannot be deleted',
|
||||
'Core:TagSetFieldData:ErrorDuplicateTagCodeOrLabel' => 'Tags codes or labels must be unique',
|
||||
'Core:TagSetFieldData:ErrorTagCodeSyntax' => 'Tags code should contain between 3 and %1$d alphanumeric characters',
|
||||
'Core:TagSetFieldData:ErrorTagCodeSyntax' => 'Tags code must contain between 3 and %1$d alphanumeric characters',
|
||||
'Core:TagSetFieldData:ErrorTagCodeReservedWord' => 'The chosen tag code is a reserved word',
|
||||
'Core:TagSetFieldData:ErrorTagLabelSyntax' => 'Tags label should not contain \'%1$s\' nor be empty',
|
||||
'Core:TagSetFieldData:ErrorCodeUpdateNotAllowed' => 'Tags "Code" cannot be changed',
|
||||
'Core:TagSetFieldData:ErrorTagLabelSyntax' => 'Tags label must not contain \'%1$s\' nor be empty',
|
||||
'Core:TagSetFieldData:ErrorCodeUpdateNotAllowed' => 'Tags Code cannot be changed when used',
|
||||
'Core:TagSetFieldData:ErrorClassUpdateNotAllowed' => 'Tags "Object Class" cannot be changed',
|
||||
'Core:TagSetFieldData:ErrorAttCodeUpdateNotAllowed' => 'Tags "Attribute Code" cannot be changed',
|
||||
'Core:TagSetFieldData:WhereIsThisTagTab' => 'Tag usage (%1$d)',
|
||||
|
||||
@@ -768,6 +768,14 @@ Opérateurs :<br/>
|
||||
|
||||
'Class:TagSetFieldData' => '%2$s pour la classe %1$s',
|
||||
'Class:TagSetFieldData+' => '',
|
||||
|
||||
'Class:TagSetFieldData/Attribute:code' => 'Code',
|
||||
'Class:TagSetFieldData/Attribute:code+' => 'Code interne. Doit contenir au moins 3 caractères alphanumériques',
|
||||
'Class:TagSetFieldData/Attribute:label' => 'Label',
|
||||
'Class:TagSetFieldData/Attribute:label+' => 'Label',
|
||||
'Class:TagSetFieldData/Attribute:description' => 'Description',
|
||||
'Class:TagSetFieldData/Attribute:description+' => 'Description',
|
||||
|
||||
'Core:TagSetFieldData:ErrorDeleteUsedTag' => 'Impossible de supprimer une étiquette utilisée',
|
||||
'Core:TagSetFieldData:ErrorDuplicateTagCodeOrLabel' => 'Les codes et noms des étiquettes doivent être unique',
|
||||
'Core:TagSetFieldData:ErrorTagCodeSyntax' => 'Le code de l\'étiquette doit contenir entre 3 et %1$d caractères alphanumériques.',
|
||||
|
||||
Reference in New Issue
Block a user