Skip to content

Commit

Permalink
Upgrading finish
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jun 27, 2024
1 parent 68d52c5 commit 734d861
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/element/coverage_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<table class="table table-striped">
<tr><th><?php echo __d('translate', 'Language'); ?></th><th><?php echo __d('translate', 'Coverage'); ?></th><th><?php echo __d('translate', 'Active'); ?></th></tr>
<?php foreach ($languages as $language) {
if (!isset($coverage[$language['iso2']])) {
if (!isset($coverage[$language->locale])) {
$currentCoverage = 0.0;
} else {
$currentCoverage = $coverage[$language['iso2']];
$currentCoverage = $coverage[$language->locale];
}
$currentColor = $this->Translation->getColor($currentCoverage);
?>
<tr>
<td><?php echo $this->Translation->flag($language['code']); ?> <?php echo h($language['name']); ?></td>
<td><?php echo $this->Translation->flag($language['code']); ?> <?php echo h($language['name']); ?> (<?php echo h($language->locale); ?>)</td>
<td><span style="color:#<?php echo $currentColor;?>;font-weight:bold"><?php echo $currentCoverage; ?>%</span></td>
<td><?= $this->element('Translate.yes_no', ['value' => $language['active']]) ?></td>
</tr>
Expand Down

0 comments on commit 734d861

Please sign in to comment.