diff --git a/htdocs/asset/class/asset.class.php b/htdocs/asset/class/asset.class.php
index e2d93806ca352..a9763e4fcd6f6 100644
--- a/htdocs/asset/class/asset.class.php
+++ b/htdocs/asset/class/asset.class.php
@@ -863,7 +863,7 @@ public function calculationDepreciation()
// Get fiscal period
require_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php';
- $dates = getDefaultDatesForTransfer();
+ $dates = getCurrentPeriodOfFiscalYear($this->db, $conf, $this->date_start > $this->date_acquisition ? $this->date_start : $this->date_acquisition);
$init_fiscal_period_start = $dates['date_start'];
$init_fiscal_period_end = $dates['date_end'];
if (empty($init_fiscal_period_start) || empty($init_fiscal_period_end)) {
diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index 2d3b4a604cd62..8faa999dc6f5c 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -6228,7 +6228,7 @@ public function insertExtraFields($trigger = '', $userused = null)
foreach ($new_array_options as $key => $value) {
$attributeKey = substr($key, 8); // Remove 'options_' prefix
$attributeType = $extrafields->attributes[$this->table_element]['type'][$attributeKey];
- $attributeLabel = $extrafields->attributes[$this->table_element]['label'][$attributeKey];
+ $attributeLabel = $langs->transnoentities($extrafields->attributes[$this->table_element]['label'][$attributeKey]);
$attributeParam = $extrafields->attributes[$this->table_element]['param'][$attributeKey];
$attributeRequired = $extrafields->attributes[$this->table_element]['required'][$attributeKey];
$attributeUnique = $extrafields->attributes[$this->table_element]['unique'][$attributeKey];
diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php
index bc18e34ffe8fa..b14a71c6b070a 100644
--- a/htdocs/ticket/class/ticket.class.php
+++ b/htdocs/ticket/class/ticket.class.php
@@ -2598,7 +2598,7 @@ public function newMessage($user, &$action, $private = 1, $public_area = 0)
$subject = '['.$label_title.'- ticket #'.$object->track_id.'] '.$langs->trans('TicketNewMessage');
// Message send
- $message = $langs->trans('TicketMessageMailIntroText');
+ $message = getDolGlobalString('TICKET_MESSAGE_MAIL_INTRO', $langs->trans('TicketMessageMailIntroText'));
$message .= '
';
$messagePost = GETPOST('message', 'restricthtml');
if (!dol_textishtml($messagePost)) {
@@ -2650,7 +2650,7 @@ public function newMessage($user, &$action, $private = 1, $public_area = 0)
$message_intro = $langs->trans('TicketNotificationEmailBody', "#".$object->id);
$message_signature = GETPOST('mail_signature') ? GETPOST('mail_signature') : getDolGlobalString('TICKET_MESSAGE_MAIL_SIGNATURE');
- $message = $langs->trans('TicketMessageMailIntroText');
+ $message = getDolGlobalString('TICKET_MESSAGE_MAIL_INTRO', $langs->trans('TicketMessageMailIntroText'));
$message .= '
';
$messagePost = GETPOST('message', 'restricthtml');
if (!dol_textishtml($messagePost)) {