From b0c62c502d0b5fa1028b10bf5be53213a46ca86b Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Sun, 18 Jun 2023 13:56:01 -0400 Subject: [PATCH] extensions/uplang#6 Fix translation of menu descriptions displayed on the Administration Console --- CRM/Core/I18n.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CRM/Core/I18n.php b/CRM/Core/I18n.php index c9db571c32..9fafa780da 100644 --- a/CRM/Core/I18n.php +++ b/CRM/Core/I18n.php @@ -541,8 +541,11 @@ class CRM_Core_I18n { $this->localizeTitles($value); $array[$key] = $value; } - elseif ((string ) $key == 'title') { - $array[$key] = ts($value, ['context' => 'menu']); + else { + $key = (string) $key; + if ($key == 'title' || $key == 'desc') { + $array[$key] = ts($value, ['context' => 'menu']); + } } } } -- 2.25.1