do not translate log messages
This commit is contained in:
parent
681aed959e
commit
6cac4882b5
3 changed files with 15 additions and 19 deletions
|
@ -105,25 +105,23 @@ class CRM_TwingleCampaign_BAO_CustomField {
|
||||||
->error("$this->extensionName could not create new custom field
|
->error("$this->extensionName could not create new custom field
|
||||||
\"$this->name\" for group \"$this->custom_group_id\":
|
\"$this->name\" for group \"$this->custom_group_id\":
|
||||||
$this->result['error_message']");
|
$this->result['error_message']");
|
||||||
CRM_Utils_System::setUFMessage(ts("Creation of custom field '%1'
|
CRM_Utils_System::setUFMessage("Creation of custom field '$this->name'
|
||||||
failed. Find more information in the logs.",
|
failed. Find more information in the logs.");
|
||||||
$this->name));
|
|
||||||
}
|
}
|
||||||
// If there is not enough information: log simple error message
|
// If there is not enough information: log simple error message
|
||||||
else {
|
else {
|
||||||
Civi::log()
|
Civi::log()
|
||||||
->error("$this->extensionName could not create new custom field:
|
->error("$this->extensionName could not create new custom field:
|
||||||
$this->result['error_message']");
|
$this->result['error_message']");
|
||||||
CRM_Utils_System::setUFMessage(ts("Creation of custom field
|
CRM_Utils_System::setUFMessage("Creation of custom field
|
||||||
failed. Find more information in the logs."));
|
failed. Find more information in the logs.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
CRM_Utils_System::setUFMessage(ts("Creation of custom field '%1'
|
CRM_Utils_System::setUFMessage("Creation of custom field '$this->name'
|
||||||
failed, because a custom field with that name already exists.
|
failed, because a custom field with that name already exists.
|
||||||
Find more information in the logs.",
|
Find more information in the logs.");
|
||||||
$this->name));
|
|
||||||
Civi::log()
|
Civi::log()
|
||||||
->error("$this->extensionName could not create new custom field
|
->error("$this->extensionName could not create new custom field
|
||||||
\"$this->name\" for group \"$this->custom_group_id\" because a
|
\"$this->name\" for group \"$this->custom_group_id\" because a
|
||||||
|
|
|
@ -74,15 +74,14 @@ class CRM_TwingleCampaign_BAO_CustomGroup {
|
||||||
Civi::log()->error("$this->extensionName could not create new custom group
|
Civi::log()->error("$this->extensionName could not create new custom group
|
||||||
for \"$this->name\": $this->results['error_message']"
|
for \"$this->name\": $this->results['error_message']"
|
||||||
);
|
);
|
||||||
CRM_Utils_System::setUFMessage(ts("Creation of custom group '%1'
|
CRM_Utils_System::setUFMessage("Creation of custom group '$this->name'
|
||||||
failed. Find more information in the logs.",
|
failed. Find more information in the logs.");
|
||||||
$this->name));
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Civi::log()->error("$this->extensionName could not create new
|
Civi::log()->error("$this->extensionName could not create new
|
||||||
custom group: $this->results['error_message']");
|
custom group: $this->results['error_message']");
|
||||||
CRM_Utils_System::setUFMessage(ts("Creation of custom group
|
CRM_Utils_System::setUFMessage("Creation of custom group
|
||||||
failed. Find more information in the logs."));
|
failed. Find more information in the logs.");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,9 +79,8 @@ class CRM_TwingleCampaign_BAO_OptionValue {
|
||||||
}
|
}
|
||||||
// If the option value could not get created: log error
|
// If the option value could not get created: log error
|
||||||
else {
|
else {
|
||||||
CRM_Utils_System::setUFMessage(ts("Creation of custom value '%1'
|
CRM_Utils_System::setUFMessage("Creation of custom value '$this->name)'
|
||||||
failed. Find more information in the logs.",
|
failed. Find more information in the logs.");
|
||||||
$this->name));
|
|
||||||
if ($this->label && $this->option_group_id) {
|
if ($this->label && $this->option_group_id) {
|
||||||
Civi::log()
|
Civi::log()
|
||||||
->error("$this->extensionName could not create new option value
|
->error("$this->extensionName could not create new option value
|
||||||
|
@ -97,10 +96,10 @@ class CRM_TwingleCampaign_BAO_OptionValue {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
CRM_Utils_System::setUFMessage(ts("Creation of custom value '%1'
|
CRM_Utils_System::setUFMessage("Creation of custom value '$this->name'
|
||||||
failed, because a custom value with that name already exists.
|
failed, because a custom value with that name already exists.
|
||||||
Find more information in the logs.",
|
Find more information in the logs."
|
||||||
$this->name));
|
);
|
||||||
Civi::log()
|
Civi::log()
|
||||||
->error("$this->extensionName could not create new custom value
|
->error("$this->extensionName could not create new custom value
|
||||||
\"$this->name\" for group \"$this->option_group_id\" because a
|
\"$this->name\" for group \"$this->option_group_id\" because a
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue