From de44b4625df8af6fe54a0ef4677aad9f6d988fa6 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Mon, 1 Jun 2020 08:34:06 -0400 Subject: [PATCH] Navigation menu: fix translation of new-subtype entries. --- CRM/Contact/BAO/ContactType.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/ContactType.php b/CRM/Contact/BAO/ContactType.php index 8a2e811c57..42fb2ba54d 100644 --- a/CRM/Contact/BAO/ContactType.php +++ b/CRM/Contact/BAO/ContactType.php @@ -603,7 +603,7 @@ WHERE name = %1'; if (!empty($params['id'])) { $newParams = [ - 'label' => "New $contact", + 'label' => ts("New %1", [1 => $contact]), 'is_active' => $active, ]; CRM_Core_BAO_Navigation::processUpdate(['name' => "New $contactName"], $newParams); @@ -616,7 +616,7 @@ WHERE name = %1'; $value = ['name' => "New $name"]; CRM_Core_BAO_Navigation::retrieve($value, $navinfo); $navigation = [ - 'label' => "New $contact", + 'label' => ts("New %1", [1 => $contact]), 'name' => "New $contactName", 'url' => "civicrm/contact/add?ct=$name&cst=$contactName&reset=1", 'permission' => 'add contacts', -- 2.25.1