Unverified Commit 37a4a5b0 authored by Stefan Auditor's avatar Stefan Auditor Committed by Stefan Auditor
Browse files

Issue #3282696 by sanduhrs: Port of l10n_community: Fix TranslatableMarkup handling

parent 3c5d7f34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ function template_preprocess_l10n_community_progress_columns(array &$variables)
  $bar = '<div class="l10n-community-progress">';
  foreach ($status as $key => $values) {
    if ($values[1] > 0) {
      $bar .= '<div class="l10n-community-progress-' . $key . '" style="width:' . $values[1] . '%;" title="' . strtr($values[2], ['!percent' => $values[1] . '%']) . '"></div>';
      $bar .= '<div class="l10n-community-progress-' . $key . '" style="width:' . $values[1] . '%;" title="' . strtr($values[2]->__toString(), ['!percent' => $values[1] . '%']) . '"></div>';
    }
  }
  $bar .= '</div>';