Skip to content

Commit

Permalink
Merge pull request #26564 from mlutfy/uplang6
Browse files Browse the repository at this point in the history
extensions/uplang#6 Fix menu description translations on the Administration Console
  • Loading branch information
eileenmcnaughton authored Jun 19, 2023
2 parents 470b283 + b0c62c5 commit d30704b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CRM/Core/I18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,11 @@ public function localizeTitles(&$array) {
$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']);
}
}
}
}
Expand Down

0 comments on commit d30704b

Please sign in to comment.