Skip to content

Commit

Permalink
Mark labels for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsafley committed Dec 1, 2020
1 parent 15280b5 commit da1a732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/view/common/linked-resources.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $pagination->setFragment($fragment);
<select id="filter-property" name="property" data-url="<?php echo $escape($this->url(null, [], true)); ?>" data-fragment="<?php echo $escape($fragment); ?>">
<option value=""><?php echo $translate('All'); ?></option>
<?php foreach ($properties as $prop): ?>
<option value="<?php echo $escape($prop->id()); ?>"<?php echo $prop->id() == $property ? ' selected="selected"' : ''; ?>><?php echo $escape(sprintf('%s (%s)', $prop->label(), $prop->term())); ?></option>
<option value="<?php echo $escape($prop->id()); ?>"<?php echo $prop->id() == $property ? ' selected="selected"' : ''; ?>><?php echo $escape(sprintf('%s (%s)', $translate($prop->label()), $prop->term())); ?></option>
<?php endforeach; ?>
</select>
</div>
Expand Down Expand Up @@ -49,7 +49,7 @@ $pagination->setFragment($fragment);
</td>
<td>
<?php if ($value->resource()->resourceClass()): ?>
<span class="resource-class"><?php echo $this->escapeHtml($value->resource()->resourceClass()->label()); ?></span>
<span class="resource-class"><?php echo $this->escapeHtml($translate($value->resource()->resourceClass()->label())); ?></span>
<?php endif; ?>
</td>
</tr>
Expand Down

0 comments on commit da1a732

Please sign in to comment.